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 |
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.
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,,,,,,,
IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?
How to take screen shot of desktop by using vb script code or is there any method?
can test automation improve test effectiveness?
How to get the column count and column name from the resultset in the database connection program?
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.
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?
Why use Regular Expressions?
What is an Regular expression doing in VBScript?Tell the pattern for the email verification.
please tellme ordernal identifiers in QTP?
what is difference between calling a function and reusing an action?