Author Topic: Preventing commands outside game (elite dangerous)  (Read 2002 times)

vaguexrdx

  • Newbie
  • *
  • Posts: 33
Preventing commands outside game (elite dangerous)
« on: August 27, 2020, 03:30:41 PM »
So I have 4 commands shift + w,a,s,d ... each their own.  I'm not willing to use another key then shift it's just ideal.  I play borderless mode and if I go to another monitor while my game is running if say I try type capital W A S D in an sentance it pulls my mouse and everything back into the game and it's just really inconveinent.  Anyone know if there is a way to prevent this ?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Preventing commands outside game (elite dangerous)
« Reply #1 on: August 27, 2020, 03:42:52 PM »
If you're only looking to prevent those four specific commands you mentioned from executing when the game window doesn't have focus, you can check the "Stop command if target window focus is lost" option for those commands, which will immediately stop the command (and prevent any actions in it from executing) if the target window is not the active window (and will not attempt to switch to the target window).


Otherwise, you could enable the "Enable Auto Profile Switching" option on the "General" tab of the VoiceAttack options window, and have VoiceAttack switch to another (blank, without commands that trigger off keyboard shortcuts) profile when the game does not have focus (Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf in your default PDF viewer and check the "'Enable profile switching for the following windows'" subsection of the "Profile Options General Tab" subsection of the "Profile and Profile Options Screens" section for more information).

If you want to disable keyboard shortcuts without switching profiles, you'd need a command that runs a loop checking whether the target window still has focus, and disables keyboard shortcuts if not, then re-enables them when focus is regained.

vaguexrdx

  • Newbie
  • *
  • Posts: 33
Re: Preventing commands outside game (elite dangerous)
« Reply #2 on: August 27, 2020, 03:54:45 PM »
I think the first option will work I will test thanks !