好了,我已经使用Autoit,python和Powertoys来创建快捷键,但是当我尝试在某个桌面应用程序(它是一个收银机应用程序)上使用热键时,它将不会响应,脚本仍然有效,因为我返回到记事本,热键仍然有效。有没有人知道为什么这个应用程序不会响应模拟击键?
HotKeySet ( '{Insert}' ,'Func1')
HotKeySet ( 'x' ,'Func2')
While 1
Sleep(50)
WEnd
Func Func1()
Send("b")
EndFunc
Func Func2()
Exit
EndFunc热键在记事本和互联网上运行良好,但当我单击收银机应用程序时,热键不工作,脚本仍在运行,因为如果我返回到记事本,热键仍然有效。
发布于 2021-08-19 14:44:30
我首先要做的是检查现有应用程序是否设置或阻止了热键。始终检查错误。
Func Func1()
If @HotKeyPressed = 0 Then Return MsgBox(0, "Hotkeyset Error", "Hotkey " & @HotKeyPressed & " already set by another task.")
EndFunchttps://stackoverflow.com/questions/68746698
复制相似问题