AutoHotkey: Mark Important Files Permanently

From TotalcmdWiki
Revision as of 13:57, 28 October 2014 by Jekyll (talk | contribs) (messed up the formating)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:
Can_I_display_files_with_special_attributes,_directories_etc._in_a_different_color?

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

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

Back to AutoHotkey