回复 精彩的人生
晕啊,竟然忘了给你贴上地址了:
haijie1223 发表于 2013-1-25 16:21
那个可能比较难搞,试下简单例子#Include <Misc.au3>
HotKeySet('a', '_HotKey_a')
HotKeySet('{esc}', '_Exit')
Global $Fsend = 0
While 1
Sleep(1000)
WEnd
Func _HotKey_a()
If $Fsend Then Return
Local $AllDown
While _IsPressed('41')
$Fsend = 1
If _IsPressed('42') And _IsPressed('43') Then
$AllDown = 1
ExitLoop
Endif
Wend
$Fsend = 0
If $AllDown Then Return Msgbox(64, 0, '执行热键abc的动作')
HotKeySet('a')
Send('a')
HotKeySet('a', '_HotKey_a')
EndFunc ;==>_HotKey_a
Func _Exit()
Exit
EndFunc ;==>_Exit
|