• Home
  • /AutoIt and Home Automation

AutoIt and Home Automation

autoit-article

AutoIt is an amazing tool for home automation or any Windows automation for that matter. Below we discuss some sample scripts to integrate your PC with most API’s and services with some sample scripts to get you started. Remember that if you are looking to get started with AutoIt and your own automation hub please look at their API. We have listed all the API links on the hub page.

GET_Request_-_AutoIt

Sample Get Using AutoIt

Our sample GET uses our local PC TouchControl software to run it.

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET", "http://192.168.1.xxx:1xxx/zwave/activateSceneGet?password=&sceneName=MainArea30", False)
$oHTTP.Send()

autoit-run_program

Open a Local Application

You may want your PC to be able to open applications and interact with them. This is the script to open them. You can choose to open any application you want:

Run('C:Program FilesGooglePicasa3Picasa3.exe')

autoit-au3recorder

Recording Your Tasks

This is the most powerful tool with regards to AutoIt. You can simply click the toolbar ‘Tools’ option and click AU3Recorder and begin doing the task that you would like to run.

Task Scheduler to Run Commands

task-scheduler-create-task
You could then auto run this outputted task within task scheduler in Windows 7.

Task Scheduler Tutorial

AutoIt Favourite Links

UDF’s are a way to interact with programs using AutoIt’s simple scripting language. We will list a few of our favourites to help get you started.

  1. iTunes UDF: This UDF allows you to add automation techniques to your AutoIt scripts within iTunes. I use this one to play playlists from my Pebble watch, change the volume, pause and play music.
  2. Gmail Remote Monitor: I love this one as you can send an email and then launch commands locally on a PC. As long as the syntax is a certain way it can launch commands. Great for IFTTT integration.
  3. Spotify:Spotify is an awesome music service and software platform to control your music.

Let Us Know Your Favourite Ways To Use AutoIt

[bbp-single-topic id=4132]