I'm trying to create an autofire button
Here is my code:
__________________________________
$~a::
while (getKeyState("a", "P"))
{
send, {z down}
sleep, 20
send, {z up}
}
return
___________________________________
the problem is that when I press "a", the code will start sending "a + z" together, I want to replace the key "a" completely to just send "z" only, how?
Key replacement Topic is solved
-
- Posts: 2
- Joined: 27 Jun 2017, 11:03
Re: Key replacement
Sounds like you want to remap a to z. Which can be done like this:
a::b
a::b
Re: Key replacement
No no, I want that when I press the key 'a' to start sending
send, {z down}
sleep, 20
send, {z up}
and the problem is when I press 'a' it will start sending A + Z together, I want it only to send 'Z sleep 20' only?
EDIT:
I just want someone to correct my code
this code is for Mega Man game turbo button
Code is:
*~$a::
while (getKeyState("a", "P"))
{
send, {z}
sleep, 20
}
return
When I press A it will be like this: zazazazazazazazazazazazazazazzaza
I want it to be like this: zzzzzzzzzzzzzz every time I press a
Hope somebody would help:)
send, {z down}
sleep, 20
send, {z up}
and the problem is when I press 'a' it will start sending A + Z together, I want it only to send 'Z sleep 20' only?
EDIT:
I just want someone to correct my code
this code is for Mega Man game turbo button
Code is:
*~$a::
while (getKeyState("a", "P"))
{
send, {z}
sleep, 20
}
return
When I press A it will be like this: zazazazazazazazazazazazazazazzaza
I want it to be like this: zzzzzzzzzzzzzz every time I press a
Hope somebody would help:)
Last edited by AcidoX on 27 Jun 2017, 12:44, edited 1 time in total.
Re: Key replacement Topic is solved
take out the ~ that's why its sending "a" and probably the $ is unnecessary though that isn't the problem.
try it and see
...
...
Re: Key replacement
Thank you derzo00
it works now like charm!:)
it works now like charm!:)
Who is online
Users browsing this forum: inseption86, Mannaia666 and 142 guests