π
<-
Chat plein-écran
[^]

Launch scratchpad from an ndless app

C, C++, ASM...

Launch scratchpad from an ndless app

Message non lude TheStaticTurtle » 01 Mai 2020, 14:22

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?
Avatar de l’utilisateur
TheStaticTurtle
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 8%
 
Messages: 16
Inscription: 01 Oct 2016, 11:47
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 1ere année DUT Informatique
GitHub: TurtleForGaming

Re: Launch scratchpad from an ndless app

Message non lude critor » 01 Mai 2020, 14:37

Levak designed a PoC to call the scratchpad from an Ndless program in 2012 :
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).
Image
Avatar de l’utilisateur
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Prochain niv.: 42.4%
 
Messages: 41498
Images: 14640
Inscription: 25 Oct 2008, 00:00
Localisation: Montpellier
Genre: Homme
Calculatrice(s):
MyCalcs profile
YouTube: critor3000
Twitter/X: critor2000
GitHub: critor

Re: Launch scratchpad from an ndless app

Message non lude Vogtinator » 01 Mai 2020, 15:13

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.
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Launch scratchpad from an ndless app

Message non lude TheStaticTurtle » 01 Mai 2020, 18:32

Ok, that will be a fun side-project :'(
Is there a way to launch another ndless app ?
Avatar de l’utilisateur
TheStaticTurtle
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 8%
 
Messages: 16
Inscription: 01 Oct 2016, 11:47
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 1ere année DUT Informatique
GitHub: TurtleForGaming

Re: Launch scratchpad from an ndless app

Message non lude Vogtinator » 01 Mai 2020, 18:49

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...
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile


Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 26 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1372 utilisateurs:
>1329 invités
>37 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)