Jump to content
Corsair Community

Is there a way to toggle a key press?


x4vn

Recommended Posts

I'm trying to construct a macro such that when I press and release G6 it sends the "press key 6" event, the next time I press and release G6 it sends the "release key 6" event.

 

An example of a similar macro on a different un-named device using lua script works like this:

if event == "MOUSE_BUTTON_PRESSED" and arg == 4 then

stateA = not stateA

if stateA then

PressKey("0")

else

ReleaseKey("0")

end

end

 

Cheers.

Link to comment
Share on other sites

You might be able to use AutoHotkey to do something like this, but I've never done it so I don't know the proper steps on how to setup it.

 

Or you can also always write a program using the provided SDK, but that requires some programming skill.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...