I captured some special keys (G-Keys) from my Logitech keyboard with AHKHID.
Is it now possible to trigger these keys like (fake code):
Code: Select all
SendInput, {G-Key12}
Code: Select all
G-Key12::
SendInput, {SPACE}
Code: Select all
SendInput, {G-Key12}
Code: Select all
G-Key12::
SendInput, {SPACE}
Code: Select all
------------->>> COPY FROM HERE
ClearLog()
ClearLCD()
----------------------------------------- SETUP -----------------------------------------------------------------------------------------------------------
gL = { path = [[C:\G-Max\]] } -- Edit your location of the G-AddOn Folder
dofile(gL.path .. "gL.lua")
-- Add Setup-Features here --->>>
EnableModLocKeyEvents()
----------------------------------------- /SETUP -----------------------------------------------------------------------------------------------------------
function gL.KeySetup() -------------------------------------------------------------------------- KEY-ASSIGNMENTS
--EnablePrimaryMouseButtonEvents(true)
kb.rctrl.m0 = MSwitch
end ---------------------------------------------------------------------------------------------------- /KEY-ASSIGNMENTS
-- User Functions
function MSwitch(event,arg,family,mstate)
if event == "pressed" then
SetMKeyState(2, "kb")
elseif event == "released" then
SetMKeyState(1, "kb")
end
end