Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Click Detector
- JAVAProgramming
-
100+ posts
Click Detector
I need to make a detector for both a right click and a left click. Is there any way to differentiate the two different clicks?
- scubajerry
-
1000+ posts
Click Detector
I assume you are talking about mouse buttons. On my PC, it appears that Scratch doesn't detect right mouse buttons.
- JAVAProgramming
-
100+ posts
Click Detector
So there is no way to do that? I assume you are talking about mouse buttons. On my PC, it appears that Scratch doesn't detect right mouse buttons.
- mitchboy
-
1000+ posts
Click Detector
Not until Scratch adds in a right-click button under <key [] pressed?>
- ProdigyZeta7
-
1000+ posts
Click Detector
If you have 1.4, you can make a script that tricks Scratch into detecting right-clicks:
But otherwise, there is no way to detect right-clicks in 2.0.
Last edited by ProdigyZeta7 (Aug. 30, 2013 22:29:55)
- JAVAProgramming
-
100+ posts
Click Detector
OK, thanks! If you have 1.4, you can make a script that tricks Scratch into detecting right-clicks:
when this sprite clicked
if <mouse down?>
left-click script
else
right-click script
But otherwise, there is no way to detect right-clicks in 2.0.
- curiouscrab
-
500+ posts
Click Detector
It only works in 1.4 offline though. If you have 1.4, you can make a script that tricks Scratch into detecting right-clicks:But otherwise, there is no way to detect right-clicks in 2.0.
- awesomeness01
-
97 posts
Click Detector
there may be a way to do it from hacking the JSON part…
- Paddle2See
-
1000+ posts
Click Detector
Since this topic hasn't seen a new post from the topic owner in a long time, I'm going to assume that it is dead and close the topic. If it still is alive, the topic owner just needs to use the Report button to ask a mod to reopen it 

- Discussion Forums
- » Help with Scripts
-
» Click Detector