AutoIt is a freeware software designed for automating the Windows. It uses a combination of simulated keystrokes, mouse movement and windowmanipulation in order to automate tasks.
You can download it from
here.
You can find a tutorial on how to automate tasks in Windows
here.