Page 1 of 1

Run a program on mouse pressed

Posted: Mar 26th, ’18, 01:59
by davidp
Run a program if left mouse button or right button is held(pressed) for 500ms or so.

Re: Run a program on mouse pressed

Posted: Mar 29th, ’18, 13:19
by Tom
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}

Re: Run a program on mouse pressed

Posted: Jun 27th, ’22, 22:14
by davidp
In the script how to use time in millisec