Author Topic: Press and Hold for Variable Key Presses  (Read 3653 times)

RedMonster

  • Guest
Press and Hold for Variable Key Presses
« on: April 12, 2017, 09:37:59 PM »
Hey folks,

I'm trying to redo my keybindings using the variable key presses function, but I've run into a slight problem.

With certain keybinds (as in star citizen), holding down a key might do something entirely different than just pressing and releasing. For example, pressing "G" cycles your countermeasures, but Holding "G" launches them. It seems that the variable key press mode doesn't have a way to do that currently.

Example code:

    Set Text [test_key] to 'e'
    Press variable key(s) [test_key] and hold for 5 seconds and release

When I execute this command, it doesn't hold the Q key like I would expect, and I get the result of simply pressing the key once, despite having the command press and hold for 5 seconds.

This could be pushing the variable key presses function beyond its limits. Any thoughts/suggestions?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2831
Re: Press and Hold for Variable Key Presses
« Reply #1 on: April 12, 2017, 10:15:04 PM »
Quote
Set Text [test_key] to 'e'
    Press variable key(s) [test_key] and hold for 5 seconds and release

When I execute this command, it doesn't hold the Q key like I would expect

I wouldn't expect it to push, 'Q' either ;)


For a sanity check, I am able to have the Q key pressed down, held for five seconds and then released:

Set Text [keyPress] to 'Q'
Press variable key(s) [keyPress] and hold for 5 seconds and release

The variable key press functionality uses the same code as the normal key press, except for getting the key to use.  This is tested against WoW.  Also, make sure you don't have some other macro running that may be interfering (been known to happen).


RedMonster

  • Guest
Re: Press and Hold for Variable Key Presses
« Reply #2 on: April 12, 2017, 11:28:09 PM »
I wouldn't expect it to push, 'Q' either ;)

Set Text [keyPress] to 'Q'
Press variable key(s) [keyPress] and hold for 5 seconds and release

The variable key press functionality uses the same code as the normal key press, except for getting the key to use.  This is tested against WoW.  Also, make sure you don't have some other macro running that may be interfering (been known to happen).

Derp.. damn typos! It looks like it was only giving me one instance of whatever letter I was trying to press, however, I just did an in-game test and it looks to be functioning normally.

Thanks for the quick response Gary!