Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which is faster err or ifi: for Window/Control & Acc objects
#2
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
Code:
Copy      Help
;----
int w=win("QM TOOLBAR" "QM_toolbar")
Acc a=acc("x" "x" w "ToolbarWindow32" "" 0x1005)
err out "not found"

acc wit if:
Macro Macro83
Code:
Copy      Help
;----
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)