Sorry for the bad topic, but I couldn't find a better way to describe it
What I want is a script that does something like this:
~X::
Loop
{
if not GetKeyState("X", "P")
Break
Send {1}
sleep 20
Send {2}
sleep 20
Send {3 - Only every 2sec while X is held down, otherwise just skip}
sleep 20
}
Return
Is this something that can be done?
Thanks in advanced
//Best regards
How to make a key repeat it self every 2sec while spaming others? Topic is solved
-
- Posts: 18
- Joined: 23 Jul 2017, 06:04
Re: How to make a key repeat it self every 2sec while spaming others? Topic is solved
Hallo,
try:
try:
Code: Select all
~X::
3Send := A_TickCount + 2000
While, GetKeyState("X", "P")
{
Send {1}
sleep 20
Send {2}
sleep 20
IF (A_TickCount > 3Send)
{
Send {3}
3Send := A_TickCount + 2000
}
sleep 20
}
Return
-
- Posts: 18
- Joined: 23 Jul 2017, 06:04
Re: How to make a key repeat it self every 2sec while spaming others?
Brilliant, thanks a lot. you saved my day
Who is online
Users browsing this forum: mstrauss2021 and 281 guests