Author Topic: Run command only when specified keys are pressed  (Read 2229 times)

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Run command only when specified keys are pressed
« on: April 10, 2018, 11:02:58 AM »
Say I have 2 commands that are executed via key press. Command1 is invoked by LCtrl+F5 and Command2 is invoked by LShift+LCtrl+F5. If I then press LShift+LCtrl+F5 both commands will execute.

It would be nice to have an additional option (checkbox?) to specify that a command should NOT run if additional keys besides the invoking keys are being pressed (i.e, run a command only when the exactly specified keys are pressed). This would ensure that LShift+LCtrl+F5 only executed Command2.

Thanks! :)

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Run command only when specified keys are pressed
« Reply #1 on: April 10, 2018, 11:59:07 AM »
You'll want to look at the condition builder and have a look at the device state tab.  From there you can check the state of keyboard, mouse and joystick button states.  There should be enough in there to do what you are needing.

iceblast

  • Sr. Member
  • ****
  • Posts: 374
Re: Run command only when specified keys are pressed
« Reply #2 on: April 10, 2018, 01:43:03 PM »
I had the same problem. I use the Logitech g600 20 button mouse. I tricked the logitech software to take F13 - F24 keys. Now I don't conflict anymore. I really love this mouse. :)