Giter Club home page Giter Club logo

win-hotkeys's Introduction

Win Hotkeys

A program to register a system-wide hotkey in background which launch another program.

Configuration

You have to create a file name hotkeys.conf in the same folder as the executable.

You can place as many as hotkeys as you want, with the three following parameters for each hotkey:

  • 1st line: modifiers (see list below)
  • 2nd line: the virtual-key code of the hotkey. See Virtual Key Codes.
  • 3rd line: the path of the program to launch.

Examples

Launch a snipping tool when ALT+PRINT SCREEN is pressed:

MOD_ALT+MOD_NOREPEAT
44
C:\your\path\to\snipping-tool.exe

Launch program A when CTRL+A is pressed and program B when CTRL+B is pressed:

MOD_CONTROL+MOD_NOREPEAT
65
C:\your\path\to\program-a.exe

MOD_CONTROL+MOD_NOREPEAT
66
C:\your\path\to\program-b.exe

Modifiers

Modifier Description
MOD_ALT Either ALT key must be held down.
MOD_CONTROL Either CTRL key must be held down.
MOD_NOREPEAT Changes the hotkey behavior so that the keyboard auto-repeat does not yield multiple hotkey notifications. Windows Vista: This flag is not supported.
MOD_SHIFT Either SHIFT key must be held down.
MOD_WIN Either WINDOWS key was held down. These keys are labeled with the Windows logo. Keyboard shortcuts that involve the WINDOWS key are reserved for use by the operating system.

License

MIT License

Copyright (c) 2021 gauthier-th ([email protected])

win-hotkeys's People

Contributors

gauthier-th avatar

Stargazers

Tom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.