How do I write a C program for Ti-84+CE so that it can run in the background and I can do normal calculator functions and it activates when I press a specified keystroke?
The most likely solution would be to use a 'hook' - these are a feature of the OS that allows you to gain control before, during or after certain OS operations, such as keypresses or calculations. There is some general information here (for the 83+ but it's the same concept): https://wikiti.brandonw.net/index.php?title=83Plus:OS:Hooks

The issue on the CE is that apps are not allowed, so you need to be careful/creative as a hook is expected to be in the same location at all times. If something overwrites RAM or a garbage collect occurs then it may be marked invalid or even crash.

You can find most hook addresses in the os include file: https://wikiti.brandonw.net/index.php?title=84PCE:OS:Include_File

There are 83 plus examples on the wiki here with examples, the raw key hook is a good one to look at: https://wikiti.brandonw.net/index.php?title=Category:83Plus:Hooks:By_Name

The concept is basically the same for the CE.
I'll take this opportunity to plug cap'nhook, my hook manager for the CE. :p
There are a few example programs there that you can modify to see how it works.
Thank you for your fast responses! I will go look at that. Smile
  
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