I need 2 ahks from you ( the community )

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kota1148
Posts: 1
Joined: 28 May 2022, 19:44

I need 2 ahks from you ( the community )

Post by kota1148 » 28 May 2022, 19:47

I want the 1st ahk to be toggled by left arrow and to send another click 20 ms after my left click, giving it a double click,
i want the 2nd ahk to be toggled by right arrow and to send another click 20 ms after my right click

Qriist
Posts: 82
Joined: 11 Sep 2016, 04:02

Re: I need 2 ahks from you ( the community )

Post by Qriist » 28 May 2022, 21:12

Asking nicely works wonders, as does money.

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: I need 2 ahks from you ( the community )

Post by BoBo » 29 May 2022, 08:51

@kota1148 - what's it for? :yawn:

User avatar
Xtra
Posts: 2744
Joined: 02 Oct 2015, 12:15

Re: I need 2 ahks from you ( the community )

Post by Xtra » 29 May 2022, 12:20

While you wont learn much having someone write scripts for you take the time to start learning. (There are clickable links in the codebox that will bring up the help file)
You are more likely to get help if you try and post your code showing you made an attempt.
With that said this one is free. The help file is your friend.

Code: Select all

#NoEnv

#If LeftToggled
~LButton::
    Sleep 20
    Send, {LButton}
return

#If RightToggled
~RButton::
    Sleep 20
    Send, {RButton}
return
#If

Left::LeftToggled := (t1 := !t1) ? 1 : 0
Right::RightToggled := (t2 := !t2) ? 1 : 0

User avatar
flyingDman
Posts: 2791
Joined: 29 Sep 2013, 19:01

Re: I need 2 ahks from you ( the community )

Post by flyingDman » 29 May 2022, 12:47

There seems to be a (growing) group of people believing they are entitled to have others write the code for them. There is no "please" and there is no " I have looked all over the forum and could not find it" they are just placing "an order". Zero desire to learn. There is a limited number of solutions to the problem. Writing the code for them, is not one of them...
14.3 & 1.3.7

Post Reply

Return to “Ask for Help (v1)”