What's the easiest way to make a hotkey for windows?

后端 未结 7 832
无人共我
无人共我 2021-02-07 22:57

For example , you push Ctrl+V and insert the buffer content into the window. How can I create my own hotkeys like that? Sorry for noobish question.

7条回答
  •  清酒与你
    2021-02-07 23:44

    I've been using AutoHotkey at work for the best part of a year now.

    I just save the following file in my Windows Startup folder.

    keyboard_shortcuts.ahk

    #SingleInstance force
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
    Menu, Tray, Icon, Shell32.dll, 44
    
    ; Starting Directory for cmd.exe
    EnvGet, HOMEDRIVE, HOMEDRIVE
    EnvGet, HOMEPATH, HOMEPATH
    
    #i:: Run, notepad
    #f:: Run, firefox
    #c:: Run, cmd /k, %HOMEDRIVE%%HOMEPATH%
    #m:: Run, mailto:
    #b:: Run, mailto:boss@mycompany.com
    

    "#b" means Winkey+B

    "Run, mailto:boss@mycompany.com" open a black email to my boss.

    #b:: Run, mailto:boss@mycompany.com
    

提交回复
热议问题