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: 341, Answers: 22)
Asked on April 23, 2019 4:32 pm
5 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: 16, Answers: 751)
Answered on April 23, 2019 4:32 pm
That suits our needs perfectly! Thanks!!
( at April 23, 2019 4:33 pm)