Typically, some responses may take a few seconds to load, and thus slows your script. Is there a way to send the request but not wait for the load? In other words, instead leave it to load on its own and move on with the script? Thanks!
Jump to content
Posted 21 June 2012 - 12:21 AM
Posted 23 June 2012 - 02:50 PM
ConsoleWrite("Script started" & @LF) AdlibRegister("foo") ; register the adlib function, this does not hold up the script ConsoleWrite("Script continues while the function is busy" & @LF) Sleep(4000) ; keep the script from terminating for a while ConsoleWrite("Script ended" & @LF) Func foo() AdlibUnRegister("foo") ; unregister the function to avoid it being called again ; winhttp etc. here... Sleep(1000) ; simulate waiting for a response ConsoleWrite("I did not hold up the script :)" & @LF) EndFunc
Edited by Robjong, 23 June 2012 - 02:53 PM.
0 members, 0 guests, 0 anonymous users