如果我有多次调用HotKeySet指向相同的函数,我怎么知道哪个热键调用它?
答案 0 :(得分:1)
您可以使用@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