Hello, I'm starting with PrizmSDK, I'm doing a little test


int main() {
    int key;


    while (1) {

        if (key == KEY_CTRL_EXIT) {
   return 0;

When I press the Exit key it actually exits the add-on, but if I want to re-enter the add-on it simply shows the screen quickly and exits but does not wait for me to press the exit key again, I have to enter another add-on and so I re-enter myself. Try it and see if it works, what am I missing, thank you.
You are not missing anything.
This is the normal behaviour of Casio's OS for Prizm calculators.
You cannot launch twice the same addin in a row.
So what you see is actually normal and is not coming from your code.

ok thanks, I understood my confusion then was that I thought that when I pressed the exit key the while exited and when it reached return 0 it caused the plugin to stop executing, and when I came back in I didn't think that it was because I was executing it for the second time time.
If you do want the addin to restart when opened again, it is possible, but it is not how the built-in apps work, nor is it particularly simple.
ok, thank you very much for the answers, understood, I will adapt better to how the operating system works
No problem! Let us know if you have any more issues.
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