Page 1 of 1

Script tht doesn't work very well

Posted: 27 Feb 2020, 06:26
by Raf
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 :))

Re: Script tht doesn't work very well

Posted: 29 Feb 2020, 09:14
by Rohwedder
Hallo,
maybe a slightly shorter code works better:

Code: Select all

~z::g

Re: Script tht doesn't work very well

Posted: 29 Feb 2020, 19:23
by Raf
yes its good thank you man good job