11-01-2011, 07:06 PM
Faster with if, because act waits a little for the window.
acc without waiting will be the same with err and with if.
acc with err:
Macro Macro1569
acc wit if:
Macro Macro83
To measure times, use perf() or Measuring speed with high precision
acc without waiting will be the same with err and with if.
acc with err:
Macro Macro1569
;----
int w=win("QM TOOLBAR" "QM_toolbar")
Acc a=acc("x" "x" w "ToolbarWindow32" "" 0x1005)
err out "not found"
acc wit if:
Macro Macro83
;----
int w=win("QM TOOLBAR" "QM_toolbar")
Acc a=acc("x" "x" w "ToolbarWindow32" "" 0x0005)
if(!a.a) out "not found"
To measure times, use perf() or Measuring speed with high precision