Jump to content

Getting to hidden text


Recommended Posts

There are several posts asking/describing how to 'get' to hidden text on a window/form.

It seems that for most users, the line

Opt("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:

>>>> 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, masculine

2. 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
statusStrip1

So; the hidden text is missing... but why??? ;)

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...