Skip to content

Instantly share code, notes, and snippets.

@orangefiltersky
Created March 22, 2016 00:10
Show Gist options
  • Save orangefiltersky/b016c5d191aa30e68e40 to your computer and use it in GitHub Desktop.
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
@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
@Roderick-Clemente
Copy link

thanks this was helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment