AutoHotkey: Jump To The Next File Extension: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Added category AutoHotkey scripts) |
||
(One intermediate revision by one other user not shown) | |||
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 | ||
Line 35: | Line 35: | ||
{{translated|AutoHotkey: Springe zur nächsten Dateierweiterung|AutoHotkey}} | {{translated|AutoHotkey: Springe zur nächsten Dateierweiterung|AutoHotkey}} | ||
[[Category:AutoHotkey scripts|Jump To The Next File Extension]] |
Latest revision as of 18:55, 1 June 2008
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