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

General Discussion Board \ Game and Program Discussion \ Getkey does?

Click here to log in (you must be logged in to post comments).

AuthorComment
Joemakerman
Marine
Posted: 15 Jan 2008
16:05 GMT
Total Posts: 15
There is a topic further down about Getkey programs. I'm new to programming and I was just wondering what they were for. I was going to respond to it but its been locked. Right now I only do basic, and I don't even know most of that, so I really know very little. Thanks in advance.

-Joe
Xphoenix
Ultralisk
avatar
Posted: 15 Jan 2008
16:32 GMT
Total Posts: 210
If you want to know how to use the actual getKey command, go here. If you mean a program called "GETKEY," I'd guess it probably shows the code of a key that you press.

---
~Xphoenix
Zachary940
Wraith
avatar
Posted: 15 Jan 2008
16:33 GMT
Total Posts: 714
Each button, except the [ON] button, on the TI-83 series has a specific vale. [y=] is 11 and [Enter] is 105. The command getkey gets that value and stores it in a variable.

---
It is much easier to suggest solutions when you know nothing about the problem.
Joemakerman
Marine
Posted: 15 Jan 2008
16:55 GMT
Total Posts: 15
Oh! As a variable, ok, thanks.

So its a little like lbl/goto, only its to a certain button, as opposed to a menu selection.

Thanks guys.
Vectris
Ultralisk
avatar
Posted: 15 Jan 2008
17:18 GMT
Total Posts: 375
yes its a variable, so u would use getkey->X
and then X is the number for the key pressed

how this relates to menu selections and lbl/gotos i dont see

if you think that when u press a key, that the calc automatically goes to a lbl with the matching key #, it doesn't
Joemakerman
Marine
Posted: 16 Jan 2008
14:01 GMT
Total Posts: 15
No, like as in, when you make a Menu, the numbers follow the option, and then you lbl that number and add something, and when you push the number to select while running the program, it goes where ever you labeled it to go on that number.

Such as this, to where you push a button, such as 2nd, it does something, such as "shoot".

I didn't mean direct relation, more distant. Or maybe I just misunderstand the getkey thing.
Vectris
Ultralisk
avatar
Posted: 16 Jan 2008
14:36 GMT
Total Posts: 375
no u got it, i just see it as less of a link as u do, but that is a good way of doing it

but u understand second doesn't "shoot" until you put the commands

:getkey->K
:If K=21 (# for 2nd key)
:SHOOT (or w/e)
Joemakerman
Marine
Posted: 16 Jan 2008
16:27 GMT
Total Posts: 15
Yeah, I know.

-Joe
Vectris
Ultralisk
avatar
Posted: 16 Jan 2008
17:19 GMT
Total Posts: 375
kk not insulting your intelligence or anything, just saying that b/w getkey u need more commands, b/w gotos/lbls u don't need extra commands, thats my view
Joemakerman
Marine
Posted: 16 Jan 2008
18:49 GMT
Total Posts: 15
Thats true, I never thought of it that way. I was more thinking of the function. They both do something that furthers you into the program.

-Joe
Vectris
Ultralisk
avatar
Posted: 16 Jan 2008
19:56 GMT
Total Posts: 375
lol, well most commands do
Joemakerman
Marine
Posted: 17 Jan 2008
03:34 GMT
Total Posts: 15
Lol, ok well forget I said anything then.





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