This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Do Not Disturb Mode for Gaming/Application | |
echo ------------------------------------------ | |
echo. | |
echo Invoking WebRequest to IFTTT for Launch Recipe | |
powershell -Command "& {Invoke-WebRequest https://maker.ifttt.com/trigger/{event_name}/with/key/{super_secret_key} >$null}" | |
echo Success | |
echo Launching Application... (Please do not close this Command Prompt Window) | |
Start /wait "" "C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\game\bin\win64\dota2.exe" | |
echo Invoking WebRequest to IFTTT for Close Recipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start-Process notepad.exe | |
Invoke-WebRequest https://maker.ifttt.com/trigger/testing_powershell/with/key/super_secret_key |