Page 1 of 1

Detect Double-Click

Posted: Sun Nov 13, 2016 6:39 pm
by dkwroot
Is there a way to detect double-clicking? I only see options for detecting mouse down, mouse up and key down, key up.

Re: Detect Double-Click

Posted: Sun Nov 13, 2016 7:20 pm
by synthsin75
You would have to have one click set a variable to os.time. If a click finds os.time minus this variable to be short enough, then both clicks happened close enough to be considered a double-click.

Re: Detect Double-Click

Posted: Mon Nov 14, 2016 12:05 am
by hayasidist
if mouseEvent.doubleClick then ...??

http://mohoscripting.com/index.php?show ... MouseEvent