Pipe all your keypresses into Mond for on-demand macros. Like a REPL with no graphical or even textual UI of its own.
Works in any application - no textbox required!
Mond supports compiling script fragments from a stream of characters (IEnumerable<char>
). This means:
IEnumerable<char>
Note that this means backspacing is impossible because the characters you type are immediately fed into the compiler. There's no taking it back so don't make any mistakes!
The trigger text !m
was added to prevent unintentional code execution while you are working. This is not strictly necessary but good to have for obvious reasons.
Additionally, pressing Escape will cancel the compilation of the current statement in case you have made a mistake. You will need to re-enter the trigger text after pressing Escape.
quit()
will exit MondKeyboard in case you ran it without opening a window.
keys(str)
will call SendKeys
with the given string so that you can simulate input into the currently active window.
Mond's standard output functions (print
, printLn
) are remapped to SendKeys
to type out text and the standard input function (readLn
) is remapped to read your keypresses until you press enter.
The init.mnd
file will be ran at startup to set up any functions and/or initial state you may want.