Global Const $WIN_7 = 1
Global Const $WIN_8 = 2
Global Const $WIN_81 = 4
Global Const $WIN_9 = 8
Func __ScriptSupportOS($SupportOS)
Local $iOSVERION = 0
If @OSVersion = "WIN_7" Then $iOSVERION = 1
If @OSVersion = "WIN_8" Then $iOSVERION = 2
If @OSVersion = "WIN_81" Then $iOSVERION = 4
If @OSVersion = "WIN_9" Then $iOSVERION = 8
Return BitAND($iOSVERION, $SupportOS)
EndFunc