Kyme Posted February 5, 2009 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
Authenticity Posted February 5, 2009 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
evilertoaster Posted February 5, 2009 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")
Kyme Posted February 5, 2009 Author Posted February 5, 2009 If $del111 = 6 Or $del111 = -1 Then ...EndIfawesome man....tnx dudeRegards, Kyme
bundyxc Posted February 5, 2009 Posted February 5, 2009 awesome man....tnx dudeRegards, KymeAborted*"Abord" means "approach". Global $arr[2] $arr[0]="hip" $arr[1]="hip" ;^^ hip hip array. ^^
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