Author Topic: Double key presses  (Read 7959 times)

TheThingIs

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 278
    • HCS Voicepacks
Double key presses
« on: May 17, 2016, 07:02:03 AM »
Beta v1.5.8.18

I'm not sure if this is a bug or hopefully you can tell me what I'm doing wrong.

If I bind command 1 to a key, say F10
If I bind command 2 to Ctrl-F10

fine when I press F10, command 1 is run

but when I press Ctrl-F10, both command 1 and command 2 are run

also, keyboard shortcuts seem to be randomly switching themselves back on but the keyboard icon still has the no entry sign on it. Switching them on and back off again fixes the problem.
« Last Edit: May 17, 2016, 07:07:48 AM by TheThingIs »
The Singularity profile - One profile to rule them all and at HCS we bound them ;)

You see, TheThingIs, eventually you'll be allright.

BlackJack

  • Jr. Member
  • **
  • Posts: 68
Re: Double key presses
« Reply #1 on: May 17, 2016, 07:37:37 AM »
I can confirm the "shortcut switching themselves issue"

If I bind command 1 to a key, say F10
If I bind command 2 to Ctrl-F10

Have you already tried to use the "Shortcut is invoked only when all keys are released" option?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Double key presses
« Reply #2 on: May 17, 2016, 03:44:37 PM »
Quote
Have you already tried to use the "Shortcut is invoked only when all keys are released" option?

This is the proper solution.  All keys that are involved that invoke commands need to be on key up if you want to keep them separate.  Stuffed way down in the help doc where you'll never find it:

The, 'Shortcut is invoked only when all keys are released' option allows you to indicate that the macro will only execute once all keys in the combo are up.  This allows you a greater level of flexibility and control (such as having a macro that executes on key down and a separate macro that occurs only on key up).  Also, this is the way that VoiceAttack can keep hotkey shortcuts from stepping on each other when some of the keys are involved in different commands.  For instance, if there is a command that is executed by pressing,  'ALT + X', and another command that executes by pressing, 'X', setting both shortcuts to work on key release will keep both from executing at the same time.

I *may* have addressed the issue of the shortcut turning off.  I think it was happening after an edit.  I may be wrong... Too many things going on ;)

TheThingIs

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 278
    • HCS Voicepacks
Re: Double key presses
« Reply #3 on: May 18, 2016, 04:26:45 PM »
Sweet, thanks Gary. I had a feeling it was me doing it the wrong way.
The Singularity profile - One profile to rule them all and at HCS we bound them ;)

You see, TheThingIs, eventually you'll be allright.