Author Topic: VA_StopCommand() is called on profile switching?  (Read 3245 times)

alterNERDtive

  • Jr. Member
  • **
  • Posts: 52
VA_StopCommand() is called on profile switching?
« on: August 20, 2020, 08:23:10 AM »
I’m happily hacking away, and all the method does in my plugin right now is run a stub that logs that it was run. I noticed that happens every time i switch profiles. So I have two questions:

  • Is that intended? The docs read like it should only be invoked when the “stop all commands” action or button is used.
  • Does that mean that the “stop all commands” action is run every time I switch profiles, or is at least supposed to be?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4757
  • RTFM
Re: VA_StopCommand() is called on profile switching?
« Reply #1 on: August 20, 2020, 08:27:23 AM »
Commands are stopped when profiles are switched, yes. That is intentional.

What happens when switching profiles isn't quite identical to stopping all commands manually using the action or other methods, as keyboard keys aren't released when doing the former.

alterNERDtive

  • Jr. Member
  • **
  • Posts: 52
Re: VA_StopCommand() is called on profile switching?
« Reply #2 on: August 20, 2020, 09:07:13 AM »
Thanks, I must just never have noticed it. Also good to know about the keyboard thing.