Jump to content

Is it possible............?


Recommended Posts

Hi, is it possible to find out the control name of the control at a certain position on the screen?

The controls are always in the same place, but the control name varies on different windows.

I want to retrieve the text from the cotrol that is always at the same co-ords

Thanks in advance

Link to comment
Share on other sites

need more information here. if you want help

what control kind of control

program or internet

do you have any autoit script yet

did you use the help files to search for "control"

are you using beta version

????????????????????//

maybe you could use a couple of lessons in autoit

this might be a good place to start

http://www.autoitscript.com/forum/index.php?showtopic=21048#

8)

NEWHeader1.png

Link to comment
Share on other sites

sorry, im still fairly new to all this.

im not sure what type of control it is,

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 433 Y: 83 W: 55 H: 16

Control ID: 985920

ClassNameNN: WindowsForms10.STATIC.app389

Text: 3.35

the value 3.35 is what i want to extract

but the control is never the same, but always in the same place on the page

it doesnt change unless i move to a different page, in which case the value changes, the id changes, but it still at the same co-ordinates

Link to comment
Share on other sites

It sounds like you may need an If statement of some sort.

1) How many different pages are there?

2) Do the ControlID's change at different times, or are they always the same each page?

Thanks,

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

It sounds like you may need an If statement of some sort.

1) How many different pages are there?

2) Do the ControlID's change at different times, or are they always the same each page?

Thanks,

JS

ok i dont know what kind of control it is, its a program, and there are literally hundreds of pages, but the control id remains the same while that page exists, i can set the script to obtain these manually by me inputting the id manually, but want to know if there is a way of obtaing the control id under the mouse, that way i can move the mouse to the co-ord and obtain the control id from under the mouse

Link to comment
Share on other sites

ok i dont know what kind of control it is, its a program, and there are literally hundreds of pages, but the control id remains the same while that page exists, i can set the script to obtain these manually by me inputting the id manually, but want to know if there is a way of obtaing the control id under the mouse, that way i can move the mouse to the co-ord and obtain the control id from under the mouse

if i remember correctly, someone (maybe lxp?) made a UDF a while back, ControlGetHandleByPOS() or something...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...