Hi guys i downloaded this AHK as i needed some form of simple automation but i am not sure how to do this. I have searched the topic before i created this new thread as i did not find anyone asking for the same thing i am asking for.
All i wanted is when i press and hold down "CapsLock", AHK will do "Right-click" 3 times in quick succession and HOLD the 3rd click until i release the Capslock. Something like this;
When pressed "CapsLock"
Right-Click > press and release
Right-Click > press and release
Right-Click > Press and Hold.......
When released CapsLock
Right-Click > released
Appreciate any help on this and i hope this is not too much of a trouble.
Triple right-click and hold while CapsLock pressed? Topic is solved
Re: Triple right-click and hold while CapsLock pressed? Topic is solved
Code: Select all
setmousedelay,80 ;smaller = faster clicks
capslock:: ;capslock = hotkey
click,right ;click right
click,right
click,right,down ;click right down
keywait,capslock ;wait for capslock to be released
click,right,up ;click right up to release
return
Some of my AHK programs: 3D Voxel Game - Platformer Game
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
Re: Triple right-click and hold while CapsLock pressed?
Thanks for the help i will try it out shortly and commentSpawnova wrote:Code: Select all
setmousedelay,80 ;smaller = faster clicks capslock:: ;capslock = hotkey click,right ;click right click,right click,right,down ;click right down keywait,capslock ;wait for capslock to be released click,right,up ;click right up to release return
Re: Triple right-click and hold while CapsLock pressed?
ok it worked i just needed to edit the delay to my preference. Thanks buddy!
Who is online
Users browsing this forum: No registered users and 326 guests