简体   繁体   English

Autohotkey-运行命令

[英]Autohotkey - run command

I've encountered a problem I am having troubles to formulate, therefore I can't google it properly. 我遇到了一个问题,我很难制定公式,因此我无法在Google上正确搜索它。

I have a script: 我有一个脚本:

WheelLeft:: 
         Run, "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE", "C:\Program Files\Microsoft Office\root\Office16"
Return
+XButton1::    
    Send, !{Right}  
Return

WheelRight::
    Run, "C:\Users\pavel\AppData\Local\GPMDP_3\app-4.4.0\Google Play Music Desktop Player.exe"
Return

which works fine, but the RUN commands do not start from everywhere. 可以正常运行,但是RUN命令并非从各处启动。 For instance, it does not start when I am using Chrome, but works fine from FileExplorer. 例如,当我使用Chrome时,它不会启动,但可以通过FileExplorer正常工作。

Could anybody please point me to a resource about this kind of problem? 有人可以给我指出有关此类问题的资源吗?

Thanks in advance 提前致谢

Assuming AutoHotkey is up to date, I'd suspect it's simply Chrome hijacking your forward/back commands or fighting with AHK over it. 假设AutoHotkey是最新的,我怀疑它只是Chrome劫持了您的前进/后退命令或与AHK争夺了它。

Before delving in further, try a tilde, which will pass through the command instead of consuming it after AHK acts on it. 在深入研究之前,请尝试一个代字号,它会通过命令,而不是在AHK对其执行操作后使用。

~WheelLeft:: 
     Run, Notepad.exe
Return

~WheelRight::
    Run, Notepad.exe
Return

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM