Total Commander + AutoHotKey: User Menu

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

    We implement similar for TC on AutoHotKey.

    We create the DirMenu.ahk file, inside which we call the menu with several actions: we place DirMenu.ahk in the folder in which we need the set of actions described in the script. We call the script call in TC from the Run menu ( Command D: \ Run \ AutoHotkey \ AutoHotkey.exe Parameter% PDirMenu.ahk ) by configuring the hotkey in the configuration (F9 = cm_UserMenu3). Now for this folder on F9 you can call up the user menu!

    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












    Also popular now: