i need hold space (pressing space, macro or what) space (stop fast pressing space or macro) sorry for my bad english.
[Mod edit: Subject renamed to be more descriptive. Please use more descriptive subjects when creating new topics.]
Need space spamming macro Topic is solved
Re: help me i am noob?
Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0
#MaxThreadsPerHotkey 2
$Space:: {
Static on := False
on := !on
While on
SendEvent ' '
}
Re: help me i am noob?
thanks !mikeyww wrote: ↑04 Mar 2023, 09:29Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0 #MaxThreadsPerHotkey 2 $Space:: { Static on := False on := !on While on SendEvent ' ' }
Re: help me i am noob?
mikeyww wrote: ↑04 Mar 2023, 09:29Welcome 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)
Re: Need space spamming macro Topic is solved
Google Translate may be helpful in conveying your intent.
Code: Select all
#Requires AutoHotkey v2.0
$Space:: {
While GetKeyState("Space", "P")
SendEvent ' '
}