Sign in to follow this  
Followers 0
sumkid

Quick Problem

3 posts in this topic

Well, i tried to run this

$Getit = InetGet ( "http://www.myserver.com/settings/settings.ini", "settings.ini" )
$enable = IniRead ( $Getit, "settings", "enable", 1 )
$command1 = IniRead ( $Getit, "settings", "command1", 1 )
$msgtitle = IniRead ( $Getit, "msg", "msgtitle", 1 )
$msgtext = IniRead ( $Getit, "msg", "msgtext", 1 )




While 1
Sleep (10000)
If
$enable = 1
Then
    If
    $command1 = "msg"
    Then
        MsgBox ( 1, $msgtitle, $msgtext )
    EndIf
EndIf
Sleep (35000)
Exit
WEnd

and it says If statement has no matching then statement. Any help?

Share this post


Link to post
Share on other sites



nvm, sorry for this. figured it out

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

$Getit = InetGet ( "http://www.myserver.com/settings/settings.ini", "settings.ini" )
$enable = IniRead ( $Getit, "settings", "enable", 1 )
$command1 = IniRead ( $Getit, "settings", "command1", 1 )
$msgtitle = IniRead ( $Getit, "msg", "msgtitle", 1 )
$msgtext = IniRead ( $Getit, "msg", "msgtext", 1 )




While 1
Sleep (10000)
If $enable = 1 Then
    If $command1 = "msg" Then MsgBox ( 1, $msgtitle, $msgtext )
EndIf
Sleep (35000)
Exit
WEnd

Edited by Alienware

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
Sign in to follow this  
Followers 0