Greeting, I am new here, but having a lot fun with this :-)
I can do single click, but how to you do mouse double click in scratch?
Say for instance, I use the mouse to hover over a few selections, then one click to select, and double-click to submit.
How do you do this without the screen flashing back at you?
Perhaps links to old posts. Thank you.
Offline
You could probably use variables, like:
when gf clicked if <mouse down> change [mouse clicks v] by [1]something around this theme may work
Offline
mewkid wrote:
You could probably use variables, like:
when gf clicked forever if <<mouse clicks> < (2)>? if <mouse down?> change [mouse clicks v] by [1] set [clicked? v] to (1) wait until <<clicked?> = 0> if <<mouse clicks > = 2> broadcast [do something v] end end end end [use both] when gf clicked forever if <<clicked?> = 1> repeat (100) wait (0.01) secs if <mouse down?> change [mouse clicks v] by (1) end end set <clicked?> to (0) endsomething around this theme may work
fixed it to work better
Last edited by MaxFlyboy (2012-03-12 23:28:20)
Offline
when gf clicked forever wait until <<mouse down?> and <touching [mouse-pointer v]?>> reset timer wait until <not <mouse down?>> wait until <<mouse down?> and <touching [mouse-pointer v]?>> if <(timer) < (0.5)> broadcast [I was dbl-clicked! v] end
Last edited by Hardmath123 (2012-03-13 04:53:35)
Offline