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

If u r using descriptive programming to identify the object where do u write the script for those objects? do u write it in the expertview? plz do answer its urgent thanks advance.

3 Answers  


WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

0 Answers  


IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?

3 Answers   Polaris,


How to take screen shot of desktop by using vb script code or is there any method?

1 Answers  


can test automation improve test effectiveness?

0 Answers  






How to get the column count and column name from the resultset in the database connection program?

6 Answers  


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

0 Answers  


How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?

1 Answers   Motorola,


Why use Regular Expressions?

1 Answers  


What is an Regular expression doing in VBScript?Tell the pattern for the email verification.

1 Answers   Accenture,


please tellme ordernal identifiers in QTP?

2 Answers  


what is difference between calling a function and reusing an action?

1 Answers  


Categories