Page 2 of 2
Re: Button use while script is running
Posted: Wed Nov 16, 2016 12:51 am
by Jeanne DeVoto
jacque wrote:I will mention that unless the mouse is down at the exact moment that line of script runs, it will fail. LC doesn't buffer mouse states.
But it does buffer the mouseClick state! (MOO-ha-ha-ha-ha.)
Re: Button use while script is running
Posted: Wed Nov 16, 2016 5:52 pm
by jacque
Jeanne DeVoto wrote:jacque wrote:I will mention that unless the mouse is down at the exact moment that line of script runs, it will fail. LC doesn't buffer mouse states.
But it does buffer the mouseClick state! (MOO-ha-ha-ha-ha.)
I should have known you'd have that in your memory banks.

Re: Button use while script is running
Posted: Wed Nov 16, 2016 6:02 pm
by dunbarx
Now, girls...
But Jeanne makes a point. The old, old way to emulate a double click back in the day was:
Code: Select all
on mouseUp
wait 30
if the mouseClick then...
...
So the state of the mouse was queued even during a blocking interval. I am not going back to test using "if the mouseClick" instead of "if the mouse is down", but I bet a boxed floppy disc set of HC 2.1 it would work just fine.
Craig