Better Renamer
Willkommen, Gast ( Anmelden | Registrierung )
![]() |
Better Renamer
Screenshot nicht verfügbar | |||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
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: CODE #IfWinActive ahk_class CabinetWClass ~F2:: Gosub, AnalyzeRename return #IfWinActive ahk_class Progman ~F2:: Gosub, AnalyzeRename return #IfWinActive AnalyzeRename: OldClipboard = %Clipboard% sleep 100 Send, ^c StringGetPos,ExtensionPos, Clipboard,.,R if (ExtensionPos != -1) { Position := StrLen(Clipboard) - ExtensionPos Send, +{Left %Position%} } Clipboard = %OldClipboard% return 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. |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
![]() |
Zufällige Dateien
Kein Screenshot verfügbar Dateiname: [PHP] iCal Generator Klasse In Kategorie: Useful Scripts |
Kein Screenshot verfügbar Dateiname: Teamspeak 2.0.2.8 In Kategorie: Public Files |
Kein Screenshot verfügbar Dateiname: FasterFox In Kategorie: Firefox Plugins |
Kein Screenshot verfügbar Dateiname: Better Renamer In Kategorie: Public Files |
Kein Screenshot verfügbar Dateiname: Web Developer In Kategorie: Firefox Plugins |
Downloadmanager Statistiken
10 neueste Einsendungen | |
2 Aktive Mitglied(er) in den letzten 30 Minuten | |
![]() |
2 Gäste, 0 Mitglieder, 0 anonyme(r) Besucher |
Downloadmanager Statistiken | |
![]() |
Wir haben insgesamt 55 Dateien in 10 Kategorien Es haben insgesamt 1 verschiedene Autoren Dateien auf unserer Seite veröffentlicht Es wurden bis heute 6530 Downloads aufgezeichnet Der neueste Download Scrum Summary von jan (hochgeladen Apr 15 2010, 12:10 PM) |
![]() |
Vereinfachte Darstellung | Aktuelles Datum: 26th February 2021 - 22:38 PM |