Reply
Logi Nu
Blackx
Posts: 3
Registered: ‎12-30-2011
0
Accepted Solution

G13 - switching modes - bug & feature request

Hi, I am using the G13 and Gaming Software 8.20.74 (on Windows 7, 64 bit). There is an ability to map a key to Function -> M1 (or M2 or M3), which then changes the keyboard mode from the current one to the selected one. However:

 

1) There is a bug - it changes the mode properly and LCD changes its color, but the original physical M... button is still lit and the new mode button is still dark ... as if the original mode was active.

 

2) It would be absolutely great, if it could work as a Shift key on keyboard, i.e. all the buttons would work as in the new mode while the switching key is held and the keyboard would return to the original mode after the user release this key. I am using the keyboard for retouching photos in Adobe Lightroom and already has all of the keys mapped and turning to another mode just to press a shortcut is impractical.

 

Thanks if you read through this :smileyhappy:

Vit

kgober
Posts: 3,761
Kudos: 437
Solutions: 287
Registered: ‎05-28-2009
0

Re: G13 - switching modes - bug & feature request

[ Edited ]

I have no comment on (1).  since I'm not using LGS myself I can't confirm that this is indeed a bug.  I assume it is.

 

for (2) I think this can be done via Lua scripting.  something like the following:

function OnEvent(event, arg, family)
  if event == "M_RELEASED" and arg == 2 and family == "lhc" then
    SetMKeyState(1, "lhc")
  elseif event == "M_RELEASED" and arg == 3 and family == "lhc" then
    SetMKeyState(1, "lhc")
  end
end

 the code above makes M2 and M3 both work as mode-shift keys (when you release them it goes back to M1).  untested, but should work ok.

 

-ken

________________________________
I do not work for Logitech. I'm just a user.
Logi Nu
Blackx
Posts: 3
Registered: ‎12-30-2011
0

Re: G13 - switching modes - bug & feature request

Fantastic! I wasn't avare that I could use scripts :smileyhappy: Your solution works perfectly.

 

This solves my feature request, but (1) is still pending, so I guess I shouldn't end this thread yet (accept it as a solution)... correct me if I am wrong.

kgober
Posts: 3,761
Kudos: 437
Solutions: 287
Registered: ‎05-28-2009
0

Re: G13 - switching modes - bug & feature request

if you would like a solution for (1), I suggest using a different version of the software.

 

you can download other versions here:
ftp://ftp.logitech.com/pub/techsupport/gaming/

 

I use LGPS v3.06 and everything works fine for me, but if you switch to LGPS you will probably have to redo your G-key bindings again.  you can upgrade profiles from LGPS v3.x -> LGS v8.x, but not the reverse.

 

-ken

________________________________
I do not work for Logitech. I'm just a user.
Logi Nu
Blackx
Posts: 3
Registered: ‎12-30-2011
0

Re: G13 - switching modes - bug & feature request

Ok, the bug is not that severe, so will continue using what I have and mark your post as a solution.

 

Just for the record, for anyone else who would try to solve the (2): Here is my final script, that uses key G24 (under the joystick) as a something-like-shift key. From M1 or M2 mode it is able to switch into M3 and then back to the original one on key release:

 

function OnEvent(event, arg, family)
  if family ~= "lhc" then
    return
  end


  if arg == 24 then
    if event == "G_PRESSED" then
      -- remember the old mode
      oldMode = GetMKeyState(family);
      SetMKeyState(3, family);
    end
    if event == "G_RELEASED" then
      SetMKeyState(oldMode, family);
    end
  end

end