Ruud Posted May 9, 2012 Share Posted May 9, 2012 There are several posts asking/describing how to 'get' to hidden text on a window/form.It seems that for most users, the lineOpt("WinDetectHiddenText", 1)solves the problem.For the situation I'm having, however, this is not the case, as I show further below.If there's anyone that knows why - please let me know!Thanks!Ruud.The details:1. Window info tool says:expandcollapse popup>>>> Window <<<< Title: Visual UI Automation Verify : Client Side Provider Class: WindowsForms10.Window.8.app.0.33c0d9d Position: 98, -8 Size: 1590, 1066 Style: 0x17CF0000 ExStyle: 0x00050100 Handle: 0x00000000004B05D8 >>>> Control <<<< Class: WindowsForms10.Window.8.app.0.33c0d9d Instance: 13 ClassnameNN: WindowsForms10.Window.8.app.0.33c0d9d13 Name: Advanced (Class): [CLASS:WindowsForms10.Window.8.app.0.33c0d9d; INSTANCE:13] ID: 11535410 Text: PropertyGridView Position: 1044, 65 Size: 527, 938 ControlClick Coords: 494, 228 Style: 0x56010000 ExStyle: 0x00000000 Handle: 0x0000000000B00432 >>>> Mouse <<<< Position: 1644, 315 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Test Results toolStrip4 Tests toolStrip2 Properties PropertyGrid PropertyGridView toolStrip5 Automation Elements Tree toolStrip1 menuStrip1 statusStrip1 >>>> Hidden Text <<<< schop: noun, masculine2. My intended code to obtain all text (including the hidden text "schop: noun, masculine") is:Opt ("WinDetectHiddenText", 1) ConsoleWrite(WinGetText("Visual UI Automation Verify : Client Side Provider"))3. The outcome, however:Test Results toolStrip4 Tests toolStrip2 Properties PropertyGrid PropertyGridView schop: noun, masculine toolStrip5 Automation Elements Tree toolStrip1 menuStrip1 statusStrip1So; the hidden text is missing... but why??? Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 9, 2012 Share Posted May 9, 2012 Did you try WinSearchChildren With 1? Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Ruud Posted May 9, 2012 Author Share Posted May 9, 2012 Thank you for the suggestion - that did it! 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