Last active
January 10, 2023 17:39
-
-
Save gwbischof/01f00e462a4fa8c77f685a14c5df9674 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('luau') | |
| _addon.name = 'automacro' | |
| _addon.version = '1.0' | |
| _addon.author = 'Mapogo' | |
| _addon.commands = {'am',} | |
| sleep_time = 30 | |
| windower.register_event('load', function() | |
| windower.add_to_chat(2,"automacro loaded") | |
| while( true ) | |
| do | |
| coroutine.sleep(sleep_time) | |
| windower.send_command('setkey ctrl down;') | |
| windower.send_command('setkey 1 down;') | |
| coroutine.sleep(0.1) | |
| windower.send_command('setkey ctrl up;') | |
| windower.send_command('setkey 1 up;') | |
| end | |
| end) | |
| --[[ | |
| This will run your macro in a loop. | |
| Place this file here: ../addons/automacro/automacro.lua | |
| to start it you have to type: //lua load automacro | |
| to stop: //lua unload automacro | |
| --]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment