ThomasT Posted February 24, 2017 Share Posted February 24, 2017 I try to get the text from win 8.1 popup windows but WinGetText and ControlGetText sometimes don't work at certain types of windows. For example when closing Notepad, the text can not be extracted from the popup "Do you want to save changes to.." . This looks like a "PHANTOM WINDOW" the text is there but behaves like non existing. V3 Window Info shows as visible text only "&Save Do&n't Save Cancel" , these are the button texts but where is the rest of the text? V3 Window Info shows no hidden text. Also noticed these problem windows have a horizontal line above the "&Save Do&n't Save Cancel" buttons. The class name is alwys DirectUIHWND. Can the text be extracted from such windows? Does anybody know the solution? Thanks Link to comment Share on other sites More sharing options...
LarsJ Posted February 25, 2017 Share Posted February 25, 2017 This Text-control is a modern windowless control without a control or window handle. It can't be handled with standard window or control functions and it can't be identified by the "AutoIt Window Info" tool. Such controls can be detected with Inspect.exe in Windows SDK or the "Simple Spy Tool" in the UI Automation framework. The text can easily be extracted with a few lines of UI Automation code. If you are interested I can create some code. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
ThomasT Posted February 25, 2017 Author Share Posted February 25, 2017 Thanks for your reply. Unfortunately the tutorial pdf is a dead link. What is UI Automation framework? A microsoft API or autoit library or a programming language? Where can I download it? Link to comment Share on other sites More sharing options...
LarsJ Posted February 25, 2017 Share Posted February 25, 2017 Click another link. Do some googling. Bottom of first post. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions 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