mouse hold
-
- Posts: 28
- Joined: 30 Nov 2024, 13:38
mouse hold
How do i make a script that holds left mouse button for 2 sec?
Re: mouse hold
Code: Select all
#Requires AutoHotkey 2
F3:: {
Click 'D'
Sleep 2000
Click 'U'
SoundBeep 1500
}
-
- Posts: 28
- Joined: 30 Nov 2024, 13:38
Re: mouse hold
Can you explain what it does?mikeyww wrote: ↑02 Dec 2024, 13:01Code: Select all
#Requires AutoHotkey 2 F3:: { Click 'D' Sleep 2000 Click 'U' SoundBeep 1500 }
Re: mouse hold
Hello,
The AHK documentation actually describes every statement in detail. The script, upon pressing F3, clicks down, waits 2 seconds, releases the button, and beeps. Another way of explaining:
The AHK documentation actually describes every statement in detail. The script, upon pressing F3, clicks down, waits 2 seconds, releases the button, and beeps. Another way of explaining:
Explained: Introduction and simple examplesholds left mouse button for 2 sec