Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: nemo on August 06, 2010, 08:07:44 am

Title: Input Routine
Post by: nemo on August 06, 2010, 08:07:44 am
I remember i put a request in the features wishlist topic for a command in axe that's equivalent to Input in basic. I got a few responses saying there were already existing routines that do this. could someone post one of the existing routines in axe?
Title: Re: Input Routine
Post by: LordConiupiter on August 06, 2010, 09:06:40 am
here ya go!
it's in grayscale, and every key has a letter, in every mode (normal, alpha, lowercase)
every letter is thought to be 4 pixels broad, so not everything works the way it should work, and I'm still working on it.
Title: Re: Input Routine
Post by: meishe91 on August 06, 2010, 09:19:32 am
All the routines, I think, are in the Axe Parser thread or the Routines thread. They're also old so any you found you might have to rework them so they work with the new versions of Axe Parser.
Title: Re: Input Routine
Post by: DJ Omnimaga on August 06, 2010, 09:44:09 am
All the routines, I think, are in the Axe Parser thread or the Routines thread. They're also old so any you found you might have to rework them so they work with the new versions of Axe Parser.
The thread is several pages long, though ;D
Title: Re: Input Routine
Post by: nemo on August 06, 2010, 12:27:02 pm
since i only needed mine for numbers, i made my own input routine. it wasn't as hard as i had expected.

Code: [Select]
.THEGAME
0→N
Pause 500                                  .Not needed if ran as a subroutine
Repeat getKey(9) or getKey(54)
ReturnIf getKey→K=15
For(Z,0,9
If {[212223241A1B1C121314]+Z}=K            .getKey data in hexadecimal
Output(0,0,10*N+{"0147258369"+Z}-48→N►Dec  .Create new number and display it
End:End
If K=56                                    .Backspace functionality using [Del]
Output(0,0,N/10→N►Dec
End
End
Title: Re: Input Routine
Post by: meishe91 on August 06, 2010, 12:31:00 pm
All the routines, I think, are in the Axe Parser thread or the Routines thread. They're also old so any you found you might have to rework them so they work with the new versions of Axe Parser.
The thread is several pages long, though ;D

Nah, not to bad though ;)

And that's cool. Glad you got it figured out :)