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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1713


What are the check points can be inserted without recording?

594


How would you directly trigger javascript in a test?

1467


What are the different types of checkpoints?

577


How to create Reusable and Multiple Actions?

1705






whow much strong on VB and C?

1478


i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1460


Output values? i want a practical example

1309


how to prepared for first for the first interview?

1792


can i compare two databases using QTP ?

1875


What is CMMP and CMMH?

692


Hi, how can we check or avoid the memory leakage in QTP9.2?

1698


What is qtpro?

591


How do we handle run-time errors?

575


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!!

2442