Code: Select all
#HotIf auto
LButton:: {
SetKeyDelay 20, 20
While GetKeyState(ThisHotkey, "P")
SendEvent '{' ThisHotkey '}'
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Code: Select all
#HotIf auto
LButton:: {
SetKeyDelay 20, 20
While GetKeyState(ThisHotkey, "P")
SendEvent '{' ThisHotkey '}'
Code: Select all
#Requires AutoHotkey v2.0
LButton:: {
Static beep := SoundBeep.Bind(1500)
SetKeyDelay 20, 20
SetTimer(beep, 4000), beep()
While GetKeyState(ThisHotkey, 'P')
SendEvent '{' ThisHotkey '}'
SetTimer beep, 0
}
Users browsing this forum: No registered users and 4 guests