Use your Serial inteface with arduino to execute macro keys
Does to need arduino/board with HID
- Arduino prints the button pressed in Serial inteface
- A python script listen for data in Serial port, read and execute the actions you defined
-
Upload the arduino sketch file to your board, you can change the baudrate, buttons and toggle Port manipulation if isn't compatible with the board to use commom
digitalRead()
-
[if you changed baudrate] open jmacro.py and change the variable or use CLI arguments
-
Open jmacro.py and create your own macro actions for the buttons attached to arduino
-
Run jmacro.py with python 3.7+, selected the port and click Start, keep terminal open
Provide a way to use without open the select port and start window
-h or show available arguments
--help
-rr print raw entries from serial
# -rr also print current window with button press, useful to get exact window title
-sa print executed action when a button is pressed
-da enable default actions if any does not match window title
--debug enable extra debug print
--port <port> set port to desired one
--baud <baudrate> set baudrate to desired one
Send keystrokes with
Port Manipulation, used to get port state without digialRead()
MIT, feel free to copy, modify and redistribute but mention the origin repo if you can :)