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 

Extra chars in list box

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



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Mar 09, 2005 9:56 pm    Post subject: Extra chars in list box Reply with quote

Code:
OpenPlayList:
FileSelectFile, OpenPlayListFile, 3
If OpenPlayListFile =
{
   return
}
FileRead, PlayListFileContents, %OpenPlayListFile%
Loop, parse, PlayListFileContents, `n
{
   GuiControl,, %ListBoxName%, %A_LoopField%
}
Return


This code appends what looks like a small rectangle at the end of each entry to the list box, by adding a msgbox in the loop asking for %A_loopfield% I found that the rectangle is not part of the file contents, is this a bug?
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Wed Mar 09, 2005 10:44 pm    Post subject: Reply with quote

Use `r`n instead of the usual `n.
_________________

Back to top
View user's profile Send private message Visit poster's website
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Mar 09, 2005 11:30 pm    Post subject: Reply with quote

great idea! works nice, how come I didnt realize that? A: cus I am a loser!
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
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