Code: Select all
LButton::
KeyWait, %A_ThisHotkey%, T.3
Send % ErrorLevel ? "1" : "{LButton}"
Return
Code: Select all
LButton::
KeyWait, %A_ThisHotkey%, T.3
Send % ErrorLevel ? "1" : "{LButton}"
Return
Code: Select all
LButton::
KeyWait, %A_ThisHotkey%, T.3
If ErrorLevel { ; Held
Send {1 down}
SoundBeep, 1500
KeyWait, %A_ThisHotkey%
Send {1 up}
SoundBeep, 1000
} Else Click
Return
Ok so when i try this it's still hitting the 1 key only one time in notepad, i'm looking for it to hold down 1 constantly untill i release left button.mikeyww wrote: ↑27 Sep 2021, 19:03Code: Select all
LButton:: KeyWait, %A_ThisHotkey%, T.3 If ErrorLevel { ; Held Send {1 down} SoundBeep, 1500 KeyWait, %A_ThisHotkey% Send {1 up} SoundBeep, 1000 } Else Click Return
Code: Select all
LButton::
KeyWait, %A_ThisHotkey%, T.3
If ErrorLevel ; Held
While GetKeyState(A_ThisHotkey, "P") {
Send 1
Sleep, 15
}
Else Click
Return
Users browsing this forum: No registered users and 61 guests