Using Cortana to Play Music in VR?

Does anyone do this? How do you stop Cortana from switching your active window from Elite to whatever program it is using to play music?
For example I will ask Cortana to play a local radio station. Cortana then opens up TuneIn radio to play but I can no longer control my ship because TuneIn radio is now the active window on my desktop. I have to go back on my desktop and click the mirrored Elite window.
 
Likely best to knock up a quick 'keep focus' script using AutoHotKey. This could run in the background keeping focus on the Elite window if lost.

Here, I did it for you :D

Loop, ;Repeat until app is quit
{
IfWinNotActive ,Elite - Dangerous (CLIENT) ;Checks to see if the Elite Dangerous Window is not active
WinActivate ,Elite - Dangerous (CLIENT) ;Activates Elite Dangerous Window if above check was true
Sleep 1500 ;Set pause before next Window check. Default 1.5 seconds (Set this to whatever key you like)
}
^a:: ;Press CTRL+A to Quit (Set this to whatever key you like)
Exitapp

You'll need to download and install AutoHotKey and then just save the above as a text file in notepad and rename the file to EliteFocus.ahk (or anything you like) - you should then be able to complie it using the 'convert .ahk to .exe' program (found under AutoHotKey in the Start Menu) afterwhich you should be able to delete AutoHotKey from your system and use your .exe to keep focus on the Elite window. CTRL+A would quit the app - you can change the pause between how often the script checks for Elite window being active (so it reactives quicker) by changing the 'sleep 1500' line to another value - half a second checks would be 'sleep 500' for example.
 
Last edited:
Back
Top Bottom