Willkommen, Gast ( Anmelden | Registrierung )

  Search Files 

> Better Renamer

Screenshot nicht verfügbar
Dateiname Better Renamer von jan
Eingesendet May 15 2008, 08:45 AM
Zuletzt bearbeitet May 15 2008, 08:45 AM
Dateityp Dateityp (zip - application/zip)
Screenshot Nicht verfügbar
Dateigröße 193.94KB
Ansichten 35029
Downloads 0
 (4 von 5 von insgesamt 1 Stimmen)
Bewertung abgeben Du hast keine Berechtigung diese Datei zu bewerten.
Annoyed by how Windows XP's renaming function (F2) works? Namely the fact that it selects filename and file-extension when extensions are enabled? So here is a little program to fix this (mimic Vista functionality).

It's very possible that there are better ways to add this functionality, but it's wildly easy to do with AutoHotkey, so that's what I've done. Like you said, every time you hit F2 to rename a file, you also need to hit Shift+Left Arrow four times. Using AutoHotkey, I've just automated that process.

If you're just interested in getting the functionality, either download theber file or download the Better Renamer.zip and run the included executable, or get the AutoHotkey source. If you want a better idea of how it works, check out the code below:

#IfWinActive ahk_class CabinetWClass
Gosub, AnalyzeRename
#IfWinActive ahk_class Progman
Gosub, AnalyzeRename


OldClipboard = %Clipboard%

sleep 100

Send, ^c

StringGetPos,ExtensionPos, Clipboard,.,R

if (ExtensionPos != -1)


    Position := StrLen(Clipboard) - ExtensionPos

    Send, +{Left %Position%}


Clipboard = %OldClipboard%


Now let's dissect it. The IfWinActive command tells AutoHotkey only to use these F2 definitions if your active Window or application is Windows Explorer or your Desktop. If either of those conditions are met, F2 is sent to the window, and then AutoHotkey automates the Shift+Left keystrokes necessary to un-highlight the extension, but it does so quickly enough that it's really as though that's just the way renaming works.

This was a very quickly thrown together script, and there are limitations that could be improved. I did add checking for the first period from the right so that F2 can handle extensions of differing lengths and so that it doesn't try adjusting the selection for items that don't use extensions-folders, for example.

It's not absolutely perfect, but it should do the trick most of the time if you've been aching from the renaming functionality that's available in both Vista and OS X.

Interested in more of what AutoHotkey can do?
Check out this introduction or any of our many AutoHotkey posts.
Datei herunterladen

  Search Files 


> Zufällige Dateien

Kein Screenshot verfügbar

Dateiname: All in one Gestures
In Kategorie: Firefox Plugins
Kein Screenshot verfügbar

Dateiname: Ventrilo 3.0
In Kategorie: Public Files
Kein Screenshot verfügbar

Dateiname: Top Ten useful Javascripts
In Kategorie: Useful PDF's
Kein Screenshot verfügbar

Dateiname: FasterFox
In Kategorie: Firefox Plugins
Kein Screenshot verfügbar

Dateiname: Ventrilo 2.3.0
In Kategorie: Public Files


> Downloadmanager Statistiken

10 neueste Einsendungen 
2 Aktive Mitglied(er) in den letzten 30 Minuten
Active Users 2 Gäste, 0 Mitglieder, 0 anonyme(r) Besucher
Downloadmanager Statistiken
Board Stats Wir haben insgesamt 55 Dateien in 10 Kategorien
Es haben insgesamt 1 verschiedene Autoren Dateien auf unserer Seite veröffentlicht
Es wurden bis heute 6705 Downloads aufgezeichnet
Der neueste Download Scrum Summary von jan (hochgeladen Apr 15 2010, 12:10 PM)
- Vereinfachte Darstellung Aktuelles Datum: 30th July 2021 - 15:26 PM