Skip to content

Instantly share code, notes, and snippets.

@gwbischof
Last active January 10, 2023 17:39
Show Gist options
  • Select an option

  • Save gwbischof/01f00e462a4fa8c77f685a14c5df9674 to your computer and use it in GitHub Desktop.

Select an option

Save gwbischof/01f00e462a4fa8c77f685a14c5df9674 to your computer and use it in GitHub Desktop.
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