Fixed SteamId/SteamId64 input validation & warning message
This commit is contained in:
parent
03fba131cd
commit
f631ddd2d1
|
@ -14,7 +14,7 @@
|
|||
|
||||
;#AutoIt3Wrapper_Res_ProductVersion=x.x.x.x ; Broken, use #AutoIt3Wrapper_Res_Field=ProductVersion|x.x.x as workarround.
|
||||
#AutoIt3Wrapper_Res_Field=ProductVersion|Freeware
|
||||
#AutoIt3Wrapper_Res_Fileversion=1.1.4.110
|
||||
#AutoIt3Wrapper_Res_Fileversion=1.1.4.111
|
||||
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=N ;(Y/N/P) AutoIncrement FileVersion After Aut2EXE is finished. default=N. P=Prompt, Will ask at Compilation time if you want to increase the versionnumber
|
||||
#AutoIt3Wrapper_Res_Language=1033 ;Resource Language code . german = 1031, english (U.S.) = 1033. default 2057=English (United Kingdom). For a List see http://technet.microsoft.com/en-us/library/dd346950.aspx
|
||||
|
||||
|
|
14
main.au3
14
main.au3
|
@ -87,13 +87,7 @@ Func _main()
|
|||
GUICtrlSetData($gSteamId, DllStructGetData($tData, "Text"))
|
||||
Case $gButton_Submit
|
||||
$iSteamId = StringStripWS(GUICtrlRead($gSteamId), 8)
|
||||
If $iSteamId = "" Then
|
||||
GUISetState(@SW_DISABLE, $GUi)
|
||||
MsgBox(16, "ERROR", "Please enter a SteamId or SteamId64.")
|
||||
GUISetState(@SW_ENABLE, $GUi)
|
||||
WinActivate($GUi)
|
||||
GUISwitch($GUi)
|
||||
ElseIf StringLeft($iSteamId, 6) = 765611 Then
|
||||
If StringLeft($iSteamId, 6) = 765611 Then
|
||||
$iSteamId = steamId64ToSteamId($iSteamId)
|
||||
EndIf
|
||||
|
||||
|
@ -103,6 +97,12 @@ Func _main()
|
|||
GUISetState(@SW_ENABLE, $GUi)
|
||||
WinActivate($GUi)
|
||||
GUISwitch($GUi)
|
||||
Else
|
||||
GUISetState(@SW_DISABLE, $GUi)
|
||||
MsgBox(16, "ERROR", "Please enter a SteamId or SteamId64.")
|
||||
GUISetState(@SW_ENABLE, $GUi)
|
||||
WinActivate($GUi)
|
||||
GUISwitch($GUi)
|
||||
EndIf
|
||||
resetInput($gSteamId)
|
||||
EndSwitch
|
||||
|
|
Reference in New Issue