Script tht doesn't work very well

Ask gaming related questions (AHK v1.1 and older)
Raf
Posts: 7
Joined: 03 Jan 2020, 13:37

Script tht doesn't work very well

27 Feb 2020, 06:26

the purpose of this script is when i press the letter z it presses the g key but i have a problem when i press and when i release the z key it presses the capital letter key

Code: Select all

$Z::
            
       send {z down}
       sleep 10   
       send {g down}
       sleep 1
       send {g up}
       keywait, z
       sleep 100 
       send {z up}

return
thank for your help :))
Rohwedder
Posts: 7720
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Script tht doesn't work very well

29 Feb 2020, 09:14

Hallo,
maybe a slightly shorter code works better:

Code: Select all

~z::g
Raf
Posts: 7
Joined: 03 Jan 2020, 13:37

Re: Script tht doesn't work very well

29 Feb 2020, 19:23

yes its good thank you man good job

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Green Astronaut and 40 guests