Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: pianoman on August 17, 2011, 11:24:28 pm

Title: Getting info from the local calc with Lua
Post 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!
Title: Re: Getting info from the local calc with Lua
Post by: Jim Bauwens on August 18, 2011, 05:31:36 am
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.
Title: Re: Getting info from the local calc with Lua
Post by: pianoman on August 18, 2011, 12:35:22 pm
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 :)
Title: Re: Getting info from the local calc with Lua
Post by: Adriweb on August 18, 2011, 02:32:25 pm
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.