jennico Posted January 20, 2007 Share Posted January 20, 2007 hi everybody i want to retrieve the position of a certain control in a third party program. autoit window info gives the id (444) and classnamenn (Edit1). but neither controlgetpos nor controlgettext nor WinGetClassList are able to find this control (return value is "0" or ""). so is this the mentioned type of control that doesn't work with autoit and i can give it up ? (although window info percieves it?) what other method can i use to get the control's position (pixelchecksum is too slow) ? thanx j. :-) Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 20, 2007 Moderators Share Posted January 20, 2007 hi everybodyi want to retrieve the position of a certain control in a third party program. autoit window info gives the id (444) and classnamenn (Edit1).but neither controlgetpos nor controlgettext nor WinGetClassList are able to find this control (return value is "0" or "").so is this the mentioned type of control that doesn't work with autoit and i can give it up ? (although window info percieves it?)what other method can i use to get the control's position (pixelchecksum is too slow) ?thanx j.:-)What program is it, maybe we can find an alternative if we knew exactly what type of control it was. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
jennico Posted January 20, 2007 Author Share Posted January 20, 2007 the programm is "destinator pn" navigation software. this is the window info: Press CTRL-ALT-F to freeze the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Destinator Class: Afx:10000000:0 Size: X: 0 Y: 0 W: 800 H: 600 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 653 Y: 364 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xECECEC Dec: 15527148 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 507 Y: 288 W: 188 H: 109 Control ID: 444 ClassNameNN: Edit1 Text: Style: 0x50000844 ExStyle: 0x00000000 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Load... X # 8, Schadowstrasse, Mitte (Berlin) >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
jennico Posted January 20, 2007 Author Share Posted January 20, 2007 (edited) the control is combined with four buttons the one i want the position from is: >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Destinator Class: Afx:10000000:0 Size: X: 0 Y: 0 W: 800 H: 600 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 371 Y: 194 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xFFFFFF Dec: 16777215 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 304 Y: 181 W: 198 H: 21 Control ID: ClassNameNN: Afx:10000000:0:00000000:01900010:000000004 Text: Style: 0x50000000 ExStyle: 0x00000000 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Load... X # 2, Pariser Platz, Mitte (Berlin) >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< is this an "exotic" control ? any idea ? j. Edited January 20, 2007 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 20, 2007 Moderators Share Posted January 20, 2007 (edited) See if you can use _CtrlGetByPos().http://www.autoitscript.com/forum/index.ph...st&p=219847Edit:I notice you are using Screen Coords in AutoInfo.exe, make sure you change it to Client Coords.AutoInfo.exe >> Options >> Coord Mode >> Client Edited January 20, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
jennico Posted January 20, 2007 Author Share Posted January 20, 2007 thanx, will try it. but if it doesn't, is there another way besides from pixelchecksum? j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
jennico Posted January 20, 2007 Author Share Posted January 20, 2007 well, i tried it but still i don`t receive an array. the variable is set to "0" value like before. i used client coords. so this control might not work with autoit. how sad. any more idea or do i have to search the screen for a certain pixel ? :-( j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 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