Run a program on mouse pressed

Share your favorite FastKeys commands
Post Reply
User avatar
davidp
Posts: 93
Joined: Mar 7th, ’18, 08:32

Post by davidp » Mar 26th, ’18, 01:59

Run a program if left mouse button or right button is held(pressed) for 500ms or so.
User avatar
Tom
Posts: 285
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 29th, ’18, 13:19

Nice one... This will open Google if the left mouse button is pressed for 1.2 seconds:

Module: Shortcuts
Key: LButton
Type: Command

Code: Select all

KeyWait, LButton, T1.2    ;1.2 sec
If ErrorLevel
  Run, www.google.com
Else
  Send {LButton}
Post Reply