举报
一般来说,win下有多个窗口,所以用窗口来区别,而鼠标指针就一个吧,要鼠标的句柄有什么呢 xyold1 发表于 2010-11-18 20:16
#include <WinAPI.au3> Global $Struct = DllStructCreate($tagPoint) _Main() Func _Main() HotKeySet("{ESC}", "_Quit") While 1 Sleep(100) ToolTip("") Pos() $hwnd = _WinAPI_WindowFromPoint($Struct) ToolTip($hwnd) WEnd EndFunc ;==>_Main Func Pos() DllStructSetData($Struct, "x", MouseGetPos(0)) DllStructSetData($Struct, "y", MouseGetPos(1)) EndFunc ;==>Pos Func _Quit() Exit EndFunc ;==>_Quit
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2026-8-6 09:58 , Processed in 0.069546 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2026 Discuz! Team.