Skip to main content

Make macros easily with macropython

Project description

# 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 RecordMacro

    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

Project details


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.0.7.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

macropython-0.0.0.7-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file macropython-0.0.0.7.tar.gz.

File metadata

  • Download URL: macropython-0.0.0.7.tar.gz
  • Upload date:
  • Size: 6.7 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

Hashes for macropython-0.0.0.7.tar.gz
Algorithm Hash digest
SHA256 8c71ec67eec45c45c73a739311a4f7c32e3603eefb096b92a0343538050d853c
MD5 64c4188a27f2eab74d6100baac932ace
BLAKE2b-256 24864c42976ad1caa6a64ebb53622eb4aad51ba5cc61559eee0b99ddf0f93ea1

See more details on using hashes here.

File details

Details for the file macropython-0.0.0.7-py3-none-any.whl.

File metadata

  • Download URL: macropython-0.0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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

Hashes for macropython-0.0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6af3f9384a29ff6f0097d7e0a08b04bd043cf9c90ce1e7e60b51488349132676
MD5 35be5dbda77bd50948479f7ecb66e9f2
BLAKE2b-256 a9a45b647e6991c5dcc0ff4354ffa66bc1bf2e5520c1a143046d8d749534109c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page