I created some executables using AutoHotkey which can be scheduled using Windows Task Scheduler to execute some basic tasks.
Take me to those tools!
AMtools vMix restarter.exeUsed to (re)start or quit vMix, for unmanned vMix systems for instance.
CMD arguments:
true/shutdown/norestart OR false - Disable restart. When set to 'true' or 'shutdown' or 'norestart' vMix will only quit and not restart.
path to .vMix script - This script will be started after vMix shut down. If the user entered 'last' or nothing at all, it will open 'last.vmix'.
true/silent OR false - Silent mode. No message boxes will be shown when set to 'true' or 'silent'.
Examples:
"AMtools vMix restarter.exe" false "C:\Data\template.vmix" silent
"AMtools vMix restarter.exe" norestart
AMtools vMix error scanner.exeWill check for 'vMix Error' windows and automatically close them.
Also 'Input select', 'Recording settings', and 'Streaming settings' will be closed. To temporarily pause the script while running, right click the gear icon in the system tray and 'Pause script'.
CMD arguments:
true/loop OR false - Loop. When set to 'true' or 'loop' the script will run infinite. Otherwise the scan will run only once.
delay in seconds - When in loop mode, specify how many seconds to wait between scans. Minimum 1, maximum 300, default is 10.
true/autoexit OR false - Autoexit. When set to 'true' or 'autoexit' the scanner will stop as soon as vMix is shut down.
true/stats OR false - Allow statistics window. When set to 'true' or 'stats' the statistics window will not be closed.
true/silent OR false - Silent mode. No message boxes will be shown when set to 'true' or 'silent'.
Examples:
"AMtools vMix error scanner.exe" loop 5 autoexit stats false
"AMtools vMix error scanner.exe" true 10
AMtools vMix API sender.exeSend API commands to vMix. For all available commands see this page;
vMix API HelpCMD arguments:
function - The API command to send to vMix.
server - IP address of the system running vMix. Default when omitted is '127.0.0.1'.
port - The port the vMix API is set to. Default when omitted is '8088'.
true/silent/noresponse OR false - Silent mode. No message boxes will be shown when set to 'true', 'noresponse' or 'silent'.
username - If the API is protected, enter the username.
password - If the API is protected, enter the password.
Examples:
"AMtools vMix API sender.exe" "AudioAutoOn&Input=5" 192.168.0.123 8088 noresponse Admin 1234
"AMtools vMix API sender.exe" "StartStreaming"
AMtools folder cleanup.exeUsed to cleanup folder or individual files, can be used for logging folders of capture folders for example. Usage at own risk.
CMD arguments:
folder/file - Path to the folder or file.
days to keep - Specify how many days files should be kept. Based on 'date modified'. '0' will delete all. Default when omitted is '14'. Only for directory mode.
true/recursive OR false - Recursive mode. When set to 'true' or 'recursive' also files in subfolders will be scanned, default when omitted is 'false'. Only for directory mode.
true/recycle OR false - Recycle mode. When set to 'true' or 'recycle' files will be sent to the trash first when possible. Default when omitted is 'false'.
true/silent OR false - Silent mode. No message boxes will be shown when set to 'true' or 'silent'.
true/disablelogging OR false - Disable logging. When not set to 'true' or 'disablelogging' a logfile will be kept next to the scipt executable.
Examples:
"AMtools folder cleanup.exe" "C:\Data\vMix Captures\recorder 1" 4 recursive false false false
"AMtools folder cleanup.exe" "C:\Data\vMix logging" 2 true
"AMtools folder cleanup.exe" "C:\Data\logging.txt"
AMtool CasparCG restarter.exeUsed to (re)start or quit CasparCG Server and Scanner.
CMD arguments:
folder - Path to the CasparCG executables. Can be omitted if placed within the CasparCG folder itself.
true/shutdown/norestart OR false - Disable restart. When set to 'true' or 'shutdown' or 'norestart' CasparCG will only quit and not restart.
casparcg executable - Specify other name than casparcg.exe for the executable.
scanner executable - Specify other name than scanner.exe for the executable.
true/silent OR false - Silent mode. No message boxes will be shown when set to 'true' or 'silent'.
Examples:
"AMtools CasparCG restarter.exe" "C:\Apps\CasparCG" false casparcgcustom.exe scanner.exe silent
"AMtools CasparCG restarter.exe" "C:\Apps\CasparCG" true
AMtools general restarter.exeUse to (re)start general apps.
CMD arguments:
path - Full path to the app executable to be (re)started.
true/shutdown/norestart OR false - Disable restart. When set to 'true' or 'shutdown' or 'norestart' the app will only quit and not restart.
1/2/3 - Shutdown method. 1 = using ALT+F4 on process window, 2 = WinClose command, 3 = force quit. Default when omitted is '1'. If method 1 or 2 fail, 3 will be triggerd automatically.
true/false - Confirm with 'enter' after shutdown command. When set to 'true' an enter keypress will be send 2 seconds after the shutdown command. Only for shutdown method 1 and 2.
path - To open another file during restart than the executable itself.
true/silent OR false - Silent mode. No message boxes will be shown when set to 'true' or 'silent'.
Examples:
"AMtools general restarter.exe" "C:\Windows\system32\notepad.exe" false 2 false "C:\Apps\text.txt" silent
"AMtools general restarter.exe" "D:\Data\Apps\VMixBridgeV1.2.exe"
AMtools volume monitor.exeSets the volume of the default Windows playback device to a specific volume.
CMD arguments:
volume - Volume level to set from 0 to 100. Default when omitted is 100.
true/loop OR false - Loop. When set to 'true' or 'loop' the script will run infinite with a delay of 0.5 seconds between runs.
Examples:
"AMtools volume monitor.exe" 75 loop
"AMtools volume monitor.exe"
notes:- All message boxes do have an automatic time-out.
- Some virusscanners will see them as a thread, you may have to whitelist the tools.
- If you want the original AutoHotkey scripts, please contact me.
- Make sure you select 'Configure for: Windows 7, Windows Server 2008 R2' in the settings for a task in Windows Task Scheduler.