Skip to content

Instantly share code, notes, and snippets.

@gwbischof
Last active January 23, 2023 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwbischof/e12a786e44042b4c700f49b1f488cd8a to your computer and use it in GitHub Desktop.
Save gwbischof/e12a786e44042b4c700f49b1f488cd8a to your computer and use it in GitHub Desktop.
require('luau')
_addon.name = 'enterkey'
_addon.version = '1.0'
_addon.author = 'Mapogo'
_addon.commands = {'am',}
sleep_time = 1
windower.register_event('load', function()
windower.add_to_chat(2,"enterkey loaded")
while( true )
do
coroutine.sleep(sleep_time)
windower.send_command('setkey enter down;')
coroutine.sleep(0.1)
windower.send_command('setkey enter up;')
end
end)
--[[
Place this file here: ../addons/enterkey/enterkey.lua
to start it you have to type: //lua load enterkey
to stop: //lua unload enterkey
add a macro to stop: /console input //lua unload enterkey
--]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment