AutoHotkey Community

It is currently May 26th, 2012, 5:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: April 10th, 2008, 5:58 am 
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 ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2008, 12:26 pm 
Offline

Joined: September 10th, 2006, 1:41 pm
Posts: 157
really strange

did you tried with DetectHiddenText, On ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2008, 2:06 pm 
DJAnonimo wrote:

Quote:
really strange
did you tried with DetectHiddenText, On ?


Yes, I tried that.

It didn't help.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2008, 12:28 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Can Window Spy see the text you're trying to retrieve?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, mrhobbeys, patgenn123, poserpro, tank and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group