Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FLOATING TOOLBAR
#8
acc has flag 0x800, which forces to interpret x and y as state and state mask. If you include this flag in flags, acc will find first object that has the specified state. If this will work, all your macro can be only two lines:

Code:
Copy      Help
Acc a=[color=blue]acc[/color]("" "CLIENT" "My Dialog Box " "AfxWnd42s" "" 0x1900 STATE_SYSTEM_FOCUSABLE STATE_SYSTEM_FOCUSABLE);
a.Mouse(1)

Here STATE_SYSTEM_FOCUSABLE is name of constant that is equal to 1048576. State constants are defined in some function. To view them quickly, click STATE_SYSTEM_FOCUSABLE and press F1.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)