I want to make a ti-basic program to mess with my friends using the onblock to prevent quitting the program. Is there a way to use the getkey feature to make a specific key code to quit the program?
The program has a lbl that displays a random message, and a second label that goes to the first. Thanks for any help.
A program using OnBlock would look something like the following:


Code:

//Enables OnBlock
0
Asm(prgmONBLOCK

//Loops continuosly until keycode that equals G is activated. 45 is the clear button
Repeat G=45
getKey->G
Disp "TROLL MESSAGE
End

//Disables OnBlock
1
Asm(prgmONBLOCK
dankcalculatorbro wrote:
A program using OnBlock would look something like the following:


Code:

//Enables OnBlock
0
Asm(prgmONBLOCK

//Loops continuosly until keycode that equals G is activated. 45 is the clear button
Repeat G=45
getKey->G
Disp "TROLL MESSAGE
End

//Disables OnBlock
1
Asm(prgmONBLOCK


Thanks
Need any more help? Idea Graphing Calculator
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement