Need help with a small AHK script

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

~LButton::

; Only send click if mouse button was held down for < 500ms

KeyWait, LButton

if (A_TimeSinceThisHotkey < 500)

send abc

Return

The above works, and doesn't send the click command once LButton is released

I want to now add two functions for the click, without losing the above function. I have tried below, but this does NOT work as desired

~LButton::

; Only send click if mouse button was held down for < 500ms

KeyWait, LButton

if (A_TimeSinceThisHotkey < 500)

var++

if var>2

var:=1

If var=1

{

abc

}

If var=2

{

abc

}

Return

HTML JavaScript PHP Python Software Architecture

Project ID: #16474216

About the project

3 proposals Remote project Active 6 years ago

3 freelancers are bidding on average £16 for this job

krishan725

Hi, I'm krishan, from India. We have a team with highly skilled in Wordpress,Magento,Wordpress plugin development,Theme customization.I can discuss details with chat. Relevant Skills and Experience-3+ years of experien More

£18 GBP in 1 day
(73 Reviews)
6.3
paradox8484

I have extensive experience with autohotkey and am confident I can improve your script quickly. Please feel free to chat with me about the project before awarding.

£13 GBP in 1 day
(2 Reviews)
0.7