Giter VIP home page Giter VIP logo

myhotkey's Introduction

myhotkey

Windows Shell allows a hotkey to be associated with an application or action.

Unfortunately there is often a delay of 3 seconds between pressing the hotkey combination and the associated action. The reason is explained here.

This application bypasses the Windows Shell and executes applications and other shell actions on pre-configured hotkey combinations.

The end result is immediate reaction on pressed hot keys.

Configuration

The application has no GUI; it is configured via a config file myhotkey.conf which is loaded from the application's startup directory.

The config file looks like this:

# myhotkey.conf - configuration file for myhotkey
#
# Format:
# Modifiers [TAB] Hotkey [TAB] Executable [TAB] Work Dir [TAB] Params
# Where Modifiers = letters C,A,S,W corresponding to Ctrl, Alt, Shift, Win.
# A special modifier "+" can be used to allow multiple application instances.
#
# Notes:
# * no spaces to separate columns, use the TAB character,
# * use '-' to skip a column, '#' to skip a line
# * Hotkey can be defined as a normal character (0-9A-Z) or as a virtual key code -
#   prefix it with a tilde followed by the decimal key code, e.g. ~112 means VK_F1.
#   See https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
#
CA	C	calc
CA	Z	cmd	%USERPROFILE%
CA	D	bash	%USERPROFILE%
CA	O	-	-	rundll32 shell32.dll,Control_RunDLL sysdm.cpl
CS	~112    -	msedge

Building

The application can be build with Visual Studio 2015 or later or with Mingw32 using the provided build script.

Installation

  • Build or download the executable
  • Unzip the application somewhere
  • Add a shortcut to myhotkey.exe in the Startup folder (Start -> Run, type shell:startup)
  • Execute the shortcut

Known issues

The main window of UWP apps like the calculator cannot be detected, which results in a new instance being started for every hotkey press.

myhotkey's People

Contributors

rustyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

killwort

myhotkey's Issues

Enhancement - Send Key String to Keyboard

Hi
Really like your program MyHotkey and works well.

An enhancement would be to map a set of keys to send a set of keys as if typed on the keyboard.
There are programs that Send Keys to the keyboard and have successfully implemented, but it does take some time to load the program and send the keys.
Would be great if you could configure the sending of a Key String in the conf file as a new option and send directly from MyHotKey.exe

Thanks

TC

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.