Open batch file when a specific program starts

NoctisLionward

Estimable
Jan 18, 2015
1
0
4,510
0
I'm a person who generally likes using speakers for most things, so I sometimes forget that I need to use headphones for certain games, I'll use Rainbow Six Siege in this case. So I have a batch file set to bring up a popup window that I want to have open whenever I start a game such as this one to remind me to use headphones. If it's at all possible, I want to use task scheduler rather than install more software that I probably won't have any other use for.
 

Robert Ban

Estimable
Jul 30, 2014
437
0
6,010
109
There is opensoftware audio router, but you need motherboard compability for that, for mine it shows front and rear output headphones/speakers https://github.com/audiorouterdev/audio-router
You need speakers at back connected headphones at front jack in playback devices should be also showing Speakers and headphones if you connect them front and back.
Or going DIY if your speaker has connection for headphones and making simple switch or buying it
like this https://www.ebay.com/itm/Audio-Switch-Board-3-5MM-Audio-Input-A-B-Two-Group-Switch-Select-Input-Output/142652242063?hash=item2136bc788f:g:STMAAOSwWWpZyPZ7
 

Ralston18

Dignified
Moderator
Should be doable open Task Scheduler and on the right side of the window is "Create Task..."

You can probably look at any existing scheduled tasks to see how they are structured and configured.

Then create your own.

The "trigger" would be the launch of Rainbow six and the "action" would be to open some window or icon with the headphone reminder.

And if you are already using batch files then take a look at PowerShell.

Should be straightforward to create a PowerShell script that first launches/opens Rainbow Six and then displays the headphone reminder.

Script would be run via a desktop shortcut icon.

First focus 1.) on getting Rainbow Six to run and then 2.) focus on the reminder. Might even play some sound versus a displayed message of some sort.

Likely very doable and you have options.

 
Thread starter Similar threads Forum Replies Date
S Apps General Discussion 4
D Apps General Discussion 2
N Apps General Discussion 1
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
G Apps General Discussion 0
SHADOWSTRIKE1 Apps General Discussion 3
S Apps General Discussion 3
R Apps General Discussion 3
P Apps General Discussion 2
M Apps General Discussion 3
ChaoticWolf Apps General Discussion 30
Z Apps General Discussion 1
C Apps General Discussion 3
K Apps General Discussion 2

Similar threads


ASK THE COMMUNITY