Autoit 3通用按键 [英] Autoit 3 Generic Keypress
本文介绍了Autoit 3通用按键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎应该有一个通用的按键侦听器,如下所示:
It seems like there should be a generic keypress listener, something like this:
hotkeysset("listener")
func listener(key)
msgbox(0, "Key", "You pressed " & key)
endfunc
while true
sleep(100)
wend
但是,除了编写一个脚本来为键盘上的每个键生成适当的热键集调用之外,我不知道该怎么做.有什么想法吗?
But short of writing a script that generates the appropriate hotkeyset calls for each key on my keyboard, I can't figure out how to do that. Any thoughts?
推荐答案
Check out this UDF (User-Defined Function), IsPressed_UDF.
这篇关于Autoit 3通用按键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文