Last active
January 23, 2023 01:00
-
-
Save gwbischof/e12a786e44042b4c700f49b1f488cd8a to your computer and use it in GitHub Desktop.
This file contains 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 = '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