Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
child left click
#1
Hello,

I'm trying to figure out how to left click a child window. Seems like a simple task, but I can't get it to work. Please help!

In the code below, child t is where I want the mouse click to land. The t stands for "tab", the child is a tab-like menu item at the edge of the main window w2.

DC

int w2=act(win("Hyperspace - OSV XRAY - ocprdapp" "ThunderRT6MDIForm"))
lef 35 672 w2; 0.5
Acc a=acc("IB Message" "MENUITEM" w2 "ToolbarWindow32" "" 0x1001); err
if (a.a=0)
int t=child("" "ThunderRT6UserControlDC" w2 0x1 0 0 61)
mou 10 10 w2 t
lef; 0.5
a=acc("IB Message" "MENUITEM" w2 "ToolbarWindow32" "" 0x1001);
** end if
a.Mouse(1); 0.5
Acc b=acc("" "CLIENT" w2 "RichTextWndClass" "" 0x1000)
b.Mouse(1)
'trgD
act win("In Basket Recent Recipients" "ThunderRT6FormDC")
'Y
act w2
'TT


I've also tried:

but child("" "ThunderRT6UserControlDC" w2 0x1 0 0 53); 0.5
SelectTab(child("" "ThunderRT6UserControlDC" w2 0x1 0 0 53) 0)

didn't work either.


Forum Jump:


Users browsing this thread: 1 Guest(s)