Jump to content
Sign in to follow this  
Kyme

simple msgbox script help

Recommended Posts

Kyme

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 by Kyme

Share this post


Link to post
Share on other sites
Authenticity

If $del111 = 6 Or $del111 = -1 Then ...EndIf

Edit: 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 by Authenticity

Share this post


Link to post
Share on other sites
Kyme

If $del111 = 6 Or $del111 = -1 Then ...EndIf

awesome man....tnx dude

Regards, Kyme

Share this post


Link to post
Share on other sites
bundyxc

awesome man....tnx dude

Regards, Kyme

Aborted*

"Abord" means "approach". :)


Global $arr[2]

$arr[0]="hip"
$arr[1]="hip"
;^^ hip hip array. ^^

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.