http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Game and Program Discussion \ silly people posting 'getkey' programs.

This topic is lockedClick here to log in (you must be logged in to post comments).

AuthorComment
hyperdude
Probe
Posted: 15 Jul 2007
20:45 GMT
Total Posts: 8
Heh. I've seen a couple of programs on ticalc.org that will give the number of pressed keys. one says "Great for programmers!"

Can't people just do it manually (ie. row-column configuration) and not waste 5kb or whatever on a pre-made program to tell them something they could find out on their own?

PS. If you don't know how to identify button keycodes, use the row-column trick (if the button is in the tenth row [bottom] and it the third one in that row, its number is 105. if it's in the first row and is the fourth one, it's 14. etc etc).

But whatever. that's just my opinion

---
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer sit amet lectus. Maecenas at pede sit amet mauris dapibus egestas. Maecenas consequat porttitor orci. Integer sem metus, vulputate quis, faucibus ac, auctor quis, ipsum. Fusce orci aliquam.
allynfolksjr
Administrator
avatar
Posted: 15 Jul 2007
22:12 GMT
Total Posts: 1892
It must be really hard to figure it out.
hyperdude
Probe
Posted: 16 Jul 2007
08:39 GMT
Total Posts: 8
but it's actually not that hard. it's just a few commands (like "getkey->K" "if K=45:stop" etc. etc.)

Why would someone need a premade program to help them figure out the number when it's so simple?

---
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer sit amet lectus. Maecenas at pede sit amet mauris dapibus egestas. Maecenas consequat porttitor orci. Integer sem metus, vulputate quis, faucibus ac, auctor quis, ipsum. Fusce orci aliquam.
haveacalc
Guardian
avatar
Posted: 16 Jul 2007
09:40 GMT
Total Posts: 1111
If getKey=45
Stop

---
-quoted directly from most movies that don't exist (and some that do).
hyperdude
Probe
Posted: 16 Jul 2007
10:00 GMT
Total Posts: 8
"If getKey=45
Stop"

yeah whatever

---
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer sit amet lectus. Maecenas at pede sit amet mauris dapibus egestas. Maecenas consequat porttitor orci. Integer sem metus, vulputate quis, faucibus ac, auctor quis, ipsum. Fusce orci aliquam.
Xero Xcape
Marine
avatar
Posted: 16 Jul 2007
11:03 GMT
Total Posts: 29
It's a program in the manual, it makes people feel special that they can copy TI's crappy code

---
BASIC flames are for n00bs, you don't want to be a n00b do you? | My other calc is a Porsche.
hyperdude
Probe
Posted: 16 Jul 2007
11:11 GMT
Total Posts: 8
It's a program in the manual, it makes people feel special that they can copy TI's crappy code

Exactly. People think they're ubersmart because they can copy a simple code.

---
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer sit amet lectus. Maecenas at pede sit amet mauris dapibus egestas. Maecenas consequat porttitor orci. Integer sem metus, vulputate quis, faucibus ac, auctor quis, ipsum. Fusce orci aliquam.
banjo2E
Wraith
avatar
Posted: 16 Jul 2007
11:42 GMT
Total Posts: 689
Huh. That's odd. It's not in my manual. All I have is "Sierpinski Triangle" and "Guess the Coefficients."

---
http://uncyclopedia.org/wiki/User:Administrator <------ WOOOOO!!!!!
me2
Goliath
avatar
Posted: 16 Jul 2007
12:01 GMT
Total Posts: 171
A way you can do movement is:
A as the x-coordinate, and B as the y-coordinate, K for keypress

