zxtnt09 Posted October 10, 2015 Posted October 10, 2015 (edited) Hi guys,After i use that, all of thing is good and perfect,Local $dData = InetRead("http://example.com/my.html",1) $my = BinaryToString(StringReplace($dData, "0A", "0D0A"), 4)but now how can i reload that after x time ?!by this ( top script ) , i need to relunch the script to see modified,now! how can i update data after X time !?for example : in "my.html" we have number "3" , i try to change it to "5", now we need to relunch script to see "3" => "5",how we can use that without relunch script.thanks alot and sorry for my bad english & too long question. Edited October 11, 2015 by zxtnt09 example.html => example.com , Solved
JohnOne Posted October 10, 2015 Posted October 10, 2015 Global $dOldData = "" Global $xSeconds = 60 While 3 Local $dData = InetRead("http://example.com/my.html",1) $my = BinaryToString(StringReplace($dData, "0A", "0D0A"), 4) If $dOlddata <> $dData Then ;do something $dOlddata = $dData EndIf Sleep($xSeconds) Wend zxtnt09 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
zxtnt09 Posted October 10, 2015 Author Posted October 10, 2015 Thanks, but it was make infinity loop !Can it used without "while" loop ?!Something like :AutoRefresh,AutoUpdate,...Thanks
JohnOne Posted October 11, 2015 Posted October 11, 2015 Yes, put the code in a function and see adlibregister in help file. zxtnt09 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now