Triple right-click and hold while CapsLock pressed? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
catzilla
Posts: 4
Joined: 18 Dec 2016, 21:04

Triple right-click and hold while CapsLock pressed?

26 Sep 2017, 01:05

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.
User avatar
Spawnova
Posts: 554
Joined: 08 Jul 2015, 00:12
Contact:

Re: Triple right-click and hold while CapsLock pressed?  Topic is solved

26 Sep 2017, 04:20

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
catzilla
Posts: 4
Joined: 18 Dec 2016, 21:04

Re: Triple right-click and hold while CapsLock pressed?

26 Sep 2017, 05:28

Spawnova 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
Thanks for the help i will try it out shortly and comment
catzilla
Posts: 4
Joined: 18 Dec 2016, 21:04

Re: Triple right-click and hold while CapsLock pressed?

26 Sep 2017, 05:42

ok it worked i just needed to edit the delay to my preference. Thanks buddy!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 326 guests