Kyme Posted February 5, 2009 Share Posted February 5, 2009 (edited) hi all...i try to make some tool to shutdown pc...and i wanna add this $del111=MsgBox(4, "Shutdowning in process", "Do you wanna continue the shutdowning?", 10) If $del111 = 6 Then MsgBox(0, "Warning", "Shutdown now") Return Else MsgBox(0, "Warning", "Shutdown Aborded") Return EndIf MsgBox(0, "Warning", "Result Shutdown now") but the problem it's there...i put 10sec timeout to can cancel shutdown if you don't want it...but if i sleep and nobody press yes or no to shutdown pc...some like you wanna shut down pc if yes=shutdown if no then return if none answare=shutdown it can someone help me with this? tnx Regards, Kyme Edit:in my script if none button pressed then=aborded Edited February 5, 2009 by Kyme Link to comment Share on other sites More sharing options...
Authenticity Posted February 5, 2009 Share Posted February 5, 2009 (edited) If $del111 = 6 Or $del111 = -1 Then ...EndIfEdit: If timeout is the return value just don't use the Else case or use 'Else If $del111 = -1 Or $del111 = 3 Then Msgbox(0x40, 'blah', 'Aborted') Edited February 5, 2009 by Authenticity Link to comment Share on other sites More sharing options...
evilertoaster Posted February 5, 2009 Share Posted February 5, 2009 $del111=MsgBox(4, "Shutdowning in process", "Do you wanna continue the shutdowning?", 10) If $del111 = 7 Then MsgBox(0, "Warning", "Shutdown Aborded") Return Else MsgBox(0, "Warning", "Shutdown now") Return EndIf MsgBox(0, "Warning", "Result Shutdown now") Link to comment Share on other sites More sharing options...
Kyme Posted February 5, 2009 Author Share Posted February 5, 2009 If $del111 = 6 Or $del111 = -1 Then ...EndIfawesome man....tnx dudeRegards, Kyme Link to comment Share on other sites More sharing options...
bundyxc Posted February 5, 2009 Share Posted February 5, 2009 awesome man....tnx dudeRegards, KymeAborted*"Abord" means "approach". Global $arr[2] $arr[0]="hip" $arr[1]="hip" ;^^ hip hip array. ^^ Link to comment Share on other sites More sharing options...
Inverted Posted February 5, 2009 Share Posted February 5, 2009 The "shutdowning" !!! 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