#include <IE.au3>
$search = InputBox("What?","What would you like to search for?")
$oIE = _IECreate()
_IENavigate($oIE, "http://www.google.com")
$oForm = _IEFormGetObjByName($oIE, "f")
$oQuery = _IEFormElementGetObjByName($oForm, "q")
$oButton = _IEFormElementGetObjByName($oForm, "btnG")
_IEFormElementSetValue($oQuery, $search)
$oButton.click
_IELoadWait($oIE)
Exit
This bit of code will open internet explorer, and navigate to google.com. It will then enter the $search value into the search field, and preform a .click event.