Giter Club home page Giter Club logo

mouse-replay's Introduction

README

This cosmic dance of bursing decadence
And withheld permissions
Twists all our arms collectively
But
If sweetness can win (and it can!)
Then I'll still be here tomorrow
To high five you yesterday, my friend.
Peace.
- The Royal Tart Toter

The testing framework, in its current position, is a framework for timed recording of a list of mouse movements, mouse presses/releases, and key presses/releases, the ability to edit the list for additional versatility, and compiling the list to a bytecode format (to play a macro or possibily for redistribution to recreate the actions.) This testing framework, more recently, has turned into a very peculiar messaging system between my little brother and I, as I can type a message to him; draw a picture; or do many other things, send him the compressed file; and he gets to see the message re-created right before his eyes, with the exact timing as if I were drawing it. Furthermore, the message can be repeated back for him to see again. The quote above was the first message sent between my little brother and I, hence the reference to Adventure Time (his, and possibly my, favorite show.)
Future versions will support 'painting' on the screen during recording, additional versatility in what keys can be pressed while recording, and cross-compatibility beween different moniters during playback

Files are typically saved as "bro" files with the file extention ".bro"
There are a few included bro files for painting smileys in mspaint, and typing the famous writing the famous royal tart toter's speech.
Note that these files were initially recorded using my own computer, and so the macros probably won't work unless if your computer is set up like mine! (like windows + taskbar on top, 1600x900 resolution.)

You record macros in /src/drivers/MainRecorder
Valid input args for MainRecorder:
-m : override TO record mouse events
_m : override TO NOT record mouse events

These args, -m and _m are used in combination with m (for mouse movements) p (for mouse presses), and r (for mouse releases).


-k : override TO record key events
_k : override TO NOT record key events

These args, -k and _k are used in combination with p (for key presses), and r (for key releases).


default (i.e. a command that is not recognized) is the output file.
The default setting are
out.bro -m m -m p -m r -k m -k p
Future args will support non-stop mode (where the can only exit if he/she presses a specific key, rather than ALT+TAB and losing focus.)

Type "exit" into the command line to exit and save your recording.

You play back macros via /src/drivers/MainRepeat
The only input arg for MainRepeat is the input file that is to be played back. Sit back and watch the show (of your mouse moving or something)!

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.