检查变量是否具有多个可能值之一

时间:2013-09-12 15:46:44

标签: autohotkey

有人可以告诉我这里的错误吗?

IfNotEqual, A_OSVersion = WIN_7, WIN_VISTA, WIN_XP
{
   MsgBox, This script is only supported on Windows XP, Vista, or 7.
   Exit
}

1 个答案:

答案 0 :(得分:2)

我想你想要:
基于(http://www.autohotkey.com/docs/commands/IfIn.htm

if A_OSVersion not in WIN_7,WIN_VISTA,WIN_XP
{
    MsgBox This Script is only supported on Windows XP, Vista or 7
    ExitApp
}