Spamming script

Ask gaming related questions (AHK v1.1 and older)
1valaki1
Posts: 3
Joined: 03 Sep 2017, 09:32

Spamming script

16 Dec 2017, 11:34

Hey, I'd like to make a script which spams space when I press "space+e". The problem is that I can't use "e" while the script is running. How can I make it work?

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance, force

e & Space::
While GetKeyState("Space", "P")
{
	Send {Space}
	Sleep, 100
}
Return

f4::
	reload
return

^x::ExitApp
Rindis
Posts: 213
Joined: 23 Dec 2013, 13:58
Location: Norway
Contact:

Re: Spamming script

19 Dec 2017, 06:01

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance, force

~e & Space::
While GetKeyState("Space", "P")
{
	Send {Space}
	Sleep, 100
}
Return

f4::
	reload
return

esc::ExitApp
geekgarage
Posts: 22
Joined: 17 Dec 2017, 11:03
Contact:

Re: Spamming script

19 Dec 2017, 10:40

you should really read through this thread here, I've just helped some one with more or less the same issue :)
final script on page 2 of that thread but there are a lot of good info throughout the thread that you can make use of ;)
https://autohotkey.com/boards/viewtopic ... 3&start=20

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: phalanxdarken, yuu453 and 114 guests