Autohotkey on a win8 tablet: three clicks for an action

Posted on

QUESTION :

I would love to use three clicks on my tablet to perform an action such as ^w (closing chrome windows).

I have tried with “RapidHotkey” script but to no avail. I would greatly appreciate your help.
Thank you kindly.

ANSWER :

As per the OP:

~LButton::
if winc_presses > 0 ; SetTimer already started, so log keypress instead
{
    winc_presses += 1
    Return
}

winc_presses = 1
SetTimer, TheKey, 600
Return

TheKey:
SetTimer, TheKey, off

if winc_presses = 3 ; The key was pressed thrice   
   {
   send ^w
   }
winc_presses = 0
Return

Leave a Reply

Your email address will not be published.