Hoping someone here can help me. I cant work out how to create a script whereby, while I am playing a game if for any reason I keep the left Left mouse button down for more than 2 seconds automatically engage left mouse button up?
TIA
[Mod action: Moved topic to the “Gaming” section.]
Left mouse button down = start timer, after 2 seconds auto left mouse button up? Topic is solved
Re: Left mouse button down = start timer, after 2 seconds auto left mouse button up? Topic is solved
Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0
~LButton:: {
If !KeyWait('LButton', 'T2')
Click('U'), SoundBeep(1500)
}
Re: Left mouse button down = start timer, after 2 seconds auto left mouse button up?
That was fast. Thank you for your help. It works like a charm.mikeyww wrote: ↑09 Mar 2024, 15:16Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0 ~LButton:: { If !KeyWait('LButton', 'T2') Click('U'), SoundBeep(1500) }