Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an error message
#1
In my macro, there is only one error that could happen:

The orderID could be wrong so it would not open a child window before where the clo is below. So I would need an error message to pop up telling me that the orderID is not valid and paste the order ID it just looked up in the error message.

Here is my macro:

for r 0 a.len
mou 1970 265
lef
wait 5
search
mou 3640 155
lef
wait 2
paste a[0 r]
key T
key "o"
key Y
wait 2
clo
wait 2
account history
mou 2102 490
lef
lef
wait 5
New Inquiry
mou 3790 160
lef
wait 2
key T
key T
key T
key T
wait 2
paste a[0 r]
wait 1
key T
wait 1
paste a[17 r]
wait 2
key T
key D
wait 1
save inquiry
mou 1155 830
lef
wait 2

clo hwndIE
clo hwndExcel


Forum Jump:


Users browsing this thread: 4 Guest(s)