Micro Focus QTP (UFT) Forums
Code which closes dialog box automatically - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Code which closes dialog box automatically (/Thread-Code-which-closes-dialog-box-automatically)



Code which closes dialog box automatically - mayur.bidkar - 11-13-2008

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