zxtnt09 Posted May 11, 2015 Share Posted May 11, 2015 (edited) Hi guysAnyone know that how can i disable or enable my program by website.Example : if ("http://site.com/active.php") = true then else msgbox (1,"error","deactive") ; continue program codeThanks Edited May 11, 2015 by zxtnt09 Link to comment Share on other sites More sharing options...
jguinch Posted May 11, 2015 Share Posted May 11, 2015 Your explanation is not clear enough...If I understand, you want to prevent the execution of your AutoIt program by refering to an URL at the startup of the script ?You can make out the url returns a single number (0 or 1), and put this kind of code at the beginning of your script :$sState = BinaryToString( InetRead("http://site.com/active.php") ) If Number($sState) = 0 Then MsgBox(16, "Error", "This program is inactive") Exit EndIf zxtnt09 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
zxtnt09 Posted May 11, 2015 Author Share Posted May 11, 2015 Your explanation is not clear enough...If I understand, you want to prevent the execution of your AutoIt program by refering to an URL at the startup of the script ?You can make out the url returns a single number (0 or 1), and put this kind of code at the beginning of your script :$sState = BinaryToString( InetRead("http://site.com/active.php") ) If Number($sState) = 0 Then MsgBox(16, "Error", "This program is inactive") Exit EndIf Thanks alot,♥it's work and sorry for my bad english Link to comment Share on other sites More sharing options...
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