您可以使用 @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