Code:
run( "notepad.exe")
sleep(300)
ControlSend("Untitledt", "", "Edit1", "This is a line of text in the notepad window")
This opens the Notepad and sends some text to the edit field. I took this example from the help .....
Use the AutoIT Window Info Tool to find out where the text should appear. In this example it is Edit1
Code:
ControlSend("Untitledt", "", "[COLOR="Red"]Edit1[/COLOR]", "This is a line of text in the notepad