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 - Levak

Pages: 1 ... 50 51 [52] 53 54 ... 68
766
Lua / Re: A message to Nspire BASIC/Lua programmers
« on: June 12, 2011, 08:56:12 pm »
Or even better than better : don't do any readme file. And we're fixed.

767
TI-BASIC / Re: Weird Nspire bug //do not evaluate at all
« on: June 09, 2011, 11:47:37 am »
I can't manage to get your error, but, if I save the function (you forgot to do so ?) with Ctrl+B, and reevaluate the last sample, I get an infinite loop in exp2vector() on line 6. In a way, I don't understand anything about the numerical assignations inside exp2vector(), but I think you tried to convert a0 * X0^n + a1 * X1^n-1 + a2 * X2^n-2 + ... + an to [a0, a1, ..., an] didn't you ? Because you can do this with the built-in function polyCoeffs() (available at least in OS 3.0, don't know if it exists before) and returns {a0, a1, ..., an}.

I Hope this helped you.

768
TI-BASIC / Re: Weird Nspire bug //do not evaluate at all
« on: June 09, 2011, 05:50:40 am »
Can you submit the exp2vector source code and an application example also ?
Because, here, there is no mistake.

769
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 06, 2011, 06:08:15 pm »
* Levak has to change his mind ... done

Though, it wasn't an "entire" website, since we have only 4 tutorials that helped many people (I didn't expected so much). Thus I think he should read those, because they weren't very long, before starting and asking those question. I really like the RTFM method, since it really helps people searching by themselves. It is evident that, when there is no answer, or the answer is really complicated, we help this person, since he will search for many hours and doesn't find it afterall and come back again.

I'm sure we can come between those two ideas =)

770
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 06, 2011, 04:35:27 am »
Yeah, thanks, I was eating my breakfast, I hadn't got the mind to that. x)

771
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 06, 2011, 04:10:34 am »
Code: [Select]
function on.paint(gc)
 if mX and mY then
  gc:setPen("sansserif", "r", 18)
  gc:drawString("You pressed at ("..mx..", "..my..") coordinates", 0, 0, "top")
 end
end

function on.mouseDown(x, y)
 mX, mY = x, y
end

772
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 05, 2011, 07:02:03 pm »
So on.mouseDown(n, m) will save the X coordinate to var n, Y coordinate to var m?

Or does it have to store to vars x and y?

Again ... you work in an evenmential environnement. Those questions are answered, please take the time to read everything.
http://www.inspired-lua.org/category/tutorials/starting-in-lua/

773
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 05, 2011, 06:56:34 pm »
So it would go like this:

The mouse is already controlled by the touchpad, no need to program this.
on.mouseDown is when the mouse is clicked, it reports that it was clicked and at what coordinates it was clicked at. What is the syntax for on.mouseDown?

This question is part of the "Starting in Lua" tutoring part. I guess you should look at it before beginning a project (we haven't finished the EN part ... sorry)


To answer quickly : on.mouseDown(x, y)

774
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 05, 2011, 06:51:37 pm »
This: http://wiki.inspired-lua.org/Category:Events

So on.down(), on.up(), on.left(), and on.right() are for touchpad motions. Right?

wrong.
EDIT : oops sorry, wrong one. Yeah, so "probably". You can test.
EDIT2 : hum, there is neither "on.right()" nor "on.left", so I think it is for something else.


There is no specification between TouchPad and ClickPad, since the TouchPad invokes a mouse.

775
Lua / Re: Codes for touchpad, arrow keys, select button, other keys?
« on: June 05, 2011, 06:48:02 pm »
Here is a list of all of the keys that can be "controlled" with Lua

Where is the list?

All the "basic questions" like this one are answered when looking at http://www.inspired-lua.org/  and http://wiki.inspired-lua.org/

777
TI-Nspire / Re: [Lua] Space Invaders
« on: June 05, 2011, 01:41:47 pm »
The final version is here !
I attach it in the first post, and in this post too.
It works on OS 3.0.2, as I used the official TI scripting tool, with the 30-days trial.
So thank you for all your help and replies, and I forgot to thank you for all your welcoming posts :)
Wait, 30-day trial?

He used the official TI scripting tool. To use it you need TI Nspire Computer Software. But since TI-Nspire Computer Software is under licence and we need to pay for it, Chockosta used the trial version of TI-Nspire Computer Software. But one thing is that it is not a 30-days trial, but a 90-days trial =)

778
Miscellaneous / Re: Post your desktop
« on: June 05, 2011, 12:20:24 pm »
Avant Windows Naviguator (AWN) is better :p

779
TI-Nspire / Re: [Lua] Space Invaders
« on: June 04, 2011, 03:53:19 pm »
If it could help you to understand :
Wait... you can read that thing?
Where is the problem ? We can do this since a while ... The more important thing to know is that the data base part (like strings, keys of strings, and the Lua part) are readable without dissassembly procedure.

780
[FR] Hors-Sujet / Re: La taille de la communauté française
« on: June 04, 2011, 03:11:13 pm »
Je supprime mon post, pas d'inquiétude, c'est pour la bonne cause


Tu vois bien que Mic maniupule ce qu'il veut. Oublie TI-Bank, Mic fait de la désinformation dans le sens où il ne croit que ce qu'il veut croire. Effectivement Critor bosse sur un forum, mais pas sur ti.bank.free.fr, c'est tout.

Pages: 1 ... 50 51 [52] 53 54 ... 68