Jump to content




Mouse click program not work.


  • You cannot reply to this topic
2 replies to this topic

#1 DubbelSoftware

  • Members
  • 62 posts

Posted 21 April 2016 - 06: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

#2 TYKUHN2

  • Members
  • 210 posts
  • LocationSomewhere in this dimension... I think.

Posted 21 April 2016 - 06:40 PM

May I ask on what line you are looking for the mouse event on?

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 21 April 2016 - 11:45 PM

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...ructureTutorial





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users