SpiffyTek
/
SMACheck
Archived
1
0
Fork 0

Client throws cryptic error message if website is unavailable (#65)

(API) Increased timeouts again. Changed communication with steam API in hope to be more reliable in getting a response
This commit is contained in:
MadMakz 2013-01-13 11:26:56 +01:00
parent 9dc944acc2
commit d69dc36a98
3 changed files with 4 additions and 11 deletions

View File

@ -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.2.91
#AutoIt3Wrapper_Res_Fileversion=1.1.2.92
#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

View File

@ -9,15 +9,6 @@ Func lookupSteamId($input)
$oXML.SetRequestHeader("User-Agent", $agent)
$oXML.Send()
$oXML = $oXML.ResponseText
If @error <> 0 Then
_printError("noapi")
Return "ERROR_HANDELED"
EndIf
If $oXML = "" Then
_printError("noapi")
Return "ERROR_HANDELED"
EndIf
$oXML = _XMLLoadXML($oXML)
If @error <> 0 Then
@ -157,7 +148,7 @@ Func _printError($id = false)
Case "update"
MsgBox(48, "Update available", "New Update available." & @CRLF & @CRLF & "Visit smacbans.com for more Info and Download.")
Case Else
MsgBox(16, "ERROR", "Unknown Error occured")
Return
EndSwitch
EndFunc

View File

@ -11,6 +11,8 @@
Global $gVersionChecked = 0
Global $oErrorHandler = ObjEvent("AutoIt.Error", "_printError");
;; Main
_main()