starting a new program once another one begins
starting a new program once another one begins
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.
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.
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
I noticed someone mentioning using a task scheduler and a trigger, but they're unsure about the steps involved.
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.
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.
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.