Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrating If Condition with Find Window code
#1
HI,

In the below code, I would like to introduce an if condition to do away with the err routine.
Th err routine is slow for some reason.
Kindly advise.

Macro Bulk Reservation
Trigger @1     Help - how to add the trigger to the macro
Code:
Copy      Help
,w16=wait(3 WV win("Franchise Data has changed - " "KCMLMasterForm_32"))
,err
,,goto checkpoint
,a16.Find(w16 "PUSHBUTTON" "Proceed" "class=ToolBar_Class[]id=66" 0x1005 30)
,a16.Mouse(1);1
Best Regards,
Philip
#2
,w16=win("Franchise Data has changed - " "KCMLMasterForm_32")
,if(!w16) goto checkpoint
#3
Thanks Gintaras, that worked perfectly.

Could you kindly let me know as to why the err routine is slow.
Maybe my understanding is wrong...
Best Regards,
Philip
#4
wait(3 ...)
waits for window 3 s, then error.

win(...)
just finds window, does not wait.


Forum Jump:


Users browsing this thread: 1 Guest(s)