Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recording Option: Retry until successful
#2
Can you give some code examples with comments? Eg recorded code, with your corrections that would be not necessary with the retry-on-error feature.

When recording, QM records new windows with wait(), activated windows with act(). Then uses the handle with lef() etc.
Macro Macro1878
Code:
Copy      Help
;---- Recorded 2012.12.06 19:06:48 ----
int w1=wait(5 win("Font" "#32770")) ;;recorded new window
lef 357 120 w1
;...
int w2=act(win("Font" "#32770")) ;;recorded activated window
lef 368 302 w2
;--------------------------------------
Maybe add an option for win() to wait some time if it does not find the window immediately?

Wanted to test QTP, but it is almost 3 GB...


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)