Launch Your Favorite Game Anytime You Connect To Your Network!

IFTTT Recipe + Python Script + Dropbox = Launch your favorite game anytime you connect to your home network with your android phone.

IFTTT Recipe + Python Script + Dropbox =

Launch your favorite game anytime you connect to your home network with your android phone.

Ever been so excited from when you leave work or school to get home and play your favorite computer game ASAP? I know I have and when I get home I want my game opened NOW! Well today I bring to you a recipe I came up with over the holiday break!


This recipe monitors your phone or tablet device to see if it is connected or disconnected from your home network.


  • A Smart Device such as Android or IOS
  • IFTTT Account with App installed on your Android or IOS device
  • Created the correct IFTTT recipe
  • Dropbox Installed on your computer
  • Python 2.7 Installed on your computer
  • This Python Script
  • AutoHotKey Installed on your computer (Optional)

The Python Code:

As you can see it’s a fairly small and easy python script the main points in which you’ll want to change/edit is what it does when you either disconnect or connect to your network. Launching an application is as easy as changing this line:
If you are just launching an application that line will be changed to the path of the program that you want to launch. If however, you wanted to say open up a youtube video and turn your volume all the way up, it would probably be easier for non-programmers to use another scripting language called: “AutoHotKey”. While I use any other language over AHK any day and any time, I still love AHK and it has it’s strengths in creating mouse/keyboard macros with relative ease and speed.

Example of an AutoHotKey script to un-mute your sound and open a youtube video:

As you can see it’s a really simple script. You can use it to open up a youtube video when you get home or open your favorite program. I hope you get lots of use out of this script. Feel free to message me things that you have used this python script for.

The IFTTT Recipe:

Now that you understand the main python script, lets take a look into the IFTTT recipe required to get this all working properly. The recipe is as follows:

  • Install IFTTT App onto your phone
  • Create a new IFTTT Recipe
  • IF: Android Phone Connects Or Disconnects from Any Network
  • Then: Create a text file in a Dropbox folder named:¬†Connected to {{SSID}} {{OccurredAt}}
  • Run the python script with dropbox installed onto the machine. Make sure you have the right path in the script to match the location of the text file created by the IFTTT Recipe

Kyle on sabyoutubeKyle on sabwordpressKyle on sabtwitterKyle on sablinkedinKyle on sabfacebookKyle on sabemail
Hi there, I'm Kyle. I'm a web developer and an indie game developer. Currently working on an android game called: Burning Rush developed in Game Maker: Studio and is currently in Early Access Stages.

I enjoy working with code, favorite language currently: Python.
Currently working: Freelance Part-time, Real Estate Marketing & Web Development Full-time, and Indie Game Development with Unholy Squid Entertainment.

You might also like

Leave a Reply

Your email address will not be published. Required fields are marked *