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 

How to get text from a control ?

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





PostPosted: Thu Apr 10, 2008 5:58 am    Post subject: How to get text from a control ? Reply with quote

How to get text from a control ?

The window has edit control: ClassNN=Edit3, Text="File.txt"

For this edit control I get text with:

Code:

   ControlGetText, OutputVar, Edit3, WindowName
   MSGBOX OutputVar = %OutputVar%


This works OK (displays: "OutputVar = File.txt").


The window also has static/text control: ClassNN=Static10, Text="File size: 10 KB"

For this control I tried to get text with:

Code:

   ControlGetText, OutputVar, Static10, WindowName
   MSGBOX OutputVar = %OutputVar%


But this doesn't work OK (displays: "OutputVar = Static").


The window also has static/text control: ClassNN=Static12, Text="File ext: txt"

For this control I tried to get text with:

Code:

ControlGetText, OutputVar, Static12, WindowName
MSGBOX OutputVar = %OutputVar%


But this doesn't work OK (displays: "OutputVar = ").


How to get text from a static/text control ?
Back to top
DJAnonimo



Joined: 10 Sep 2006
Posts: 146

PostPosted: Thu Apr 10, 2008 12:26 pm    Post subject: Reply with quote

really strange

did you tried with DetectHiddenText, On ?
Back to top
View user's profile Send private message MSN Messenger
CMark
Guest





PostPosted: Thu Apr 10, 2008 2:06 pm    Post subject: Reply with quote

DJAnonimo wrote:

Quote:

really strange
did you tried with DetectHiddenText, On ?


Yes, I tried that.

It didn't help.
Back to top
jaco0646



Joined: 07 Oct 2006
Posts: 559
Location: MN, USA

PostPosted: Fri Apr 11, 2008 12:28 am    Post subject: Reply with quote

Can Window Spy see the text you're trying to retrieve?
_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
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