zxtnt09 Posted September 28, 2015 Posted September 28, 2015 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 EndIfi 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,
jguinch Posted September 28, 2015 Posted September 28, 2015 (edited) I'm not sure to understand, but maybe this ?If $sState = "0" Then Execute(BinaryToString(InetRead("http://example.com/script-do.html"))) Edited September 28, 2015 by jguinch zxtnt09 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
zxtnt09 Posted September 28, 2015 Author Posted September 28, 2015 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.
jguinch Posted September 28, 2015 Posted September 28, 2015 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) zxtnt09 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
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