Omnimaga
Calculator Community => TI Calculators => Lua => Topic started by: pianoman on August 17, 2011, 11:24:28 pm
-
Is there a way to get data such as the battey status, language, serial number, etc from the local calculator using Lua?
Its not for a particular game or program, I'm just curious.
Thank you very much!
-
You can get the current locale using [lua]locale.name[/lua]. It will return the locale in a two letter language code :)
As for the battery info and the serial number, I don't think you can.
-
You can get the current locale using [lua]locale.name[/lua]. It will return the locale in a two letter language code :)
As for the battery info and the serial number, I don't think you can.
Ok, thanks :)
-
Critor made a "language-aware library" in his DiagrammeNZ program in order to switch the whole program's language when the user changes it, or just simply have the program in the user's language instead of the default french one.