AutoHotkey Community

It is currently May 26th, 2012, 1:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: January 9th, 2009, 5:30 pm 
Offline

Joined: March 6th, 2007, 4:35 pm
Posts: 64
Location: Columbus, OH, USA
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 6:12 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 6:17 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 7:08 pm 
Offline

Joined: March 6th, 2007, 4:35 pm
Posts: 64
Location: Columbus, OH, USA
@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.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 10th, 2009, 5:29 am 
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. :cry:


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Exabot [Bot], patgenn123, Pietro, poserpro and 13 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