12-06-2012, 07:39 PM
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
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...
When recording, QM records new windows with wait(), activated windows with act(). Then uses the handle with lef() etc.
Macro Macro1878
;---- 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
;--------------------------------------
Wanted to test QTP, but it is almost 3 GB...