AutoHotkey: Mark Important Files Permanently

From TotalcmdWiki
Jump to: navigation, search

Pressing Ctrl+Shift+Z marks/unmarks a file/folder by adding a string – defined in the variable Marker – to its comment (descript.ion file).

In order to colour these marked files and folders, have a look here:

Switch to the Plugins tab and adjust the fields to look like that:
tc -> comment -> contains -> ***

#IfWinActive, ahk_class TTOTAL_CMD
PostMessage, 1075, 2700
WinWaitActive, ahk_class TCmtEditForm, , 1
If Errorlevel
Marker := "*** "
ControlGetText, Comment, Edit1
StringLeft, Check, Comment, 4
If Check <> %Marker%
  Comment := Marker Comment
  StringTrimLeft, Comment, Comment, 4
ControlSetText, Edit1, %Comment%
SendInput, {F2}

Back to AutoHotkey