Need help with a small AHK script

종료 등록 시간: 6년 전 착불
종료 착불

~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 소프트웨어 아키텍처

프로젝트 ID: #16474216

프로젝트 소개

3 건(제안서) 재택 근무형 프로젝트 서비스 이용 중: 5년 전

이 일자리에 대한 프리랜서 3 명의 평균 입찰가: £16

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 기타

£18 GBP (1일 이내)
(73 리뷰)
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 (1일 이내)
(2 리뷰)
0.7