Sign in to follow this  
Followers 0
scorp

Message Box Timer

3 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Thats EXACLTY what I was trying for.. :lmao:

Thanks for the snappy reply...

scorp ;)

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  
Followers 0