FiveM script not working

Ask gaming related questions (AHK v1.1 and older)
raidanjordan
Posts: 1
Joined: 15 Aug 2022, 05:10

FiveM script not working

Post by raidanjordan » 15 Aug 2022, 05:13

Hello, I have a script for pressing E every 10 seconds but isn't working, I want it to only send the E key when FiveM active. Can you please guys help me with that? That's the code

Code: Select all

#MaxThreadsPerHotkey 2
F12::
	toggle:=!toggle
	While toggle{
		Send, E
		Sleep, 10000;
	}
Return
[Mod edit: [code][/code] tags added.]

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

Re: FiveM script not working

Post by mikeyww » 15 Aug 2022, 06:42

Welcome to this AutoHotkey forum!

When you run the script that you posted, an error message is displayed due to the extraneous semicolon.

If you want a lowercase E instead of uppercase, then change line 5 accordingly.

Test in Notepad first.

Next:

#IfWinActive: https://www.autohotkey.com/docs/commands/_IfWinActive.htm#ExBasic

Post Reply

Return to “Gaming Help (v1)”