Vlince Posted May 8, 2007 Posted May 8, 2007 Hello all, first time poster! First of all, AutoIt is an amazing tool! I found it the other day while posting in the Microsoft PowerShell forum. I'm trying to build some automation tools for our company product and thought of using Microsoft PowerShell. Anyway...I stumbled upon a PS limitation and needed AutoIt (which I then discovered:-)) Ok so here's the thing: Our company has a Smart Client application built on the .Net 2.0 framework. The application is deployed via ClickOnce. In addition our application uses many third party tools. One of these tools is dotnetbar (http://www.devcomponents.com/dotnetbar/). As you can see in the picture attachment, AutoIt gives only **ONE** ClassNameNN for an entire group. The group inside the "ribbon bar" actually holds 4 clickable buttons (Dashboard, Campaigns, Gap Filling and Reports) Assuming I wanted to click "Dashbaord" or "Campaigns" how would I make AutoIt click the right one if they all share the same ClassNameNN id ? What's the workaround? Oh and on another subject, since I'm new to all this AutoIt stuff, is it me or I can't really rely on the Control ID since each time I re-run the application the Control ID is different...In other words, I can't create AutoIt scripts with a hardcoded Control ID as it will change the next time it runs... Anyway, Hope there's a workaround. Thanks in advance for the help! Sincerely Vince
Zedna Posted May 8, 2007 Posted May 8, 2007 As workaround you can click at specified position in your window (every toolbar button has it's stable relative position within main window).As far as I know Jon is trying to improve .NET applications manipulation but for now nothing is done.See this post for example. Resources UDF ResourcesEx UDF AutoIt Forum Search
Vlince Posted May 8, 2007 Author Posted May 8, 2007 Thank you very munch Zedna for such a quick reply :-) Yeah I was afraid the only workaround was the X and Y posistion...which I'm not a big fan of...hehehe Anyway, this post you gave me seems interesting, I'll read up on it. It would be great indeed if "Jon" (I don't know who that man is...) would improve .NET manipulation. Many thanks! Sincerely Vince
Zedna Posted May 8, 2007 Posted May 8, 2007 It would be great indeed if "Jon" (I don't know who that man is...) would improve .NET manipulation.Jon is main Autoit man Resources UDF ResourcesEx UDF AutoIt Forum Search
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