按键精灵怎么监视热键?就是按一个按键就执行子程序

大漠插件也没有监视热键的命令
2025-04-07 06:53:03
推荐回答(2个)
回答1:

While true
键名=WaitKey()
If 键名 = 65 Then //键码65就是A键
脚本。。。。
end if
wend

以上脚本,先运行,之后如果按A键就执行脚本一次,直到你终止脚本就不再监视

回答2:

首先要知道热键的数字代码
i = WaitKey()
if i=热键数字代码 then
call 子程序
end if
不懂再问