zxtnt09

Active/Deactive some script

4 posts in this topic

Hi guys,

is that true ? 

$sState = BinaryToString( InetRead("http://example.com/exist.html") )

If Number($sState) = 0 Then

Local $dData = InetRead("http://example.com/script-do.html")
BinaryToString(StringReplace($dData, "0A", "0D0A"), 4)

    Exit
 EndIf

i want to read scripts from "Web Source" ,

for example : 

in "Exist.html" we have "1" ,

in "script-do.html" we have 

MsgBox (64,"Test","Test")

thanks guys,

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I'm not sure to understand, but maybe this ?

If $sState = "0" Then Execute(BinaryToString(InetRead("http://example.com/script-do.html")))

 

Edited by jguinch
1 person likes this

Share this post


Link to post
Share on other sites

I'm not sure to understand, but maybe this ?

If $sState = "0" Then Execute(BinaryToString(InetRead("http://example.com/script-do.html")))

 

not execute , 

i need to run scripts in "script-do.html" , 

for example : we have this code in script-do.html 

msgbox (64,"test","test")

after program read "1" from exist.html then put this code ( msgbox (64,"test","test") ) in if statement.

 

Share this post


Link to post
Share on other sites

If I understand, in your example, you want the MsgBox appears if the content of exist.html is 1 ? Is it right ? In this case, Execute is what you need.

$sContent = 'msgbox (64,"test","test")'
Execute($sContent)


 

1 person likes this

Share this post


Link to post
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