INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Windows => Topic started by: camp-echo on July 03, 2016, 02:23:49 pm

Title: run script on MC startup/shutdown
Post by: camp-echo on July 03, 2016, 02:23:49 pm
I'd like to run a script to change the default printer when MC 21 starts up.  Also like to change the printer back when MC shuts down. 

Can someone point me to a reference, wiki topic or thread to get me started?


MC 21, Windows 7


Thanks
Title: Re: run script on MC startup/shutdown
Post by: defenz0r on July 03, 2016, 10:32:05 pm
Just create a small script.

https://autohotkey.com/board/topic/16864-works-switch-default-printer-upon-hotkey-trigger/

In your script, Save previous printer Name in variable

You basically use Autohotkey and set default printer, then start JRiver with autohotkey.
Do a while loop that checks every second if the process of JRiver is alive.
If this condition is false, set default printer to the previous one.

If youre not able to do that, please respond.