Reply
Logi Nu
Cododoc
Posts: 1
Registered: ‎02-02-2011
0
Accepted Solution

Complete list of Lua functions

Hello!

I have long been using G13 and wrote a lot of useful scripts. I used the documentation provided with the keyboard.
I have a new task that requires more language features. I started reading the forum and found a functions that are not mentioned in the documentation but are used in skriptak, for example, assert() and loadstring().
Where can I find a complete list of functions available for scripting in the G13? 
Is there any possibility to call the library (dll) to determine the type of mouse cursor, for example, or find image on the screen?

 

kgober
Posts: 3,747
Kudos: 436
Solutions: 285
Registered: ‎05-28-2009

Re: Complete list of Lua functions

the functions available to you in Lua fall into two categories:

 

1. functions added to the Lua engine by Logitech.  these are documented in the Scripting API that can be accessed via the script editor Help menu.

 

2. functions that came with the Lua engine (i.e. built-in functions not written by Logitech).  these are documented in the Lua Online Reference that can be accessed via the script editor Help menu.

 

all of the basic built-in functions described in the Lua Online Reference are available in Logitech's implementation, with the exception of the following packages: file.*, io.*, os.*, package.* and possibly debug.*.  I know for sure that debug.traceback() will crash the software, but other debug functions may work.

 

there are no functions built into Lua that give you direct access to Windows DLL exports, and Logitech doesn't provide any wrapper functions for that either.  any such code wouldn't work on the Mac version of the software anyway.

 

-ken

________________________________
I do not work for Logitech. I'm just a user.
Logi Nu
stevenguy
Posts: 2
Registered: ‎02-11-2011
0

Re: Complete list of Lua functions

you may find info here www.g13logitech.com

Logi Browser
sandaili
Posts: 13
Registered: ‎06-03-2010
0

Re: Complete list of Lua functions

Your link is not helpful at all, it just brings up a site with poorly worded reviews.

Logi Browser
RoloX2
Posts: 18
Registered: ‎02-11-2011
0

Re: Complete list of Lua functions

haha ya that site is pretty bad