Can we set a timeout for the msgbox.I want the msgbox to
disappear after 2 seconds during the script execution
without clicking on the OK button manually.

Answers were Sorted based on User's Feedback



Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / guest

Ya we can make the msg box disappear withou even clicking
on the msgbox. by using the time out property of the
vbscript.

Text_MsgBox = "Test"
Timeout = "2" 'in seconds
Set WshShell = CreateObject("WScript.Shell")
wshShell.Popup Text_MsgBox, TimeOut 'Prompt Message box

Is This Answer Correct ?    19 Yes 4 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / sreekanth chilam

Check it out with the below code & this will be the answer
for ur question..

Dim x, y
Set x =CreateObject("WScript.Shell")
y=x.Popup("Do you feel alright?",2,"Answer This Question:",
4 + 32)

Is This Answer Correct ?    10 Yes 5 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / pavani prasad

a=30
b=20
c=a+b
Timeout = "2"
Set ws = CreateObject("WScript.Shell")
ws.Popup c, TimeOut

Is This Answer Correct ?    5 Yes 0 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / sreekanth chilam

Hi sastry...

4 --->indicates to Show "Yes" and "No" buttons.
32--->indicates to Show "Question Mark" icon.

"Answer this Question.." indicates the Title of
messagebox ...

I hope u got ..it ..right?

Is This Answer Correct ?    4 Yes 0 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / wilco

Is this possible with an inputbox too?

Is This Answer Correct ?    1 Yes 1 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / sastry

hI Sreekanth Chilam ,Can u tell me wat is 4+32
and ,"Answer This Question:".....

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

Explain step generator in qtp?

0 Answers  


what is the framework followed by ur company in qtp

5 Answers  


Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results.

1 Answers   Cap Gemini,


How you automate testscripts one by one or moduelwise or all at once

2 Answers  


Hi, how can we retrieve a specific value from Excel Sheet (Not datatable. for externel file).i mean to say from .xls file. and also tell me from xml file and .doc file. and how can u parameterize ur script from .xls file.(Not data table).

2 Answers   Cap Gemini,






what are the limitations of automation testing?

2 Answers   TCS,


How many type of status messages are there ..explain?

5 Answers  


Hi All, I am 4 yrs experieced in manual testing and new to automation tool QTP. Iam trying to learn it thru online and material i have.I am able to understand but unable to trace out which method or function to be used where necessary in VB Script. How come we know the functions or methods to be used to open a window when clicking on button or so...Pls suggest me.How can i proceed further to apt VB Script.

0 Answers  


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

0 Answers   Infosys,


what is meant by source control?

0 Answers   Ordain Solutions,


How many types of parameters are available in quicktest professional (qtp)?

0 Answers  


What are the different scripting languages you could use when working with QTP ?

6 Answers  


Categories