(AHK)加载程序前确认。

时间:2012-11-02 22:38:55

标签: autohotkey

很好奇如何让弹出窗口确认我是否要在加载之前加载程序。例如:

^g::Run C:\GW2\gw2.exe

1 个答案:

答案 0 :(得分:1)

虽然你似乎没有做过很多功课,但我会在这里提供一个解决方案。

^g::
MsgBox, 4100, , Would you like to launch GW2?, 5  ; 5-second timeout.
IfMsgBox, No
    Return  ; User pressed the "No" button.
IfMsgBox, Timeout
    Return ; Timed out.
run, C:\GW2\gw2.exe
Return