30->A ;sets initial values
-30->B
Lbl 1
While K=0 ;repeats until key is pressed
getkey->K
End
A->C ;stores old coordinates
B->D
(A-(K=24)+(K=26))->A ;uses keypress
(B-(K=25)+(K=34))->B
Pt-On(A,B ;shows position
Pt-Off(C,D ;deletes old position
0->K
Goto 1 ;repeats the label
End

For this to work, set Ymin to -62, Ymax to 0, Xmin to 0, and Xmax to 94

Let me know if it was helpful

---
<--- Going out with a bang.
threefingeredguy
Ghost
avatar
Posted: 16 Jul 2007
13:15 GMT
Total Posts: 1189
Nikky was kidding when he said it must be hard to figure out. Sarcasm isn't conveyed well over the internet unless it's very obvious.

Also me2, thanks for reiterating the point of the topic. Lots of people make useless programs that show someone how to do something that would take 10 seconds to figure out.

---
Someone call for an exterminator?
darksideprogramming
Guardian
avatar
Posted: 16 Jul 2007
13:55 GMT
Total Posts: 1005
Or, as is my case, can do in their sleep.
Master Jc
Dragoon
avatar
Posted: 16 Jul 2007
15:41 GMT
Total Posts: 54
"Guess the Coefficients"? I love that game!

It's easy to pick up Nikky's sarcasm. Every other thing he says is sarcastic.

I've always kinda wondered why the getkey #s are the way they are. Like, why is Y= key #11 when it could be 1, and each number numerically in order? I'm guessing it's just hardware, or just because it's easier to figure out the keys when the first number corresponds with the rows.

---
--Note to self: Warranties are NOT a challenge.
banjo2E
Wraith
avatar
Posted: 17 Jul 2007
07:57 GMT
Total Posts: 689
Eleven means "row 1, column 1".

---
http://uncyclopedia.org/wiki/User:Administrator <------ WOOOOO!!!!!
Master Jc
Dragoon
avatar
Posted: 19 Jul 2007
04:52 GMT
Total Posts: 54
>>when the first number corresponds with the rows.

Okay, makes sense to me.

---
--Note to self: Warranties are NOT a challenge.
tifreak8x
Administrator
avatar
Posted: 19 Jul 2007
18:33 GMT
Total Posts: 419


Or you can have something spiffy like that :P Makes it so even the brain dead *coughdspcough* can understand getkey. :D

---
Bringing you Pokemon, for your calculator.
Andy
Administrator
Posted: 22 Jul 2007
20:22 GMT
Total Posts: 939
Isn't that in the manual? :)
Zachary940
Wraith
avatar
Posted: 22 Jul 2007
20:50 GMT
Total Posts: 714
If not it should be.

---
It is much easier to suggest solutions when you know nothing about the problem.
john777
Ultralisk
avatar
Posted: 23 Jul 2007
07:06 GMT
Total Posts: 289
Yes on Page 532.
Master Jc
Dragoon
avatar
Posted: 26 Jul 2007
05:53 GMT
Total Posts: 54
My manual (which is conveniently by my computer) doesn't have a page 532. It's one of the first manuals--A.K.A, the good ones.

---
--Note to self: Warranties are NOT a challenge.
john777
Ultralisk
avatar
Posted: 26 Jul 2007
06:58 GMT
Total Posts: 289
What makes your book so good?
darksideprogramming
Guardian
avatar
Posted: 14 Aug 2007
09:14 GMT
Total Posts: 1005
Tifreak, you will pay for such insolence.

And this should be one of the first things a budding young programmer should learn.
CoffmanRunner
Ultralisk
avatar
Posted: 17 Sep 2007
14:26 GMT
Total Posts: 235
Yes some programs on websites such as this are of no use to advanced programmers but can help one that are just trying to get started. One of my first "game" programs was when a friends wrote "x-man" on my calculator really quick to help me learn. I studied the code and figured out how it all worked (then improved on it) and my method of learning new things hasn't changed much.
1. Find working code
2. Identify what commands do what
3. Tweak code to make sure you understand it
4. Write your own from scratch and make it Harder, better, faster, stronger (No I am NOT a Kanye Wast fan i listened to the original :))

---
Never gonna let you down...
haveacalc
Guardian
avatar
Posted: 17 Sep 2007
14:43 GMT
Total Posts: 1111
Why do you keep bumping topics that have been dead for a while? I wouldn't have said anything, but this is like the 4 or 5th topic that you've done this to.

---
-quoted directly from most movies that don't exist (and some that do).





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org