First of all, wow, I'm knocked out by the quick reply from multiple members, I didn't expect that!
Second of all, I reiterate I am not a programmer, but I did get this test script to work, primitive to you guys, I'm sure there are better ways to do it.
I notice that in all the AU3record generated scripts the first 23 lines are all identical, so I omitted them.
This is what AU3Record writes for a script when I point, click, type etc. minus the 23 lines. (this doesn't work)
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
_WinWaitActivate("classname=Shell_TrayWnd","")
MouseClick("left",26,17,1)
_WinWaitActivate("Start menu","")
Send("iexplore.exe{ENTER}")
#endregion --- Au3Recorder generated code End ---
After looking at other code in your forums etc. I modified the AU3record script and created the below script - It goes to the start menu, types "iexplore.exe" into the search bar, opens IE, pauses, and does a simple search for the work "Dog" and that's it, but it does work.
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
_WinWaitActivate("Start menu","All Programs")
MouseClick("left",32,494,1)
Send("iexplore.exe{ENTER}")
Sleep(10000)
Send("Dog{ENTER}")
#endregion --- Au3Recorder generated code End ---
Having said all this, I didn't have to change focus to another window, I only used the current active window. This also worked in our company's software, in a VM session. I hope to learn a lot more about Autoit, it's pretty amazing.