Author Topic: vaProxy.Profile.SwitchTo(newProfil) strange behaviour  (Read 2350 times)

Mindeufair

  • Newbie
  • *
  • Posts: 3
vaProxy.Profile.SwitchTo(newProfil) strange behaviour
« on: April 22, 2023, 11:29:49 AM »
Hello,

I'm currently writing a plugin that changes the VA profile according to the aircraft currently being flown in DCS. Almost everything seems to be working well, except that when I use the command: "vaProxy.Profile.SwitchTo(newProfil)", although the profile does immediately change, VoiceAttack becomes sort of frozen. Thus, for like 30 seconds, if I try to click on any button of VoiceAttack or to manually switch profiles, it won't work.

Do you have any idea why this is happening? Any solution?

Thank you by advance,

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4647
  • RTFM
Re: vaProxy.Profile.SwitchTo(newProfil) strange behaviour
« Reply #1 on: April 22, 2023, 08:04:18 PM »
That should be fixed in the lastest beta version (the changelog mentions inline functions, but it applies to plugins as well).


Mindeufair

  • Newbie
  • *
  • Posts: 3
Re: vaProxy.Profile.SwitchTo(newProfil) strange behaviour
« Reply #2 on: April 23, 2023, 08:53:12 AM »
Indeed, you are right, thanks!