Jump to content

[Solved] InetRead auto refresh


zxtnt09
 Share

Recommended Posts

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. :sweating:

Edited by zxtnt09
example.html => example.com , Solved
Link to comment
Share on other sites

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

 

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...