Sign in to follow this  
Followers 0
JeffHart

How to extract tool tip help as text. WindowInfo can't see it.

4 posts in this topic

Hello all,

This is my first post in this forum.

I have a commercial application that opens a window.

In the window there is a graphical area which is organised like a Tree View, but is in fact just graphics.

The Window Info tool doesn't find any of the text that I can read (as a human) in that window.

If I hover the mouse over some of that text (in this case a part number), then the tool tip help comes up with the same text as I can read (as a human) (ie the part number) in the tool tip box.

I would like to capture (as text) ALL the tool tip help texts which exist for this window because then I can work out what items are being displayed.

I don't want to hover the cursor over each text (even with AutoIT doing the hovering) because I don't know where the texts are in the graphics area.

I assume that the tool tip help is actually stored as text somewhere. I am trying to get to that somewhere.

At the moment, my alternative is to capture the window to a bit map and attempt to OCR the bitmap to discover the part number.

The questions are:

Where do I start to look for that tool tip help text stored as text?

If the Window Info tool can't see it, is it out of reach of AutoIT?

 

I'm on Win7.

Help file says AutoIT v3.3.8.1

I live in a tightly controlled IT environment so I can't add any other tools from the internet.

I can't get changes made to the commercial application.

Sorry if I've been ambiguous, obviously ask for clarification if that will enable you to help me.

Thanks very much in advance.

Cheers

Geoff.

Share this post


Link to post
Share on other sites



No the application is running locally on my client.

I looked around the web and tried this >(inspired by this post) :

#include <array.au3>
#include <windowsconstants.au3>
#include <GUIConstantsEx.au3>

Local $wl = WinList("[Class:tooltips_class32]")
;_ArrayDisplay( $wl )


for $n = 1 to $wl[0][0]
   local $handle = $wl[$n][1]
   local $title = WinGetText( $handle )
   local $winState = WinGetState( $handle )
   local $sClass = WinGetClassList( $handle )
   ConsoleWrite( $n & "=" & $handle & "=" & $title & "=" & $winState & "=" & $sClass & @CRLF )
Next

This finds 132 items.

None of them has any Title or Text associated with them.

Don't know if they are what I'm after and they are currently empty, or they are not what I'm after and I need to look elsewhere.

Suggestions are welcome.

Thanks in advance for your help.

Cheers

Geoff.

Share this post


Link to post
Share on other sites

Have you looked at the GUIToolTip UDF?


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
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
Sign in to follow this  
Followers 0