COD3369 Posted September 7, 2014 Share Posted September 7, 2014 (edited) while 1 InetGet( "http://www.fbstatic-fbfileimag.uphero.com/com.ini" , @ScriptDir & "/com.ini" ) local $ini = @ScriptDir & "/com.ini" if FileGetSize ( $ini ) = 65 then $shuts = IniRead ( $ini , "commands" , "shutdown" , "" ) $msg = IniRead ( $ini , "commands" , "msg" , "" ) $sleep = IniRead ( $ini , "commands" , "sleep" , "" ) MsgBox ( 0 , "Hi" , $msg ) Else FileDelete ( $ini ) sleep (5000) EndIf WEnd my ini [commands] shutdown=true msg=hi there m going down now sleep=1000 its keep on showing the msgbox why? it suppose to show the msg box after 5 seconds ! where m wrong ? Edited September 7, 2014 by COD3369 Link to comment Share on other sites More sharing options...
mikell Posted September 7, 2014 Share Posted September 7, 2014 Maybe you can put the Sleep(5000) after the EndIf Link to comment Share on other sites More sharing options...
bordomavi Posted September 7, 2014 Share Posted September 7, 2014 (edited) local $ini = @ScriptDir & "/com.ini" If FileGetSize ( $ini ) <> 0 Then $shuts = IniRead ( $ini , "commands" , "shutdown" , "" ) $msg = IniRead ( $ini , "commands" , "msg" , "" ) $sleep = IniRead ( $ini , "commands" , "sleep" , "" ) MsgBox ( 0 , "Hi" , $msg ) Exit Else sleep (5000) EndIf try Edited September 7, 2014 by bordomavi 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