AutoHotkey: Jump To The Next File Extension: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
ArchCarrier (talk | contribs) (Added line about bug in RenameSelOnlyName) |
||
Line 1: | Line 1: | ||
Pressing '''''Ctrl+Alt+Down''''' resp. '''''Ctrl+Alt+Up''''' moves the cursur to the next entry with a different file extension. | Pressing '''''Ctrl+Alt+Down''''' resp. '''''Ctrl+Alt+Up''''' moves the cursur to the next entry with a different file extension. | ||
(Limitation: doesn't work when RenameSelOnlyName=1 in wincmd.ini) | |||
#IfWinActive, ahk_class TTOTAL_CMD | #IfWinActive, ahk_class TTOTAL_CMD |
Revision as of 19:50, 11 December 2007
Pressing Ctrl+Alt+Down resp. Ctrl+Alt+Up moves the cursur to the next entry with a different file extension. (Limitation: doesn't work when RenameSelOnlyName=1 in wincmd.ini)
#IfWinActive, ahk_class TTOTAL_CMD ^!Down:: Direction := "{Down}" Gosub, ExtensionCheck Return ^!Up:: Direction := "{Up}" Gosub, ExtensionCheck Return ExtensionCheck: Critical Loop { SendMessage, 1075, 1002 ControlGetText, NewFileName, TInEdit.UnicodeClass1 SendInput, {ESC}{ESC} NewFileNameDotPosition := InStr(NewFileName, ".", 0, 0) If (NewFileNameDotPosition) StringTrimLeft, NewExtension, NewFileName, NewFileNameDotPosition Else NewExtension := "" If (OldFileName = NewFileName OR OldExtension != NewExtension) AND (A_Index > 1) Break SendInput, %Direction% OldExtension := NewExtension OldFileName := NewFileName } Critical, Off Return
Back to AutoHotkey