This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SkipTam's profile picture

mouse_Click not working

Started by SkipTam, 31 March 2019 - 12:37 PM
SkipTam #1
Posted 31 March 2019 - 02:37 PM
Hi Everyone,
i have a small problem. Somehow this script does not trigger and i do not understand why. Can anyone help me?

https://pastebin.com/PrWah3D7

thanks!
SkipTam #2
Posted 31 March 2019 - 07:59 PM
Please close thread…
Problem was Layer 8.
CCTech #3
Posted 02 April 2019 - 08:11 PM
You haven't checked which button gets clicked on line 17:

if x > 5 and x < 8 and y == 2 then

It should look like:

if parm1 == 1 and x > 5 and x < 8 and y == 2 then -- 1 is tthe left mouse button. I don't really know about the both other

Everything else should be fine as far as I know
Dog #4
Posted 02 April 2019 - 10:06 PM
You haven't checked which button gets clicked on line 17:

if x > 5 and x < 8 and y == 2 then

It should look like:

if parm1 == 1 and x > 5 and x < 8 and y == 2 then -- 1 is tthe left mouse button. I don't really know about the both other

Everything else should be fine as far as I know

It doesn't matter if the button is checked. If there is no check for the button then all 3 buttons are considered valid.
CCTech #5
Posted 03 April 2019 - 03:50 PM
You haven't checked which button gets clicked on line 17:

if x > 5 and x < 8 and y == 2 then

It should look like:

if parm1 == 1 and x > 5 and x < 8 and y == 2 then -- 1 is tthe left mouse button. I don't really know about the both other

Everything else should be fine as far as I know

It doesn't matter if the button is checked. If there is no check for the button then all 3 buttons are considered valid.

Really? It never worked for me though when I forgot checking it… Well.. questions over questions :P/>