F5F Stay Refreshed Software General Software starting a new program once another one begins

starting a new program once another one begins

starting a new program once another one begins

T
Taytastik
Junior Member
4
07-18-2023, 11:12 AM
#1
For instance, when I start Minecraft, Obs starts automatically.
T
Taytastik
07-18-2023, 11:12 AM #1

For instance, when I start Minecraft, Obs starts automatically.

M
MarsBar10000
Junior Member
42
07-18-2023, 05:53 PM
#2
Task Scheduler is not overly complex. I recommend setting up a basic one using Notepad or a calculator.
Powershell is meant to be a straightforward scripting language.
You can open Powershell ISE on Windows and write the script there. It would essentially involve two commands.
Start-Process C:\MyApplication.exe
Start-Process C:\MySecondApplicatio.exe
Save the resulting file with a .PS1 extension, store it somewhere, create a shortcut with a custom icon, and place it on your desktop.
Just locate the executable files for the programs and provide their full paths.
M
MarsBar10000
07-18-2023, 05:53 PM #2

Task Scheduler is not overly complex. I recommend setting up a basic one using Notepad or a calculator.
Powershell is meant to be a straightforward scripting language.
You can open Powershell ISE on Windows and write the script there. It would essentially involve two commands.
Start-Process C:\MyApplication.exe
Start-Process C:\MySecondApplicatio.exe
Save the resulting file with a .PS1 extension, store it somewhere, create a shortcut with a custom icon, and place it on your desktop.
Just locate the executable files for the programs and provide their full paths.

J
Janahan100
Member
142
07-25-2023, 12:00 PM
#3
Creating a quick link for a PowerShell script that starts both applications is quite straightforward. Scheduled tasks could also handle this through a more graphical interface.
J
Janahan100
07-25-2023, 12:00 PM #3

Creating a quick link for a PowerShell script that starts both applications is quite straightforward. Scheduled tasks could also handle this through a more graphical interface.

M
Megaol_
Member
61
07-26-2023, 05:07 AM
#4
how would i do that?
M
Megaol_
07-26-2023, 05:07 AM #4

how would i do that?

D
dniznemac
Senior Member
555
07-26-2023, 02:00 PM
#5
you can utilize AutoIt to accomplish this with minimal effort or even use AutoHotkey. a script might initiate one, then another. you might simply automate the pressing of both desired shortcuts.
AutoIt Downloads - AutoIt
the primary AutoIt package along with other associated scripting utilities is available on this site.
www.autoitscript.com
D
dniznemac
07-26-2023, 02:00 PM #5

you can utilize AutoIt to accomplish this with minimal effort or even use AutoHotkey. a script might initiate one, then another. you might simply automate the pressing of both desired shortcuts.
AutoIt Downloads - AutoIt
the primary AutoIt package along with other associated scripting utilities is available on this site.
www.autoitscript.com

H
HotKrusher
Junior Member
16
07-26-2023, 09:53 PM
#6
I noticed someone mentioning using a task scheduler and a trigger, but they're unsure about the steps involved.
H
HotKrusher
07-26-2023, 09:53 PM #6

I noticed someone mentioning using a task scheduler and a trigger, but they're unsure about the steps involved.

D
DillyDog34
Junior Member
25
07-27-2023, 09:55 PM
#7
Task Scheduler is not overly complex. I recommend setting up a basic one using Notepad or a calculator.
Powershell is meant to be a straightforward scripting language.
You can open Powershell ISE on Windows and write the script there. It would essentially involve two commands.
Start-Process C:\MyApplication.exe
Start-Process C:\MySecondApplicatio.exe
Save the resulting file with a .PS1 extension, store it somewhere, create a shortcut with a custom icon, and place it on your desktop.
Just locate the executable files for the programs and provide their full paths.
D
DillyDog34
07-27-2023, 09:55 PM #7

Task Scheduler is not overly complex. I recommend setting up a basic one using Notepad or a calculator.
Powershell is meant to be a straightforward scripting language.
You can open Powershell ISE on Windows and write the script there. It would essentially involve two commands.
Start-Process C:\MyApplication.exe
Start-Process C:\MySecondApplicatio.exe
Save the resulting file with a .PS1 extension, store it somewhere, create a shortcut with a custom icon, and place it on your desktop.
Just locate the executable files for the programs and provide their full paths.

S
stunball29
Member
52
07-28-2023, 01:57 AM
#8
I wager on Autohotkey. It can wait for another window or app to appear properly, or adjust the script to cancel it if any errors occur (requires tweaks over time).
For example: you wouldn't want Obs to start if your game doesn't launch within a certain time frame.
S
stunball29
07-28-2023, 01:57 AM #8

I wager on Autohotkey. It can wait for another window or app to appear properly, or adjust the script to cancel it if any errors occur (requires tweaks over time).
For example: you wouldn't want Obs to start if your game doesn't launch within a certain time frame.

I
icantswim
Member
112
07-29-2023, 06:15 PM
#9
It's possible to automate many tasks using PowerShell. You can run commands to check for sleep settings, search through active processes, and continue until the first program starts. If a subprocess begins, you can then wait for a timeout before launching OBS, or loop again to ensure it starts correctly. This method also allows sending additional command-line options to the programs.

Powershell can perform nearly any action a user could do manually, with added complexity if needed.

For roles in general IT or system administration involving Windows clients or servers, this skill is highly valuable.
I
icantswim
07-29-2023, 06:15 PM #9

It's possible to automate many tasks using PowerShell. You can run commands to check for sleep settings, search through active processes, and continue until the first program starts. If a subprocess begins, you can then wait for a timeout before launching OBS, or loop again to ensure it starts correctly. This method also allows sending additional command-line options to the programs.

Powershell can perform nearly any action a user could do manually, with added complexity if needed.

For roles in general IT or system administration involving Windows clients or servers, this skill is highly valuable.