Jump to content

Recommended Posts

Posted (edited)

I have a script that comes up to a message box with a Yes or No question... If you don't answer the box it will just stay there forever..

Is there a way to open the message box and wait for a click otherwise exit the scipt after 5 minutes or so..?

Thanks

scorp :lmao:

Edited by scorp
Posted

This should do as you ask. :lmao:

$result = MsgBox(4, '', 'Close in 5 minutes', 300)
If $result = -1 Then
    Exit
ElseIf $result = 6 Then
;yes
Else
;no
EndIf

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...