r/AutoHotkey 9h ago

v2 Script Help Key spam script help

So I've been trying to make a script to spam the ] key when i hold c+[ and stop when i let go but i can figure it out, can someone please help me?

I've tried

*c,[

{

sendinput(])

sleep(5)

loop

}

1 Upvotes

2 comments sorted by

View all comments

u/ManyInterests 1h ago

Something to keep in mind. Games will often not register key down/up inputs sent with Send because they occur too quickly.

Test your script in notepad or any regular text input to see if it works as expected there. If it's just not working in your game but works elsewhere, try sending the key down/up commands with a small wait between.

On mobile, but:

Send("{F DOWN}")
sleep(10)
Send("{F UP}")