Posts: 1,271
Threads: 399
Joined: Mar 2003
i would like to start finding an acc element by a trigger, like win a, but without to see the acc dialog at first.
that would be useful for gathering fast info.
i can't start EA_Drag because its a private sys function.
Posts: 12,074
Threads: 141
Joined: Dec 2002
try this
Macro
if(EA_Main(0 _s 0 1))
,out _s
Posts: 1,271
Threads: 399
Joined: Mar 2003
Posts: 12,074
Threads: 141
Joined: Dec 2002
For htm probably would be similar like acc.
For win/child/id, need to get code from TO_FindWindow and edit. Particularly, run the dialog, lef+ one of the Drag controls, wait for dialog close, get result.
Function
TO_FindWindow_Instant
str controls = "4 5"
str e4Var c5Dec
e4Var="hwnd"
c5Dec=1
opt waitmsg 1
int w1=ShowDialog("TO_CtrlDlg" &TO_CtrlDlg &controls 0 1)
;lef+ 10 10 id(21 w1) ;;21 for Window, 32 for Control
lef+ 10 10 id(32 w1) ;;21 for Window, 32 for Control
rep() 0.01; if(w1!=win(mouse)) break
mou
wait 0 WD w1
if(controls="4 5") ret ;;Cancel
TO_Hwnd controls
if(e4Var.len)
,controls-"="
,TO_V e4Var
,controls-e4Var
,if(c5Dec=1) controls-"int "
out controls
;or
;InsertStatement controls