Need space spamming macro Topic is solved

Ask gaming related questions
Lan_0103
Posts: 3
Joined: 04 Mar 2023, 06:11

Need space spamming macro

Post by Lan_0103 » 04 Mar 2023, 06:15

i need hold space (pressing space, macro or what) space (stop fast pressing space or macro) sorry for my bad english. :D


[Mod edit: Subject renamed to be more descriptive. Please use more descriptive subjects when creating new topics.]

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

Re: help me i am noob?

Post by mikeyww » 04 Mar 2023, 09:29

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
#MaxThreadsPerHotkey 2
$Space:: {
 Static on := False
 on := !on
 While on
  SendEvent ' '
}

Lan_0103
Posts: 3
Joined: 04 Mar 2023, 06:11

Re: help me i am noob?

Post by Lan_0103 » 04 Mar 2023, 09:59

mikeyww wrote:
04 Mar 2023, 09:29
Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
#MaxThreadsPerHotkey 2
$Space:: {
 Static on := False
 on := !on
 While on
  SendEvent ' '
}
thanks !

Lan_0103
Posts: 3
Joined: 04 Mar 2023, 06:11

Re: help me i am noob?

Post by Lan_0103 » 04 Mar 2023, 10:09

mikeyww wrote:
04 Mar 2023, 09:29
Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
#MaxThreadsPerHotkey 2
$Space:: {
 Static on := False
 on := !on
 While on
  SendEvent ' '
}

script work, but i need HOLD SPACE macro stop hold stop script. sciprt is not hold, script is off/on (toggle)

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

Re: Need space spamming macro  Topic is solved

Post by mikeyww » 04 Mar 2023, 10:39

Google Translate may be helpful in conveying your intent.

Code: Select all

#Requires AutoHotkey v2.0
$Space:: {
 While GetKeyState("Space", "P")
  SendEvent ' '
}

Post Reply

Return to “Gaming”