Jump to content

[Solved] Disable or enable program with site


Recommended Posts

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

 

Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...