Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help working with popup Window
#1
I am not a programmer and am teaching my self how to write a macro. I have run into a problem and don't know how to get around it. I copy 2 cells values from excel to strings then past them into a applications taht runs in internet explorer. The macro works great. Some time the data I am pasting has already been run through the application by someone else and the brower gives me a popup. I don't know how to build a check in the macro to look for the popup and press the ok button when it happens then go to the next record.

Any direction would be very helpful.


rep 308
,str svctag
,str dps
,int w1=act(win("" "XLMAIN"))
,svctag.getsel
,svctag.rtrim("[]")
,'R
,dps.getsel
,dps.rtrim("[]")
,'AT
,int w2=win(" Internet Explorer" "IEFrame" "" 0x1000)
,lef 799 123 w2
,svctag.setsel
,lef 630 566 w2
,wait 12
,lef 921 570 w2
,'BBBBBBBB
,dps.setsel
,lef 671 572 w2
,wait 12
,'T
,'T
,'T
,'Y
,wait 12
,'AT
,act w1
,'D
,'L
#2
The popup appears during ,,wait 12 ? Try to replace it to:

Code:
Copy      Help
,,int hwndPopup=wait(12 win("popupname" "popupclass")); err
,,if(hwndPopup)
,,,key Y
,,,wait 12


Forum Jump:


Users browsing this thread: 1 Guest(s)