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

descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

0 Answers   DigiTech,


What are the two types of repositories available, explain them?

0 Answers  


how to write this script using descriptive programming? the script below is the script generated by QTP plz write the script using descriptive programming? plzzzzzzzz do answer thanku Browser("Welcome: Mercury Tours").Page("orkut - login").WebEdit("Email").Set "test123" Browser("Welcome: Mercury Tours").Page("orkut - login").WebEdit ("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4" Browser("Welcome: Mercury Tours").Page("orkut - login").WebButton("Sign in").Click Browser("Welcome: Mercury Tours").Page("orkut - home").Link ("Logout").Click Browser("Welcome: Mercury Tours").Page("orkut - login").Sync Browser("Welcome: Mercury Tours").Close

3 Answers  


How to create runtime property for an object?

7 Answers  


Explain the difference between check point and output value?

0 Answers  






CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP

2 Answers  


How to identify flash application when the qtp is not identifying the flash application objects.

2 Answers  


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

0 Answers  


What are parameterizing tests?

0 Answers  


How will you test a stapler?

0 Answers  


what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".

3 Answers  


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

0 Answers  


Categories