Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Posting MsgBox message durring run
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Is there a way to post a MsgBox message durring a run but keep going automatically after 1 second or so.

Currently, if a MsgBox displays,the user must press Ok to continue the automated script.

thx
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi...
Plz try this...here 2 - seconds to wait.


ShowMyMessage "hi"


Code:
Sub ShowMyMessage(strMessage)
        CreateObject("wscript.shell").Popup strMessage, 2, "Title"
End Sub
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Lorena,

Plz chk the link https://www.learnqtp.com/forums/Thread-h...gbox-popup

I hope this would help.

Regards,
Ankesh
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Thx vIns and Ankesh

I had searched but I did not search on the correct keywords. Thx for sharring these ideas. Both of your ideas are perfect. Thx guys!.

I then tried a mix of both ideas with sending 3 variables
ShowMyMessage (GroupName, 2, "Group Name")

with the Sub being:
Code:
Sub ShowMyMessage(msgbox_message, msgbox_time, msgbox_title)

Set a=createobject("wscript.shell") 'Creat one object
a.popup msgbox_message,msgbox_time,msgbox_title
Set a=Nothing    
End Sub

This was not liked. Can I do this? If so, how can I fix it?

thx
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
Never mind... lol...lol...lol

I forgot to "Call" my Sub function ;-). Its Friday!

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
MyBB how can i automatically click ok button in msgbox popup test 11 24,906 07-12-2022, 11:50 PM
Last Post: akash warke
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,516 09-16-2018, 03:48 PM
Last Post: vijilesh
  recovery scenario for closing a message box itself ashima 0 2,241 12-26-2013, 11:10 AM
Last Post: ashima
  message box,need to put code in fn library diya 6 3,998 12-05-2012, 10:52 AM
Last Post: diya
  Error message 'Invalid Arguments ' sandeephc 3 4,219 06-26-2012, 11:34 AM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)