Skip to content

(alpha) ⌨ Command-line interface

Pre-release
Pre-release
Compare
Choose a tag to compare
@luttje luttje released this 29 Dec 21:29
· 45 commits to main since this release

❗ This is a pre-release that I haven't tested very well (PR #29). Please let me know if I broke something. ❗

This version introduces a new way to interact with Key2Joy using the command-line. Thanks for the idea @Renato-Rodrigues (#28)!

New features

  • Running Key2Joy.Cmd.exe enable in a command-prompt will:
    • Start Key2Joy if it's not already running. (Note: you need to have started Key2Joy.Gui.exe at least once already)
    • Enable the last used profile
    • Use --profile default-profile to specify which profile file to enable (you don't have to include the .k2j.json extension)
  • Running Key2Joy.Cmd.exe disable will disable the active profile

Changes

  • Key2Joy.exe has been renamed to Key2Joy.Gui.exe
  • Mapping presets are now called profiles (those names were used interchangeably).
  • Profiles are now stored in the Documents/Key2Joy/Profiles folder. The old folder (Documents/Key2Joy/Presets) will be renamed automatically.

Full Changelog: 0.5.3...0.6.0-alpha1

Installation:

  1. Extract all files from the accompanying zip (Key2Joy-0.6.0-alpha1.zip) to a single location on your computer.
  2. Double-click the Key2Joy.Gui.exe to start the app
  3. Configure mappings: set a trigger to start an action.
  4. Tick the Enable-checkbox to start simulating
  5. Optionally run Key2Joy.Cmd.exe enable or Key2Joy.Cmd.exe disable to control the app without the GUI.

(In the default profile there is a mapping that lets you stops simulating with the Escape-key. Don't forget to include such a mapping for your custom profiles.)