【发布时间】:2013-06-14 23:09:06
【问题描述】:
我有 AutoHotKey 脚本。
目前我的 AHK 脚本一直在运行。它等待用户输入。
如果用户按 11 则执行某项操作。
如果用户按 12 则执行其他操作。
当前的 AHK 脚本
1::
Input Key, L1
if Key=1
{
Run C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File C:\Users\username\Desktop\new.ps1
; How can I make this command run only after above script has finished executing?
}
【问题讨论】:
-
我发现我们可以使用这个命令
Run C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File C:\Users\myuser\Desktop\new.ps1来运行PS脚本,现在我只需要在PS脚本执行完成后才能运行下一个命令。
标签: autohotkey