Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
DawnTreader
11 discussion posts
Hello

Is there a way to have one profile control multiple programs. For instance I have a Elite:Dangerous profile but I would like to direct certain commands to iTunes while I am flying my ship around the galaxy. It would be nice if I could direct each command to one program or another.
Oct 7, 2017  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Unfortunately it's only possible to send input to the currently focused program, this is a Windows limitation :(
Oct 10, 2017  • #2
User Image
Pacheon
2 discussion posts
I've actually managed using my VoiceBot profile for multiple programs which were running simultaneously with different focus.
Settings -> Configuration -> Profile Marco Actions -> Only run macros on associated application (standard) was also checked, so no issues there.

I did the following at the "Associate this profile with a specific program:", just entered 2 different .exes as per "game.exe|tool.exe". First of all, the tool, which is not fullscreen and will be behind the game rendering window, should be pinned to your task bar (same for the game, for switching back).

By saying "activate slow mo", the tool should go either by some advanced commands (like outta focus key-combo shortcuts like CTRL+NUM1) or the simple way:
* press Windows+3 for 25ms (focuses the tool)
* aim with mouse at X and Y coord.,
* leftclick once,
* windows+4 to return back to your game

It works just fine for me. :)
Oct 10, 2017 (modified Oct 10, 2017)  • #3
User Image
DAB42
31 discussion posts
I use it with elite dangerous and start vlc playing a stream and use CMLcontrol to control vlc from one script

Need to use this macro to start vls and return focus to elite ,

Code

BFS.Speech.TextToSpeech("loading");
uint appID = BFS.Application.Start("C:\\Program Files (x86)\\VideoLAN\\VLC\\VLC.exe ", "http://5-196-72-136.caramania.net:80/classic_rock");

BFS.Window.Focus(BFS.Application.GetMainWindowByFile("C:\\Program Files\\Oculus\\Software\\Software\\frontier-developments-plc-elite-dangerous\\Products\\elite-dangerous-64\\EliteDangerous64.exe"));

BFS.VoiceBotActions.MouseClick("1");


I am sure this could be improved on as I don’t know how to code in c# , just pieced this together from online help
Jul 9, 2018  • #4
User Image
DawnTreader
11 discussion posts
Hello Dab42

Thank you. Thank you, Thank you.

That was exactly what I was looking for.

This tells iTunes to play the next song in the playlist:

Code

BFS.Window.Focus(BFS.Application.GetMainWindowByFile("C:\\Program Files\\iTunes\\iTunes.exe"));
        BFS.Input.SendKeys("^({VK_39})");
        BFS.Window.Focus(BFS.Application.GetMainWindowByFile("G:\\EliteDangerous\\steamapps\\common\\Elite Dangerous\\Products\\elite-dangerous-64\\EliteDangerous64.exe"));

        BFS.VoiceBotActions.MouseClick("1");


And a variation for the controlling the volume:

Code

BFS.Window.Focus(BFS.Application.GetMainWindowByFile("C:\\Program Files\\iTunes\\iTunes.exe"));
        BFS.Input.SendKeys("^({VK_40})");
        BFS.Input.SendKeys("^({VK_40})");
        BFS.Input.SendKeys("^({VK_40})");
        BFS.Input.SendKeys("^({VK_40})");
        BFS.Input.SendKeys("^({VK_40})");
        BFS.Window.Focus(BFS.Application.GetMainWindowByFile("G:\\EliteDangerous\\steamapps\\common\\Elite Dangerous\\Products\\elite-dangerous-64\\EliteDangerous64.exe"));

        BFS.VoiceBotActions.MouseClick("1");


Although I probably could tell it to loop to get the 5 increments to volume down...
Jul 10, 2018  • #5
User Image
DAB42
31 discussion posts
I use command line media to control volume, track , pause and play with no need to change focus, works with Itunes, Spotify, Windows Media Player and vlc you get it from

https://github.com/InvalidCastEx/CommandLineMedia/blob/master/docs/Documentation.md

Next track

BFS.Application.Start("C:\\Program Files (x86)\\VideoLAN\\VLC\\CLMControl.exe ", " vlc -nt");

Volume up
BFS.Application.Start("C:\\Program Files (x86)\\VideoLAN\\VLC\\CLMControl.exe ", " vlc -vu -vu ");
Jul 10, 2018  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)