<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AGetkey_Program</id>
	<title>TI-BASIC:Getkey Program - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AGetkey_Program"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Getkey_Program&amp;action=history"/>
	<updated>2026-04-03T22:42:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Getkey_Program&amp;diff=1181&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Getkey_Program&amp;diff=1181&amp;oldid=prev"/>
		<updated>2016-02-24T18:38:49Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;gt; &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; This page was originally created by IProgrammer on the TI-Basic wiki, and has been added here because TI-Basic wiki is in the process of being merged with this wiki. In addition to this page, only those pages which weren&amp;#039;t already duplicated on this wiki were added.&lt;br /&gt;
&lt;br /&gt;
We will be learning about the [[TI-BASIC:Getkey|GetKey]] command, and how to create a controlled movement in this program.&lt;br /&gt;
&lt;br /&gt;
== Starting Out ==&lt;br /&gt;
&lt;br /&gt;
There are a few steps to ensure that your program will run smoothly:&lt;br /&gt;
&lt;br /&gt;
=== Check if you have the RAM to hold a program ===&lt;br /&gt;
&lt;br /&gt;
Click on 2nd then MEM above the + sign. Make Sure that you have at least 500 RAM too use. If you don&amp;#039;t, I suggest you archive something by pressing 2 then 1, then press ENTER on anything that doesn&amp;#039;t have a star next to it.&lt;br /&gt;
&lt;br /&gt;
=== Creating the program ===&lt;br /&gt;
&lt;br /&gt;
Click the PRGM key then use the right arrow until NEW is highlighted. You should get a screen like this:&lt;br /&gt;
&lt;br /&gt;
 PROGRAM&lt;br /&gt;
 NAME=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go ahead and enter any name you want. Must be only A-Z, no numbers.&lt;br /&gt;
&lt;br /&gt;
=== Now for the commands ===&lt;br /&gt;
&lt;br /&gt;
Lets go ahead and put in some commands. By now you should have a general understanding so I&amp;#039;ll go through this pretty fast:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 PROGRAM:MOVER    // Title&lt;br /&gt;
 :ClrHome         // Clears screen&lt;br /&gt;
 :1→Y       // Sets 1 to Y&lt;br /&gt;
 :1→X       // Sets 1 to X&lt;br /&gt;
 :Lbl 1             // Program Divider #1&lt;br /&gt;
 :Output(X,Y,&amp;quot;O&amp;quot;  // Displays the character&lt;br /&gt;
 :getKey→G  // Gets the key that the user is pressing&lt;br /&gt;
 :If G=0  // IF G=0 then...&lt;br /&gt;
 :Goto 1  // Go to top (looper)&lt;br /&gt;
 :If G≠0  // If G≠0 then...&lt;br /&gt;
 :ClrHome  // Clears the screen&lt;br /&gt;
 :If G=25  // If G=Up then...&lt;br /&gt;
 :Y-1→Y  // Y-1 to Y when up is pressed&lt;br /&gt;
 :If G=34  // If G=Down then...&lt;br /&gt;
 :Y+1→Y  // Y+1 to Y when down is pressed&lt;br /&gt;
 :If G=24  // If G=Left then...&lt;br /&gt;
 :X-1→X  // X-1 to X when left is pressed&lt;br /&gt;
 :If G=26  // If G=Right then...&lt;br /&gt;
 :X+1→X  // X+1 to X when right is pressed&lt;br /&gt;
 :If X=0  // If X is less than the screen then...&lt;br /&gt;
 :X+1→X  // X+1 to X to stop ERROR:DOMAIN&lt;br /&gt;
 :If Y=0  // IF Y is less than the screen then...&lt;br /&gt;
 :Y+1→Y  // Y+1 to Y to stop ERROR:DOMAIN&lt;br /&gt;
 :If X=17  // IF X is greater than the screen then...&lt;br /&gt;
 :X-1→X  // X-1 to X to stop ERROR:DOMAIN&lt;br /&gt;
 :If Y=9  // IF Y is greater than the screen then...&lt;br /&gt;
 :Y-1→Y  // Y-1 to Y to stop ERROR:DOMAIN&lt;br /&gt;
 :Goto 1  // Goes up to the top (looper)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
&lt;br /&gt;
The user will be able to move a little circle around the screen.&lt;br /&gt;
 &lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
Way to go you made your first getKey program!&lt;br /&gt;
&lt;br /&gt;
== Optionals ==&lt;br /&gt;
&lt;br /&gt;
You can make your circle teleport to the other side of the screen if you change this part of the program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 :If X=0  // If X is less than the screen then...&lt;br /&gt;
 :X+16→X  // Move X to right side of the screen&lt;br /&gt;
 :If Y=0  // IF Y is less than the screen then...&lt;br /&gt;
 :Y+8→Y  // Move Y to bottom of the screen&lt;br /&gt;
 :If X=17  // If X is greater than the screen then...&lt;br /&gt;
 :X-16→X  // Move X to left side of the screen&lt;br /&gt;
 :If Y=9  // If Y is greater than the screen then...&lt;br /&gt;
 :Y-8→Y  // Move Y to top of the screen&lt;br /&gt;
 :Goto 1  // Goes up to the top (looper)[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>