rajsekarpillai Posted December 9, 2008 Posted December 9, 2008 Hi,I'm new to AutoIT and I want to automate some task in 3rd party software, but when I use AU3Info tool to get the control details.. all the details where shown Dynamic details. the same control when i use with UIspy tool I'll get static (AutomationID) like "m_editName".My question is How to use AutomationID in the controlsend or controlclick command? I have tried the same AutomationID instead of ControlID...but didn't work.Here is the AU3Info>>>> Window <<<<Title: Create ProjectClass: WindowsForms10.window.8.app.0.bf7771Position: 336, 129Size: 403, 520Style: 0x16CC0000ExStyle: 0x00010100Handle: 0x000C02F6>>>> Control <<<<Class: WindowsForms10.EDIT.app.0.bf7771Instance: 4ClassnameNN: WindowsForms10.EDIT.app.0.bf77714Advanced (Class): [CLASS:WindowsForms10.EDIT.app.0.bf7771; INSTANCE:4]ID: 66808Text: Position: 49, 236Size: 275, 20ControlClick Coords: 120, 11Style: 0x560100C0ExStyle: 0x00000200Handle: 0x000104F8>>>> Mouse <<<<Position: 509, 399Cursor ID: 0Color: 0xFFFFFF>>>> StatusBar <<<<>>>> Visible Text <<<<&HelpCancel&Create&Edit project properties after creating projectProject details......C:\Users\rajases\DocumentsProject &DWG directory:C:\Users\rajases\Documents&Project directory:&Description:&Name:Template...&Browse to another project to use as a template&Select the standard to use as a template project>>>> Hidden Text <<<<Here is UISpy infoAutomationElement General Accessibility AccessKey: "Alt+D" AcceleratorKey: "" IsKeyboardFocusable: "True" LabeledBy: ""text" "Description:"" HelpText: "" State IsEnabled: "True" HasKeyboardFocus: "False" Identification ClassName: "WindowsForms10.EDIT.app.0.bf7771" ControlType: "ControlType.Edit" Culture: "(null)" AutomationId: "m_editName" LocalizedControlType: "edit" Name: "Name:" ProcessId: "3344 (acad)" RuntimeId: "42 66808" IsPassword: "False" IsControlElement: "True" IsContentElement: "True" Visibility BoundingRectangle: "(389, 388, 275, 20)" ClickablePoint: "526,397" IsOffscreen: "False"ControlPatterns Text DocumentRange Text: "" Length: "0" Bounding Rectangles: "" AnimationStyleAttribute: "(not supported)" BackgroundColorAttribute: "16777215" BulletStyleAttribute: "(not supported)" CapStyleAttribute: "None" CultureAttribute: "(not supported)" FontNameAttribute: "Microsoft Sans Serif" FontSizeAttribute: "8" FontWeightAttribute: "400" ForegroundColorAttribute: "0" HorizontalTextAlignmentAttribute: "Left" IndentationFirstLineAttribute: "(not supported)" IndentationLeadingAttribute: "(not supported)" IndentationTrailingAttribute: "(not supported)" IsHiddenAttribute: "(not supported)" IsItalicAttribute: "False" IsReadOnlyAttribute: "False" IsSubscriptAttribute: "(not supported)" IsSuperscriptAttribute: "(not supported)" MarginBottomAttribute: "(not supported)" MarginLeadingAttribute: "(not supported)" MarginTopAttribute: "(not supported)" MarginTrailingAttribute: "(not supported)" OutlineStylesAttribute: "(not supported)" OverlineColorAttribute: "(not supported)" OverlineStyleAttribute: "(not supported)" StrikethroughColorAttribute: "(not supported)" StrikethroughStyleAttribute: "None" TabsAttribute: "(not supported)" TextFlowDirectionsAttribute: "(not supported)" UnderlineColorAttribute: "(not supported)" UnderlineStyleAttribute: "None" Value Value: "" IsReadOnly: "False"
Richard Robertson Posted December 9, 2008 Posted December 9, 2008 First of all, that looks more like a field declaration than a control ID. Seeing that it is a .Net application, it's going to be ridiculously hard to automate.
rajsekarpillai Posted December 11, 2008 Author Posted December 11, 2008 So, any other method to capture those Automation ID?
Richard Robertson Posted December 11, 2008 Posted December 11, 2008 Yeah. Use .Net instead of AutoIt.
zfisherdrums Posted December 12, 2008 Posted December 12, 2008 (edited) So, any other method to capture those Automation ID?Hello, rajsekarpillai:It appears you discovered the information using UISpy, correct? I had the exact same problem. I use this to identify .NET controls.Zach... Edited December 12, 2008 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog...
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