Jump to content




mouse_Click not working


4 replies to this topic

#1 SkipTam

  • Members
  • 7 posts
  • LocationGermany

Posted 31 March 2019 - 01: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!

#2 SkipTam

  • Members
  • 7 posts
  • LocationGermany

Posted 31 March 2019 - 06:59 PM

Please close thread...
Problem was Layer 8.

#3 CCTech

  • Members
  • 40 posts
  • LocationGermany

Posted 02 April 2019 - 07: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

#4 Dog

  • Members
  • 1,177 posts
  • LocationEarth orbit

Posted 02 April 2019 - 09:06 PM

View PostCCTech, on 02 April 2019 - 07:11 PM, said:

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.

#5 CCTech

  • Members
  • 40 posts
  • LocationGermany

Posted 03 April 2019 - 02:50 PM

View PostDog, on 02 April 2019 - 09:06 PM, said:

View PostCCTech, on 02 April 2019 - 07:11 PM, said:

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users