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 

Loop delimiter..

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



Joined: 10 Sep 2006
Posts: 146

PostPosted: Mon Mar 31, 2008 11:43 pm    Post subject: Loop delimiter.. Reply with quote

Hi, again me =)

i got a question about the delimiter in loop parse string

Code:
Loop, parse, Colors, `,


ok, delimiter is "`" in here as single char.
i want an 2 chars delimiter, exactly "||"

just with adding twice | dont work :/
ive tried with Delimiter := "||"
but still the same


Any idea ?
Back to top
View user's profile Send private message MSN Messenger
Oberon



Joined: 18 Feb 2008
Posts: 458

PostPosted: Mon Mar 31, 2008 11:48 pm    Post subject: Reply with quote

Loop (parse a string) wrote:
To use a string as a delimiter rather than a character, first use StringReplace to replace all occurrences of the string with a single character that is never used literally in the text...
Back to top
View user's profile Send private message
DJAnonimo



Joined: 10 Sep 2006
Posts: 146

PostPosted: Tue Apr 01, 2008 12:02 am    Post subject: Reply with quote

oh, but i dont want to use a single char, because i dont know which char will never be used.

anyway possible a list of chars that are rare used ?
Back to top
View user's profile Send private message MSN Messenger
ladiko



Joined: 14 Jul 2006
Posts: 190
Location: Berlin

PostPosted: Tue Apr 01, 2008 12:35 am    Post subject: Reply with quote

what about ¸ (very rare used alone) or one of these: ¨ þ ÷ ¤ ¬ ▒ ʡ ₯ ♫ ☺ ۞ ۝

take a look at Start --> Run --> charmap
Back to top
View user's profile Send private message
Oberon



Joined: 18 Feb 2008
Posts: 458

PostPosted: Tue Apr 01, 2008 12:39 am    Post subject: Reply with quote

Be careful unicode is not allowed, AutoHotkey will simply see them as two or more high-ASCII characters.
Back to top
View user's profile Send private message
DJAnonimo



Joined: 10 Sep 2006
Posts: 146

PostPosted: Tue Apr 01, 2008 1:01 am    Post subject: Reply with quote

oh, thanks guys Smile
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Tue Apr 01, 2008 4:55 am    Post subject: Re: Loop delimiter.. Reply with quote

DJAnonimo wrote:
Code:
Loop, parse, Colors, `,

ok, delimiter is "`" in here as single char.
FYI, the delimiter in this case is , (comma). ` (back-tick) is AutoHotkey's "escape character" - it marks the comma as literal rather than a delimiter between args.
Back to top
View user's profile Send private message
DJAnonimo



Joined: 10 Sep 2006
Posts: 146

PostPosted: Tue Apr 01, 2008 8:12 am    Post subject: Reply with quote

Yea. just didnt noticed. thanks anyway Smile
Back to top
View user's profile Send private message MSN 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