MicroMacro v0.97
SolarImpact
http://solarimpact.servegame.com
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> entrada.lua
Opening entrada.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------
The macro is currently not running. Press the start key (Insert) to begin.
You may use (Delete) key to stop/pause the script.
Started.
Are you OK? (Y/N): Your choice is:
Stopping execution.
Where am I going wrong? I trying to make a simple menu to users...
Thanks in advance.
Actually, this reminds me of when I was writing a command-line driven FTP-ish server/client using MicroMacro... Yes, I was somewhat successful: the server ran fine, accepted multiple users, and transferring files between client/server worked great, even with binary files. Then I realized that there was absolutely no need for it, and it was a big waste of time...but fun.
Anyways, most of your code is correct. The problem is that the keyboard buffer still has information in it from before. What you need to do is completely empty the buffer just before trying to accept input, that way you can be certain that prior input will not screw with your current input.