Fidel Posted July 23, 2008 Posted July 23, 2008 Hello, I'm looking for a window via its classname (because it does not have a title). The problem is that the class name changes whenever the program is run, but the beginning stays the same. eg. I run the program, it's classname is Prog123 I run the program again, it's classname is Prog456 I've tried: ControlGetText("[CLASS:Prog456]", "", "[ClassNN:Edit1]") That works fine. However, I want it to be more generic like this: ControlGetText("[CLASS:Prog]", "", "[ClassNN:Edit1]") As you can see, I only want to match the beginning of the class name. Is there a WinTitleMatchMode equivalent for classnames?? Many thanks, Fidel.
Cha0sBG Posted July 23, 2008 Posted July 23, 2008 umm don't think it's equivalent for classnames... Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ยน There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread.
Fidel Posted July 23, 2008 Author Posted July 23, 2008 this worked muttley WinGetTitle("[REGEXPCLASS:Prog+]", "")
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