0
如果我有很多調用HotKeySet指向相同的函數,我怎麼知道哪個熱鍵叫它?HotKeySet函數中按下哪個鍵
如果我有很多調用HotKeySet指向相同的函數,我怎麼知道哪個熱鍵叫它?HotKeySet函數中按下哪個鍵
您可以使用@HotKeyPressed變量。
例如:
$char = 0
while $char < 126
HotKeySet(Chr ($char),"writekeys")
$char = $char + 1
WEnd
while 1
sleep(10)
WEnd
Func writekeys()
HotKeySet(@HotKeyPressed)
send(@HotKeyPressed)
;do something
HotKeySet(@HotKeyPressed,"writekeys")
EndFunc