Author Topic: Mass Key Release  (Read 5659 times)

D.D.Harriman

  • Guest
Mass Key Release
« on: June 03, 2017, 09:21:42 AM »
As part of making a command to "STOP ALL RUNNING COMMANDS" I would also like to release all currently pressed.

How would I do that.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Mass Key Release
« Reply #1 on: June 03, 2017, 10:39:02 AM »
If you execute the "Make VoiceAttack Stop Processing All Commands" action, all pressed keys should automatically be released.

Is there a key not releasing when you execute this action?

D.D.Harriman

  • Guest
Re: Mass Key Release
« Reply #2 on: June 03, 2017, 01:02:52 PM »
If all the keys were releasing I would not have asked the question.

I am playing EDH and have evasive action macros in which I use "PRESS KEY" to start an action I want to be continuous  while several other timed key press then key release actions happen that give about a total 15 second delay and finish the macro with a "RELEASE KEY" for that first key.

If I use "Make VoiceAttack Stop Processing All Commands" in the middle of this macro, the first key stays down.


Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Mass Key Release
« Reply #3 on: June 03, 2017, 01:13:09 PM »
Can you post the contents of this command? Have you checked whether the keys are released if the command is forcibly stopped when not running the game?

D.D.Harriman

  • Guest
Re: Mass Key Release
« Reply #4 on: June 03, 2017, 01:23:57 PM »
" Have you checked whether the keys are released if the command is forcibly stopped when not running the game?"

Humnn. How would I run it so I could stop it outside of the game??

D.D.Harriman

  • Guest
Re: Mass Key Release
« Reply #5 on: June 03, 2017, 01:28:10 PM »
Set decimal [Dance Time] value as random from 0.4 to 0.8
Press down NumPad Add key
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Press down NumPad 7 key
Pause a variable number of seconds [dance time]
Release NumPad 7 key
Press down NumPad 1 key
Pause a variable number of seconds [Dance Time]
Release NumPad 1 key
Pause 1.5 seconds
Release NumPad Add key

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Mass Key Release
« Reply #6 on: June 03, 2017, 01:50:13 PM »
How would I run it so I could stop it outside of the game??
Open notepad and run the command, so the output is sent to notepad.

After you stop the command, run a command containing the following:
Code: [Select]
Write '[Blue] NUM1:{STATE_KEYSTATE:NUM1} NUM7:{STATE_KEYSTATE:NUM7} NUM+:{STATE_KEYSTATE:NUM+}' to logIf there's a "1" after any of those, the corresponding key is still pressed.


I replicated and tested your command, running it while sending the output to notepad doesn't leave any keys pressed after forcibly stopping the command.
I don't have Elite:Dangerous to test with, but it's possible the game is either interfering with, or not recognizing the key release.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2826
Re: Mass Key Release
« Reply #7 on: June 03, 2017, 01:57:57 PM »
What version of VA are you running, DD?

Pfeil reminded me that releasing ALL keys (not just modifiier keys) was put in v1.6.2 (relatively recent).

D.D.Harriman

  • Guest
Re: Mass Key Release
« Reply #8 on: June 03, 2017, 02:18:43 PM »
Ok, Updated to latest release and the problem is solved..

Thanks.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2826
Re: Mass Key Release
« Reply #9 on: June 03, 2017, 02:35:49 PM »
Glad that works!  Pfeil solves all.

D.D.Harriman

  • Guest
Re: Mass Key Release
« Reply #10 on: June 03, 2017, 03:03:20 PM »
I was really beginning to think the game was the problem. I had read the manual and it looked like the STOP PROCESSING ALL COMMANDS should also RELEASE ALL KEYS.

I had bought VA in January but didn't really start trying to work with it until last month, starting with simple things that only need at most a second to run and working up to things like I posted. Recognized I would need a kill command to get out of AUTOPILOT and wrote it and it wasn't working..

Now I can get real complex and long.