Please help me to make an ahk in which it will be when I press the "Space" 1 time, I will hold down the key
Send {Lbutton Down}
Send {Lbutton Up}
Exactly 25 times
Please help me to make an ahk in which it will be when I hold down the "Space", I will hold down the key
Re: Please help me to make an ahk in which it will be when I hold down the "Space", I will hold down the key
Code: Select all
Space::
Loop, 25
Click
Return
Re: Please help me to make an ahk in which it will be when I hold down the "Space", I will hold down the key
It is necessary that with a time interval it would be pressed exactly 20 times. so I wrote like this but why is it pressed only 10 times instead of 20
[Mod edit: Added [code][/code] tags. Please use them when posting code.]
Code: Select all
*sc39::
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Sleep 600 ;
Click
Return
[Mod edit: Added [code][/code] tags. Please use them when posting code.]
Re: Please help me to make an ahk in which it will be when I hold down the "Space", I will hold down the key
Test in Notepad. KeyHistory shows what is happening, so check it.
Re: Please help me to make an ahk in which it will be when I hold down the "Space", I will hold down the key
To be honest, I checked everything but did not understand anything. I'm trying to make it so that when I press the spacebar, my machine gun fires 20 times. With an interval of 2 seconds. But I can not
Re: Please help me to make an ahk in which it will be when I hold down the "Space", I will hold down the key
When you run my script in Notepad, what happens?