Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

for when we use f2 to rename file name. after f2 i want to change case of file names

share|improve this question
    
There isn't a keyboard shortcut built in, I'm fairly sure. You might be able to make this happen, but I really can't imagine how. I played with autohotkey a little and don't see a worthwhile way. Nice idea though, good luck. – outsideblasts Dec 22 '09 at 6:12
    
Do you only want to do this when renaming a file, or also in other contexts? If it's just for file renaming, you could say that in the question title. – MatrixFrog Dec 22 '09 at 6:36
up vote 2 down vote accepted

Well, here's a quick AutoHotkey script I threw together which is tailored to your specific situation (tested and working):

!r::
save := ClipboardAll
Send ^c
clipwait
oldclip := Clipboard
StringLower, newclip, oldclip
If (newclip == oldclip)
{
    StringUpper, newclip, oldclip
}
Clipboard := newclip
Send ^v{Enter}
Clipboard := save
return

After pressing F2 to rename, using Alt + r will change the folder's case. If you want to swap case of each letter separately, well, that's something different entirely. I know most people on here aren't very appreciative of animated GIFs embedded directly on the page, so if you'd like to see it in action, click here.

share|improve this answer
    
thx and can we also add dashes in place of spaces between text – metal gear solid Dec 22 '09 at 7:01
    

There is indeed an AutoHotkey script for this as suggested by outsideblasts in the comments.

Check out toggle/cycle through capitalize-lowercase-uppercase in the AutoHotkey forums. The final version of the script is at the bottom of the page. Select all the code, put it in a .ahk script and run it (it implies you have AutoHotkey installed of course).

I tested it and it works fine in the Explorer and most editors. When the filename is selected, use CTRL+SHIFT+u to toggle the case of the text.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .