| || |
Delay to get past a MsgBox
Hello. I am trying to build a MsgBox that will prompt for user input of yes/no but I want Robot to go past the MsgBox window if no response is received after 30 seconds.
I have tried different combinations of If/Thens and Loops but I cannot seam to get anything that will allow the window to close after x amount of time and report that there was no response.
This is mainly a MsgBox I will use that will be at the end of a script so a user can report if something printed. I need a way to close this MsgBox and report that no response was given in case I run this unattended.
Any ideas would be great.
Re: Delay to get past a MsgBox
I can attach the library here, but send me an email (firstname.lastname@example.org) and i'll forward it to you, the script looks like:
See the attached library
Dim Result As Integer
'Initially Recorded: 09/26/2000 9:54:13 AM
'Script Name: Timed Dialog Boxes
'** TimedMsgBox Example ***
Result = TimedMsgBox("This Message will self destruct in ...", 10)
'** TimedInputBox Example ***
'Last 2 params are the x and y position on the screen to display the box
A$ = TimedInputBox("Override the default input Data File now", 10, "Timed Input Box", _
"C:\Temp\DataFile.DAT", 20, 160)
'** StatusBox Example ***
StatusBox "S_MAIN completed.""About to begin S_WINDOW", 10
'** StatusOptionBox Example ***
Result = StatusOptionBox("Press Any Key to Continue", 10, " Any Key ")