Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lakuuni

Pages: [1]
1
Lua / Re: Lua Q&A
« on: November 07, 2011, 11:27:27 am »
Great thanks to all of you, Levak, 3rik and Adriweb. I don't know what I would do without you guys helping me take my first steps. You've been really helpful.

2
Lua / Re: Lua Q&A
« on: November 06, 2011, 12:13:50 pm »
I'm quite new to lua and I've just started to do my own simple experiments with it to get the gist of the language and programming for calculator. Now I'm trying to figure out how to get input from the user via nspire's keyboard. To do that I've tried exploring lua.org, hackspire wiki, google and lua programs posted on this forum, but when trying to create a simple program that would for example print "hello world" when the user presses the enter key, it seems to notice the enter being pressed only when pressing it after for example catalog button. This obviously isn't very useful when planning real projects so I ask you to guide me to a batter way of achieving communications between program and it's user.
Here's the code I tried:
Code: [Select]
function on.enterKey()
function on.paint(gc)
gc:drawString("Hello World!",0,0,"top")
end
end

Pages: [1]