IPB

Willkommen, Gast ( Anmelden | Registrierung )

  Search Files 

> Better Renamer

Screenshot nicht verfügbar
Dateiinformationen
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
Statistiken
Dateigröße 193.94KB
Ansichten 30262
Downloads 0
Bewertung
 (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:

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.
Operationen
Datei herunterladen

  Search Files 

Collapse

> Zufällige Dateien

Kein Screenshot verfügbar

Dateiname: Windows XP Adminpack
In Kategorie: Public Files
Kein Screenshot verfügbar

Dateiname: IE Tab
In Kategorie: Firefox Plugins
Kein Screenshot verfügbar

Dateiname: Ventrilo 3.0
In Kategorie: Public Files
Screenshot

Dateiname: Honorar-Rechner
In Kategorie: Public Files
 

Collapse

> Downloadmanager Statistiken

10 neueste Einsendungen 
0 Aktive Mitglied(er) in den letzten 30 Minuten
Active Users 0 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 5788 Downloads aufgezeichnet
Der neueste Download Scrum Summary von jan (hochgeladen Apr 15 2010, 12:10 PM)
- Vereinfachte Darstellung Aktuelles Datum: 10th December 2019 - 04:45 AM