Jump to content
zxtnt09

[Solved] Disable or enable program with site

Recommended Posts

zxtnt09

Hi guys

Anyone 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 code

Thanks

Edited by zxtnt09

Share this post


Link to post
Share on other sites
jguinch

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

 

  • Like 1

Share this post


Link to post
Share on other sites
zxtnt09

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 

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

×