Hi,
Is it possible to launch the scratchpad from ndless without exiting the app? A bit like theses popups/ https://hackspire.org/index.php/Libndls#UI. Or a least launch another tns from the app?
Launch scratchpad from an ndless app
Voir le premier message non lu • 5 messages
• Page 1 sur 1
-
TheStaticTurtle
Niveau 4: MC (Membre Confirmé)- Messages: 16
- Inscription: 01 Oct 2016, 11:47
- Genre:
- Calculatrice(s):→ MyCalcs profile
- Classe: 1ere année DUT Informatique
- GitHub: TurtleForGaming
Re: Launch scratchpad from an ndless app
Levak designed a PoC to call the scratchpad from an Ndless program in 2012 :
Those are syscall adresses specific to the TI-Nspire CX CAS 3.1 OS.
You'll need to find equivalent syscalls for more recent versions, if they exist.
I remember there were several issues with calling the scratchpad from an Ndless program, especially with dialog boxes then called from this scratchpad (not shown or keys not responding in the dialog box context if I remember well).
- Code: Tout sélectionner
((void(*)(void))0x1022FBE0)();
void * t = ((void * (*)(void))0x10007368)();
((void(*)(void *))0x1002EA20)(t);
Those are syscall adresses specific to the TI-Nspire CX CAS 3.1 OS.
You'll need to find equivalent syscalls for more recent versions, if they exist.
I remember there were several issues with calling the scratchpad from an Ndless program, especially with dialog boxes then called from this scratchpad (not shown or keys not responding in the dialog box context if I remember well).
-
critorAdmin
Niveau 19: CU (Créateur Universel)- Messages: 41498
- Images: 14640
- Inscription: 25 Oct 2008, 00:00
- Localisation: Montpellier
- Genre:
- Calculatrice(s):→ MyCalcs profile
- YouTube: critor3000
- Twitter/X: critor2000
- GitHub: critor
Re: Launch scratchpad from an ndless app
IIRC the document opening is an event handled in the same task ndless applications run in, so it would be required to return from the application to let event processing happen again.
You could make your program resident and install a hook on closing the scratchpad to jump back into the program again.
Not going to be easy though and you'll have to figure out those syscalls yourself.
You could make your program resident and install a hook on closing the scratchpad to jump back into the program again.
Not going to be easy though and you'll have to figure out those syscalls yourself.
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Messages: 217
- Inscription: 29 Mar 2014, 15:55
- Genre:
- Calculatrice(s):→ MyCalcs profile
Re: Launch scratchpad from an ndless app
Ok, that will be a fun side-project
Is there a way to launch another ndless app ?
Is there a way to launch another ndless app ?
-
TheStaticTurtle
Niveau 4: MC (Membre Confirmé)- Messages: 16
- Inscription: 01 Oct 2016, 11:47
- Genre:
- Calculatrice(s):→ MyCalcs profile
- Classe: 1ere année DUT Informatique
- GitHub: TurtleForGaming
Re: Launch scratchpad from an ndless app
Yes, nl_exec: https://hackspire.org/index.php?title=N ... _functions
Note that it uses one of the two available layers of syscall nesting, so not all programs might work correctly...
Note that it uses one of the two available layers of syscall nesting, so not all programs might work correctly...
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Messages: 217
- Inscription: 29 Mar 2014, 15:55
- Genre:
- Calculatrice(s):→ MyCalcs profile
5 messages
• Page 1 sur 1
Retourner vers Native: Ndless, Linux, ...
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 26 invités