Need help with making a script.

Ask gaming related questions
Oni_335
Posts: 2
Joined: 20 Mar 2023, 17:49

Need help with making a script.

Post by Oni_335 » 20 Mar 2023, 17:59

I basically just need a script that after pressing a toggle key it holds both Shift and W at the same time while also tapping G every 30 seconds. I hope this isn't too much of a hassle.

User avatar
mikeyww
Posts: 26596
Joined: 09 Sep 2014, 18:38

Re: Need help with making a script.

Post by mikeyww » 20 Mar 2023, 21:07

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
g := () => Send('g')
F3 Up:: SetTimer(g, 30000), Send('{Shift down}{w down}'), g(), SoundBeep(1500)
+F3 Up::SetTimer(g,     0), Send('{w up}{Shift up}')         , SoundBeep(1000)

Oni_335
Posts: 2
Joined: 20 Mar 2023, 17:49

Re: Need help with making a script.

Post by Oni_335 » 25 Mar 2023, 20:12

This seems to work for holding W but it still doesn't tap the g key for some reason, would it be possible just to make the script spam g every half second?.

User avatar
mikeyww
Posts: 26596
Joined: 09 Sep 2014, 18:38

Re: Need help with making a script.

Post by mikeyww » 26 Mar 2023, 04:55

Could you test the script in Notepad, to see if it works there? That tells you whether the script itself works.

Post Reply

Return to “Gaming”