If statement 忽略条件的AHK if语句
我正在尝试为班次的开始创建一个消息框,并根据选择的是/否选项执行操作 问题是,If statement 忽略条件的AHK if语句,if-statement,autohotkey,If Statement,Autohotkey,我正在尝试为班次的开始创建一个消息框,并根据选择的是/否选项执行操作 问题是,if语句触发Yes条件,不管我选择Yes还是No MsgBox, 4, Shift start check, Are you just starting your shift? Clicking Yes will open applications/URLs for shift start. if (MsgBox = Yes){ Run http://wiki/ Run Outlook } else
if
语句触发Yes条件,不管我选择Yes还是No
MsgBox, 4, Shift start check, Are you just starting your shift? Clicking Yes will open applications/URLs for shift start.
if (MsgBox = Yes){
Run http://wiki/
Run Outlook
}
else {
Run www.google.ca
}
编辑:尝试使用IfMsgBox时,收到以下错误:
改用:
在尝试上面的代码时,我得到一个错误:“Parameter#1 invalid”@DavidMetcalfe Check my edit:语法错误可能是由于无效的块语法造成的。我已经确认以上功能在我的环境中正常工作。很漂亮!成功了。非常感谢!
IfMsgBox, Yes
{
Run http://wiki/
Run Outlook
}
else
{
Run www.google.ca
}