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 

Lower/ Upper case

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



Joined: 22 Feb 2005
Posts: 60
Location: Sweden

PostPosted: Fri Apr 29, 2005 11:01 pm    Post subject: Lower/ Upper case Reply with quote

I use StringLower, OutputVar, InputVar, T to make my files look a little bit better.... Cool

There's only one thing I'm not really satisfied with:
Files like "Dance eJay" becomes "Dance Ejay" (of cource).
But is there a way to preserve uppercase letters in the middle of a word (like eJay), so that only the first letter in each and every word is converted and "eJay" still is "eJay"?

Maybe I should use a loop and detect spaces and so on... Confused
_________________
"Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955)
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sun May 01, 2005 11:07 am    Post subject: Re: Lower/ Upper case Reply with quote

[¤GoO¤] wrote:
But is there a way to preserve uppercase letters in the middle of a word (like eJay), so that only the first letter in each and every word is converted and "eJay" still is "eJay"?
A character-by-character parsing loop is probably the best way:
Code:
Loop, Parse, InputVar
{
    ... fairly complex routine in here
}
I was tempted to try to write this but it would probably take me 15 minutes or more to get done correctly. Maybe a script wizard will come along and write one.
Back to top
View user's profile Send private message Send e-mail
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