# macropython
class RecordMacro
args:
_filename : ``str`` - the file to output to.
_startup_delay : ``float`` - the delay before recording inputs
_enable_output : ``bool`` - should print debug info
methods:
logic() - the function for saving macro data
~ note: this method should not be used manually, it is used my the class itself
start(startup_delay : ``float``) - use this method is called to start recording input
args:
startup_delay : ``float`` - this args is optional, dont pass anything to skip
~ note: after the recording is started, use the ESC or Escape key to stop recording
class PlayMacro
args:
_filename : ``str`` - the file to load the macro from
_startup_delay : ``float`` - the delay before recording inputs
_enable_output : ``bool`` - should print debug info
methods:
start(startup_delay : ``float``) - use this function to play the macro
args:
startup_delay : ``float`` - this args is optional, dont pass anything to skip
~ note: after the recording is started, close the python program to quit playing
class HotKeyMacro
args:
_data_ : ``list`` - this is a ``list`` of ``dict``
info:
the ``dict``s inside the ``list`` are structured as shown below
{
'trigger' : ``str`` - the key that starts the macro
'file' : ``str`` - the location of the macro
'repeat' : ``bool`` - repeat the macro forever until the trigger is released
~ note: if set to False, the macro will only once when the trigger is pressed
'delay' : ``float`` - time to wait before repeating the macro again
~ note: will only wait if repeat is set to True
}
_startup_delay : ``float`` - the delay before recording inputs
_enable_output : ``bool`` - should print debug info
methods:
start(startup_delay : ``float``) - use this function to start the hot key macros
args:
startup_delay : ``float`` - this args is optional, dont pass anything to skip
logic() - the function for triggering macros
~ note: this method should not be used manually, it is used my the class itself
_stop_all_threads() - this is to stop all macros
~ note: this method should not be used manually, it is used my the class itself
_play_thread(index : ``int``) - this function is used for each macro
~ note: this method should not be used manually, it is used my the class itself
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
macropython-0.0.1.0.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file macropython-0.0.1.0.tar.gz.
File metadata
- Download URL: macropython-0.0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5997b923037c915a673fa10336a95c0b8cff3502e801ae5436c8ce19544e47d
|
|
| MD5 |
3535eea38380e7203e24e17fb87dce55
|
|
| BLAKE2b-256 |
c0cf6c3c29efee9706ae2bc55bc3563bb4d5c736e7709c2cb6622963895529d7
|
File details
Details for the file macropython-0.0.1.0-py3-none-any.whl.
File metadata
- Download URL: macropython-0.0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54a2d2995d3dd426caf3c6b1d3e2852dc6ad96c4e8f60fafa49b4f18b2f0b0d4
|
|
| MD5 |
d3a1205196f8b83c39a5227ff3f6c52a
|
|
| BLAKE2b-256 |
9a758bcd0b3a6df2ae52270a067cbccdd6e5e730fbe6d682a9db1518a8b17946
|