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
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 |
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 |
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 |
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 |
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 |
i have .xls,.txt,.doc files are there (together). i want find only .xls file among them? how can we write function?
For what purpose to we use object repository in a application?also explain usage of obj.repository?
What is the use of Accessibility check point?
In your QTP framework, what checkpoints were applied in the script to minimize script failure due to any reason during execution?
How do you create new test sets in td?
How many regression test suits in your appliction?
How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
what are the different Frame Works in Quick Test Proffessional testing
What are the most frequent errors you faced while executing your scripts?
what is flag=0 in qtp tool.. i am strugglin to use flag function , exactly when it is used , any real time expert pls explain clearly?