04-16-2009, 07:42 PM
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
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