Git Product home page Git Product logo

restmote-control-rs's Introduction

RESTMote Control

RESTMote Control is an application that allows you to expose REST services to send keyboard events to a specified application. Inspired by Twitch Plays Pokemon, I wanted to create an application that could achieve something similar while being application agnostic.

Configuration

The server requires a configuration file to be provided during start-up.

Example config file

{
  "pid":31277,
  "keypress_delay":10,
  "keys": [
    {
      "key":"a",
      "allowed_modifiers":["COMMAND", "SHIFT"]
    },
    {
      "key":"b",
      "allowed_modifiers":["CONTROL"]
    }
  ]
}

Config fields

Key Description
pid The program identifier (PID) of the target application where keypress events will be sent.
keypress_delay The number of milliseconds to wait between keypresses.
key The application supports generating keyboard events for most keys. Non-character keys like "tab" or "capslock" can also be used.
allowed_modifiers The set of modifier keys which are allowed to be used on with the key. Requesting a modidifier that is not allowed with result in a 400 response code.

Development

What's going on...

Tasks

  • Send keyboard events to a specified application on OSX with CG Framework
  • Create REST services to invoke keyboard events
  • Configurable with simple JSON formatted file
  • Documentation
  • Interface with Windows SendKeys API (Stretch)
  • Linux compatible (Stretch)

restmote-control-rs's People

Contributors

wilsongiese avatar

Watchers

James Cloos avatar  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.