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 

ControlGet not retrieving text

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



Joined: 06 Mar 2007
Posts: 64
Location: Columbus, OH, USA

PostPosted: Fri Jan 09, 2009 4:30 pm    Post subject: ControlGet not retrieving text Reply with quote

I want to get text from a listbox that has several columns and +4000 rows. But when I run my script, I get the correct number of lines but no text.

Code:

ControlGet, Output, List, , SysListView322, Roadkil's Unstoppable Copier
FileAppend, %Output%, skipped_files.txt


Windows Spy says---
Text: List1

Does that mean I can't get the text, or is there something I'm missing?
Back to top
View user's profile Send private message Visit poster's website
Sivvy



Joined: 21 Jul 2008
Posts: 726
Location: Calgary, AB, Canada

PostPosted: Fri Jan 09, 2009 5:12 pm    Post subject: Reply with quote

I tested it with something I use, and it worked fine... Maybe the Control name or Wintitle are incorrect. Make sure to check those again, and try making it display in a MsgBox instead. That will allow you to figure out if the problem comes from reading the data, or writing the data. If the MsgBox is empty, then it's a reading problem... If it's not blank, then your problem is from writing to the text file.
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Fri Jan 09, 2009 5:17 pm    Post subject: Reply with quote

Does this work?
Code:
Gui +LastFound
hwnd := WinExist()
Gui, Add, ListView, w100 r30, TEST|TEST
Gui, Show, w120 h400, Test
Loop 5000
   LV_Add("",A_Index, A_index*2)
ControlGet, list, list, , SysListView321, ahk_id %hwnd%
Gui, 2:Add, Edit,w250 h600, %list%
Gui, 2:Show
Return
2GuiClose:
GuiClose:
ExitApp

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
elchapin



Joined: 06 Mar 2007
Posts: 64
Location: Columbus, OH, USA

PostPosted: Fri Jan 09, 2009 6:08 pm    Post subject: Reply with quote

@Sivvy: I sent output to a MsgBox, and it is full of spaces (blank rows?) just like the text file.

@HotKeyIt: Thanks, I ran your script, but still received "empty" results. I got a long list of numbers, but no other text.

This is a mystery!
_________________
My startup is Telesaur - a telecommuting job site.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Jan 10, 2009 4:29 am    Post subject: Re: ControlGet not retrieving text Reply with quote

elchapin wrote:
Windows Spy says---
Text: List1

Does that mean I can't get the text, or is there something I'm missing?
Yes, if Window Spy cannot see the text, your script cannot see the text. End of thread. End of story. Crying or Very sad
Back to top
Display posts from previous:   
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