INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: run script on MC startup/shutdown  (Read 1621 times)

camp-echo

  • Recent member
  • *
  • Posts: 8
run script on MC startup/shutdown
« 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
Logged

defenz0r

  • Guest
Re: run script on MC startup/shutdown
« Reply #1 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.
Logged
Pages: [1]   Go Up