AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can Autohotkey capture tooltip text?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
stanman



Joined: 29 Apr 2004
Posts: 5

PostPosted: Fri Apr 29, 2005 11:09 pm    Post subject: Can Autohotkey capture tooltip text? Reply with quote

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
View user's profile Send private message
Serenity



Joined: 07 Nov 2004
Posts: 1276

PostPosted: Fri Apr 29, 2005 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
stanman



Joined: 29 Apr 2004
Posts: 5

PostPosted: Sat Apr 30, 2005 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
stanman



Joined: 29 Apr 2004
Posts: 5

PostPosted: Sat Apr 30, 2005 12:33 pm    Post subject: Reply with quote

I think I figured it out

ControlGetText, OutputVar,,ahk_class tooltips_class32

seems to work

Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group