| View previous topic :: View next topic |
| Author |
Message |
stanman
Joined: 29 Apr 2004 Posts: 5
|
Posted: Fri Apr 29, 2005 11:09 pm Post subject: Can Autohotkey capture tooltip text? |
|
|
| Does anybody know a way to copy the text that appears in a tooltip? When the mouse cursor hovers over certain parts of the screen, a box appears displaying some text. Is there a way to copy some or all of that text to the clipboard, or to a text file? |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1276
|
Posted: Fri Apr 29, 2005 11:15 pm Post subject: |
|
|
Yes. A tooltip has a window class of tooltips_class32, use ControlGetText to get the text. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
stanman
Joined: 29 Apr 2004 Posts: 5
|
Posted: Sat Apr 30, 2005 12:08 pm Post subject: |
|
|
This is what I have so far but it doesn't return anything.
What am I doing wrong?
#P::
ControlGetText, OutputVar, tooltips_class32
;WinActivate, Document - WordPad
;send, %OutputVar%
MsgBox, The text is %OutputVar%
return |
|
| Back to top |
|
 |
stanman
Joined: 29 Apr 2004 Posts: 5
|
Posted: Sat Apr 30, 2005 12:33 pm Post subject: |
|
|
I think I figured it out
ControlGetText, OutputVar,,ahk_class tooltips_class32
seems to work
Thanks for your help. |
|
| Back to top |
|
 |
|