Skip to content

Instantly share code, notes, and snippets.

@orangefiltersky
orangefiltersky / do_not_disturb_mode.bat
Created March 22, 2016 00:10
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