Need msgbox to go away during scheduled runs from ALM
Question ID: 108958
1
0

When we are testing our scripts and monitoring them, we have a few areas where we have a msgbox pop up. Currently we have to comment these out to run scheduled test sets from ALM, then go back and uncomment them. This can be tedious and time consuming. Is there some better way to do this? I do not want to use recovery scenarios.

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on April 23, 2019 4:32 pm
42 views
Answers (1)
1
Private answer

Rather than using a msgbox, try WshShell.Popup. You can use the below code to create a popup with a timeout. This code waits 60 seconds. Adjust as needed.

Set WshShell = CreateObject(''WScript.Shell'')
WshShell.Popup ''Waiting....just....waiting'', 60 , ''Wait a minute!!'', 1 + 16
Set WshShell = nothing

For more information about the WshShell.Popup, including different button types, click [this link][1].

[1]: https://www.vbsedit.com/html/f482c739-3cf9-4139-a6af-3bde299b8009.asp

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on April 23, 2019 4:32 pm
0
That suits our needs perfectly! Thanks!!
( at April 23, 2019 4:33 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top