lkn Posted November 11, 2010 Posted November 11, 2010 Hi, Is there anyone who knows if class, instance, id etc can be found in anyway when AutoIt Window Info is not able to? I can't find any in the application i am trying to do some automated test against. I created my first AutoIt tests yesterday based only on sending keys, e.g. navigating with tab keys etc but this is not a solution I would like to have. I am not interested in using pixel coordinates. Overall AutoIt seems really nice and the help file is great altough I couldn't figure out a solution to this. I read something about that external screen readers might do the trick but I have no solution yet. Looked in the faq and tried searching in the forum (1000 results) but can't find the info I am looking for.. Appreciate any input from you on this. Thanks.
PsaltyDS Posted November 11, 2010 Posted November 11, 2010 Tell us more about the window and control you are working with. AU3Info didn't come up completely empty handed, what did it show? Post the contents of the Summary Tab. There are control types that AutoIt can't do anything with because they don't have an external API. Delphi Grid controls, and Flash objects are examples of the trouble makers. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
lkn Posted November 12, 2010 Author Posted November 12, 2010 Definitly. It is a .NET application and WPF is used. This is what the summary tab shows: >>>> Window <<<< Title: FSA Class: HwndWrapper[FSA.Client.exe;FSA Main GUI Thread;bbd1214c-878f-4d87-bb84-5d72e386e95e] Position: -8, -8 Size: 1696, 1026 Style: 0x17CF0000 ExStyle: 0x00040100 Handle: 0x0003053C >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 1186, 293 Cursor ID: 2 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<<
Ascend4nt Posted November 12, 2010 Posted November 12, 2010 Windows Presentation Foundation uses Direct3D to draw its GUI, and AutoIt can't read anything from DirectX apps since the 'GUI' is basically one big bitmap as far as the system can 'see'. In cases like this, it might be best to just use coordinates and click on items that are in fixed positions. I don't know if there's any way to dig further into the program to spy on messages being sent when GUI elements are clicked, but it would be interesting to find out if there are any workarounds. Perhaps image-search DLLs or even just pixelsearch can be helpful here.. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code)
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