Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code which closes dialog box automatically
#1
Not Solved Toungue 
Hi
Code which closes dialog box automatically, no need to click on Ok button

Code:
smsg = "Ur message"
Set oWScript = CreateObject("Wscript.Shell")
For i = 1 to 1
    oWscript.popup smsg ,1
Next
Set oWScript = nothing

Mayur
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
MyBB how can i automatically click ok button in msgbox popup test 11 24,859 07-12-2022, 11:50 PM
Last Post: akash warke
  Automating save dialog box in windows using UFT shipu 0 4,780 01-16-2015, 07:54 PM
Last Post: shipu
  QTP closes after test run from QC shipu 0 1,745 01-16-2014, 12:12 AM
Last Post: shipu
  QTP 11 - Chrome 24. Dialog box is identifying as Win object. Kannan R 0 3,089 08-13-2013, 08:10 PM
Last Post: Kannan R
  QTP unexpectedly closes itself on function "Set" mlo 1 2,148 04-04-2013, 04:51 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)