本帖最后由 hh2hh 于 2009-5-1 12:54 编辑
HotKeySet()
78391493 发表于 2009-5-1 06:17
这是我用hotkeyset的代码,(未完成预期的功能)。原因是无法用hotkeysetup绑定MouseClickUp("left")(按键松开)的事件。我没找到类似的方法。难道是我思路有错?
AutoItSetOption("TrayAutoPause",0)
AutoItSetOption("TrayIconHide",1)
HotKeySet("{CAPSLOCK}", "clickLeft")
HotKeySet("{`}", "clickRight")
HotKeySet("+{`}", "clickRight")
HotKeySet("^{`}", "clickRight")
HotKeySet("+!d", "exitApp") ;Shift-Alt-d
HotKeySet("+!c", "checkRuning") ;Shift-Alt-c
While 1
Sleep(150)
WEnd
Func checkRuning()
MsgBox(4096,"","I'm runing.")
;Exit 0
EndFunc
Func exitApp()
MsgBox(4096,"","exit app.")
Exit 0
EndFunc
Func clickLeft()
MouseClick("left")
EndFunc ;==>clickLeft
Func clickRight()
MouseClick("right")
EndFunc ;==>clickRight |