Created
March 22, 2016 00:10
-
-
Save orangefiltersky/b016c5d191aa30e68e40 to your computer and use it in GitHub Desktop.
Windows Batch File to pair with IFTTT and mute your phone while running an application
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 | |
powershell -Command "& {Invoke-WebRequest https://maker.ifttt.com/trigger/{event_name}/with/key/{super_secret_key} >$null}" | |
echo Success | |
echo Closing... | |
timeout /t 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks this was helpful