📜 ⬆️ ⬇️

Total Commander + AutoHotKey: User Menu

Remember Norton Commander and its ability to create a user menu?

Implement this for TC on AutoHotKey.

Create a file DirMenu.ahk, inside which we call a menu with several actions:
')
Menu, MyMenu, Add, , mp1
Menu, MyMenu, Add, , mp2
Menu, MyMenu, Add ; Add a separator line.
Menu, MyMenu, Add, , mp3

Menu, MyMenu, Show
return

mp1:
FileName = '%A_Now%.txt
FileAppend, %A_YYYY%.%A_MM%.%A_DD% %A_Hour%:%A_Min%`n, %FileName%
Run, notepad %FileName%
WinWait, -
Send, ^{END}
WinWaitClose
return

mp2:
MsgBox
return

mp3:
return


DirMenu.ahk is placed in a folder in which we need a set of actions described in the script.

Call the script in the TC set up from the menu "Run"
(
Team D: \ Run \ AutoHotkey \ AutoHotkey.exe
Parameter% PDirMenu.ahk
)
setting the hotkey in the configuration (F9 = cm_UserMenu3).

Now for this folder on F9, you can call the user menu!

Source: https://habr.com/ru/post/52400/


All Articles