Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am tring to get the coordinates of a variable
#2
When you say "variable", you probably want to say "control"? Controls are those various small fields in windows. They are also accessible objects.

Open the Find Accessible Object dialog, drag the Drag picture and drop it onto the object. Click Test to ensure that the correct object is found. Then replace the Name field with (linkName) and click OK. Then open the Accessible Object Actions dialog and select the Get Location action from the list. Of, course, you don't need to get location if you just want to click it.

You need at least QM 2.1.6.

Example code that is inserted by these two dialogs:

Code:
Copy      Help
Acc a=acc(linkName "TEXT" "Offline Admin Tool" "Internet Explorer_Server" "" 0x1801 0x40 0x20000040)
int x y cx cy
a.Location(x y cx cy)

This code finds the object and stores its coordinates into the variables x, y, cx and cy.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)