You will probably need to tweak this a bit but here is a little function:
Private Function errorCheck()
On Error GoTo Error
'
Dim L As New CListWindows
errorMsg = ""
Connect "Flowcast", stWindows
Stable 0.5
'
For Each H In L.InProcess(R.hWnd)
If ClassName(H) = "Static" Then
strview = Trim$(View(H))
If Len(strview) > 0 Then
errorMsg = strview ß"This is the message in the pop up box"
Exit For
End If
End If
Next H
Key "{ENTER}" ß "This also hits the default OK button to close the pop up"
Exit Function
'
From: [email protected] [mailto:[email protected]]
Sent: Thursday, February 11, 2010 2:36 PM
To: [email protected]
Subject: [talkbws] RE: Watching for a Message Box
That would be great.
My direct email is [email protected]
From: [email protected] [mailto:[email protected]]
Sent: Thursday, February 11, 2010 3:25 PM
To: [email protected]
Subject: [talkbws] RE: Watching for a Message Box
I actually have to do something exactly like this for IDXTerm applications; do
you want the code?
From: [email protected] [mailto:[email protected]]
Sent: Thursday, February 11, 2010 2:22 PM
To: [email protected]
Subject: [talkbws] Watching for a Message Box
I need to create a script to watch for windows message boxes. Then to either
click "OK", "Yes" or "No" depending on what is in the message box.
I have not had to create any scripts in the past that interacts with windows
applications. Does anyone have an example similar to what I need, I could
model. Or a link to an area of the BWS website that may help me?
Paul Yagid
Women's Health USA
22 Waterville Rd.
Avon, CT. 06001
________________________________
"CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
immediately notify the sender by e-mail at the address shown. This e-mail
transmission may contain confidential information. The information is intended
only for the use of the individual(s) or entity to whom it is addressed. Any
disclosure, distribution, copying or use of the information by others is
strictly prohibited. Please delete it from your files if you are not the
intended recipient. Thank you for your compliance"
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
________________________________
CONFIDENTIALITY NOTICE: This communication is intended only for the use of the
individual or entity to which it is addressed and may contain information that
is privileged, confidential, and exempt from disclosure under applicable law.
If you are not the intended recipient, you are notified that any use,
dissemination, forwarding, distribution, or copying of the communication is
strictly prohibited. Please notify the sender immediately by e-mail if you have
received this by mistake and delete this e-mail from your system. (University
Health System)
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
________________________________
"CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
immediately notify the sender by e-mail at the address shown. This e-mail
transmission may contain confidential information. The information is intended
only for the use of the individual(s) or entity to whom it is addressed. Any
disclosure, distribution, copying or use of the information by others is
strictly prohibited. Please delete it from your files if you are not the
intended recipient. Thank you for your compliance"
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
-----------------------------------------
CONFIDENTIALITY NOTICE: This communication is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is privileged, confidential, and exempt
from disclosure under applicable law. If you are not the intended
recipient, you are notified that any use, dissemination,
forwarding, distribution, or copying of the communication is
strictly prohibited. Please notify the sender immediately by
e-mail if you have received this by mistake and delete this e-mail
from your system. (University Health System)
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx