Here's a code from documentation:
Code: Select all
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "https://random.random2.com/", true) whr.Send() ; Using 'true' above and the call below allows the script to remain responsive. whr.WaitForResponse() version := whr.ResponseText MsgBox % version
I don't want that error window. How can I give it a 15 seconds limit, then just continue the following code, e.g. test another site?
Or even better: give it a 15 seconds limit, AND, if it turned out failed BEFORE 15 seconds, continue the following code without popup?