0

如果我多次调用 HotKeySet 指向同一个函数,我怎么知道哪个热键调用了它?

4

1 回答 1

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
于 2013-06-04T17:46:43.027 回答