creeping Posted November 1, 2007 Share Posted November 1, 2007 I wish to automate Dial-a-fix, each time I run the program the controls ID's change. Makes it rather hard to click stuff etc. I have not seen ID's change before. What are the reasons for this? Any work arounds that are not to complex? Thanks. Link to comment Share on other sites More sharing options...
Nahuel Posted November 1, 2007 Share Posted November 1, 2007 And why don't you work with the classnameNN value? Link to comment Share on other sites More sharing options...
creeping Posted November 1, 2007 Author Share Posted November 1, 2007 And why don't you work with the classnameNN value?Ok, I could do that. As for my first question... I would just rather work with ID's rather than classname stuff if possible. Link to comment Share on other sites More sharing options...
Blue_Drache Posted November 1, 2007 Share Posted November 1, 2007 (edited) Why not just work with handles then? $hctlXYZ = ControlGetHandle($window,$text,"ClasnameNN") Or put in a routine to get the controlIDs and stuff it in a variable each time you detect a restart of said program? Or ... do what I do, match text on a control that doesn't change and use that in a detection loop to get the ClassnameNN. Edited November 1, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 1, 2007 Moderators Share Posted November 1, 2007 I would just rather work with ID's rather than classname stuff if possible.Why? You just said it's changing on each start up, what's the difference if it works?If you want to take the long way around it then..._CtrlGetByPos 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...
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