Tastenschwemme
Teiltastatur G13 Advance Gameboard fr Spiele und mehr
------------------------------------------------------------------------
c't 17/09, Seite 62 (ghi)

M1umschalt.lua   Skript zum vorbergehenden Umschalten des M-Modus
                 von M1 auf M2
M1toggle.lua     script to temporarily toggle M state from M1 to M2
                 (English-language version)

Mwechsel.lua     M-Modus mittels einstellbarer G-Taste wechseln
                 (M1->M2, M2->M2, M3->M1)
Mcycle.lua       Cycle through M modes with an user-defined G key
                 (M1->M2, M2->M3, M3->M1)
                 (English-language version)

MwechseLCD.lua   M-Modus mittels einstellbarer G-Taste wechseln
                 (M1->M2, M2->M2, M3->M1), mit LCD-Rckmeldung
McycleLCD.lua    Cycle through M modes with an user-defined G key
                 (M1->M2, M2->M3, M3->M1), includes LCD feedback
                 (English-language version)

liesmich.txt     Deutschsprachige Dokumentation


Usage of the scripts included herein

= How to use M1toggle.lua =

In the Logitech G-Series Key Profiler, open the script editor (via the menu Edit/Script editor...).

If the script file doesn't contain any other definitions, you can simply replace the existing script with the contents of M1toggle.lua.

If there is another script present, paste everything between "function OnEvent(event, arg)" and the closing "end" into the corresponding segment of the default script. Make sure you don't overwrite existing commands.

In Lua, a line starting with -- is a comment. The comments within the script explain its usage.

Don't forget to save the script when you're done. (Ctrl+S).

IMPORTANT: For this script to work, you have to set the key you want to use to "Assign Script" for both M1 and M2 in the Key Profiler application. Make sure it's the same key set as the "g_key" value within the script.

= How to use Mcycle.lua / McycleLCD.lua =

This script consists of two parts: A function called "StateShift()" and a snippet for the existing "OnEvent(event, arg)" function.

In the Logitech G-Series Key Profiler, open the script editor (via the menu Edit/Script editor...).

If the script file doesn't contain any other definitions, you can simply replace the existing script with the contents of Mcycle.lua or McycleLCD.lua (McycleLCD.lua additionally displays the current mode on the device's LCD, if present).

If there is another script present, paste the complete StateShift function into the top of the script (starting with "function StateShift()" and ending with "end"). This block needs to be placed at the top of the file, above the line "function OnEvent(event, arg)".

Then, paste the six lines starting with "-- Set the "g_key" value..." and ending with "end" within the "function OnEvent(event, arg)" ... "end" block.

In Lua, a line starting with -- is a comment. The comments within the script explain its usage.

Don't forget to save the script (Ctrl+S).

IMPORTANT: For these scripts to work, you have to set the key you want to use to "Assign Script" for all three modes (i.e. M1, M2 and M3) in the Key  Profiler application. Make sure it's the same key set as the "g_key" value within the script.

= An Alternate Method For M Mode Cycling =

If you don't want to use the script, you can recreate its functionality by assigning the keys manually: In M1, choose one key and select "Assign Function, M2" from the popup menu. Switch to M2, choose the same key and select "Assign Function, M3" from the popup menu. Finally, switch to M3, choose the same key again and select "Assign Function, M1" from the popup menu.