Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EA_Drag hDlg 1
#1
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.
pi
#2
try this
Macro
Code:
Copy      Help
if(EA_Main(0 _s 0 1))
,out _s
#3
Confusedhock:
Idea
Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin

very cool!

:mrgreen: i am a greedy guy, how do invoke same way the search for controls or window?
WP_Rect
pi
#4
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
Code:
Copy      Help
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


Forum Jump:


Users browsing this thread: 1 Guest(s)