civilcalc Posted February 5, 2006 Share Posted February 5, 2006 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 More sharing options...
civilcalc Posted February 5, 2006 Author Share Posted February 5, 2006 can someone please try and help me with this, is beginning to do my head in, cannot think of a way to do it Link to comment Share on other sites More sharing options...
Valuater Posted February 5, 2006 Share Posted February 5, 2006 need more information here. if you want helpwhat control kind of controlprogram or internetdo you have any autoit script yetdid you use the help files to search for "control"are you using beta version????????????????????//maybe you could use a couple of lessons in autoitthis might be a good place to starthttp://www.autoitscript.com/forum/index.php?showtopic=21048#8) Link to comment Share on other sites More sharing options...
civilcalc Posted February 5, 2006 Author Share Posted February 5, 2006 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 More sharing options...
Valuater Posted February 5, 2006 Share Posted February 5, 2006 that only answers one of the questions above 8) Link to comment Share on other sites More sharing options...
JSThePatriot Posted February 5, 2006 Share Posted February 5, 2006 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 More sharing options...
civilcalc Posted February 5, 2006 Author Share Posted February 5, 2006 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,JSok 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 More sharing options...
seandisanti Posted February 5, 2006 Share Posted February 5, 2006 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 mouseif i remember correctly, someone (maybe lxp?) made a UDF a while back, ControlGetHandleByPOS() or something... Link to comment Share on other sites More sharing options...
seandisanti Posted February 5, 2006 Share Posted February 5, 2006 found it Link to comment Share on other sites More sharing options...
civilcalc Posted February 5, 2006 Author Share Posted February 5, 2006 found itThankyou very much Link to comment Share on other sites More sharing options...
seandisanti Posted February 6, 2006 Share Posted February 6, 2006 Thankyou very muchnp, always glad to help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now