 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
elchapin
Joined: 06 Mar 2007 Posts: 64 Location: Columbus, OH, USA
|
Posted: Fri Jan 09, 2009 4:30 pm Post subject: ControlGet not retrieving text |
|
|
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 |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Fri Jan 09, 2009 5:12 pm Post subject: |
|
|
| 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 |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
Posted: Fri Jan 09, 2009 5:17 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
elchapin
Joined: 06 Mar 2007 Posts: 64 Location: Columbus, OH, USA
|
Posted: Fri Jan 09, 2009 6:08 pm Post subject: |
|
|
@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 |
|
 |
Guest
|
Posted: Sat Jan 10, 2009 4:29 am Post subject: Re: ControlGet not retrieving text |
|
|
| 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.  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|