VoiceAttack

General => How Do I? => Topic started by: D.D.Harriman on June 03, 2017, 09:21:42 AM

Title: Mass Key Release
Post by: D.D.Harriman 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.
Title: Re: Mass Key Release
Post by: Pfeil 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?
Title: Re: Mass Key Release
Post by: D.D.Harriman 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.

Title: Re: Mass Key Release
Post by: Pfeil 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?
Title: Re: Mass Key Release
Post by: D.D.Harriman 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??
Title: Re: Mass Key Release
Post by: D.D.Harriman 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
Title: Re: Mass Key Release
Post by: Pfeil 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.
Title: Re: Mass Key Release
Post by: Gary 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).
Title: Re: Mass Key Release
Post by: D.D.Harriman on June 03, 2017, 02:18:43 PM
Ok, Updated to latest release and the problem is solved..

Thanks.
Title: Re: Mass Key Release
Post by: Gary on June 03, 2017, 02:35:49 PM
Glad that works!  Pfeil solves all.
Title: Re: Mass Key Release
Post by: D.D.Harriman 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.