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

Mouse click program not work.

Started by DubbelSoftware, 21 April 2016 - 05:20 PM
DubbelSoftware #1
Posted 21 April 2016 - 07:20 PM
If i try to make a mouse click program then it dont work, check the mouse click events in the code, there is the problem i think.


Pastebin: http://pastebin.com/Zv1vYihC
TYKUHN2 #2
Posted 21 April 2016 - 07:40 PM
May I ask on what line you are looking for the mouse event on?
Bomb Bloke #3
Posted 22 April 2016 - 12:45 AM
He's not. Nothing in that paste checks for anything to do with mouse clicks.

If you want to repeat code, use a while loop or something. Having biosmenu() itself will eventually lead to a stack overflow, as each old instance stays loaded in memory, waiting for each new one to complete and return. There's a limit as to how many functions you can run at a time, hence the eventual crash.

http://lua-users.org/wiki/ControlStructureTutorial