Linux and key repetition (Solved)

Hi there!

Do we have any other Linux user here that plays the game? If so, do you guys use any short of key repetition program/macro (like Autokey)?

Was trying to create something (press the key 8 every 2 seconds), but can’t figure out how to do it properly on Autokey (and don’t know about any other program).

Can someone help me?

ah, so you’ve been able to make AutoHotkey work on Linux, do I understand correctly?
if so then you could take either GDAutocaster or its source code if needed and run it :thinking:

Autokey, actually. If I understand correctly, it used Python.

Tried to use the lines in GDAutocaster, but it didn’t work. And couldn’t make it work to repeat the command every few seconds, just once.

1 Like

Ok, ChatGPT is either trolling me or… I have no idea. Sorry, though I had it figured out.

Edit: my new friend is AI Chat. Now it works:

import time

# This script will press '8' every 2 seconds.
# Note: AutoKey will handle sending the keys.

# Main loop
try:
    while True:
        # Send the '8' keystroke
        keyboard.send_keys("8")
        time.sleep(2)  # Wait for 2 seconds
except KeyboardInterrupt:
    print("Script stopped by user.")
1 Like

now maybe add a way to turn it off
or maybe only press while RMB is pressed down (depending on what skill 8 is)
or if it’s sth like Blood of Dreeg then you could do multiple presses so that it still works if you go to loadscreen / if you happen to be using a movement skill (I don’t think Pneumatic Burst works then)
or reset the loop if you activate 8 manually

I used Sleep in AHK at first but then I had to drop because it was blocking the program too much because of how AHK is programmed and moved to Timers instead that can lauch a function with a given frequency

I tried asking for s script with a shortcut to turn it on and off, but it was giving error after error. The above was the only one that worked for me.

I put my “healing” on the number 8 (Blood and Pneumatic) and it works. Yeah, it keeps pressing even out of game (need to close Autokey for it to stop), but… It’s something, I guess.

And I have no idea how to write a script (that’s why I used a chat bot), so dunno how to improve it.

I noticed Autokey has a Window Filter, but dunno how to make it use the game (since it uses an .exe and I’m on Linux).

=(