https://github.com/legoatoom/simplemacromaker
Simple pynput hotkey ➔ commands, made for myself. You can look at the code if you like.
https://github.com/legoatoom/simplemacromaker
for-self pynput python
Last synced: about 2 months ago
JSON representation
Simple pynput hotkey ➔ commands, made for myself. You can look at the code if you like.
- Host: GitHub
- URL: https://github.com/legoatoom/simplemacromaker
- Owner: legoatoom
- License: mit
- Created: 2022-02-16T18:22:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T19:37:49.000Z (over 4 years ago)
- Last Synced: 2025-04-03T01:41:27.358Z (about 1 year ago)
- Topics: for-self, pynput, python
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleMacroMaker
Simple pynput hotkey ➔ commands, made for myself. You can look at the code if you like.
## Really want to use it?
No promises about the accuracy and reliability, if something goes wrong not my fault.
I used pyinstaller to install it with `pyinstaller --onefile main.py -n=macromachine`
make sure you have the modules/packages/ect.. installed (see `main.py` for what imports I used).
Then in you can run the macromachine file that was created via commandline.
`macromachine` starts
`macromachine stop` stops it.
It program uses a `config.json` file in `appdirs.user_config_dir('macromachine')`. Don't know where it is for every system.
And this is how the config.json looks.
```json
{
"[pynput hotkey here]" : {
"type" : "[toggle|button]",
"on_commands" : ["[command1]", "[command2]"],
"off_commands" : ["[command1]", "[command2]"]
},
"+7" : {
"type" : "toggle",
"on_commands" : ["echo hello", "echo world"],
"off_commands" : ["echo foo","echo bar"]
},
"+7" : {
"type" : "button",
"commands" : ["echo hello", "echo world"]
}
}
```