A Message Box That Closes Automatically in Vbscripting

0
18
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

Vbscripting
A Message Box That Closes Automatically

A Message Box That Closes Automatically in Vbscripting:

 This is a very interesting criterion of an Automation Test Engineers to create a message box that will create itself—-> display—->and close automatically. well, I have used this in some of the projects, Simple… the code is given below…

Set WshShell = CreateObject("Wscript.Shell")
WshShell.Popup "Wait 5 seconds", 5, "Title"
//need more clarifications..
//use this code..
set a = createobject("wscript.shell")
msg="Messagebox will close automatically"'//Message you want to display
tme="5"
title="testing"
a.popup msg,time,title
 

but practically speaking it is of no use. If you want to display a message, we will not let it go. And in between of a test, such message will slow down the testing process. This can be treated as a programming process.

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

LEAVE A REPLY

Please enter your comment!
Please enter your name here