Global variable D in your Lua script is now a persistent Lua table: it is automatically saved to disk on profile exit and is automatically loaded from disk on profile start.You can get and set mouse coordinates in pixels: GetMousePositionInPixels(), SetMousePositionInPixels().now accept strings 'L', 'R', 'M' instead of numbers for the first 3 mouse buttons LGS standard functions PressMouseButton(), IsMouseButtonPressed().random() is an improved drop-in replacement for math.random(): better random numbers quality, no need to explicitly set the seed.Function print() now displays messages in the bottom window of the script editor, you can use it the same way as in original Lua.
LGS_script_a is a template for writing your own Lua scripts in the Logitech Gaming Software programming environment.įive additional useful features are implemented here: