Search found 2 matches

by Zapp Brannigan
21 Dec 2018, 03:44
Forum: HOW-TOs and documentation
Topic: Unending lua loop
Replies: 0
Views: 3145

Unending lua loop

Hey everyone, new to posting on the site but used it as a quick help for the last year or so. Thanks for all the help. Currently I am trying to setup a script for the game Forts on my Logitech G510 keyboard. I am wanting to press G9 and then having a loop of "E", a wait, "TAB", and then another wait...
by Zapp Brannigan
21 Dec 2018, 02:27
Forum: HOW-TOs and documentation
Topic: Repeating macro
Replies: 2
Views: 4093

Re: Repeating macro

You can set this up with a script. However the holding a key and then repeating a press would likely be two separate chunks. The first section would look like this in lua: if event == "f2" then state = not state if state then PressKey("w") else ReleaseKey("w") end end I use this exact script for GTA...