checkers, thank you, you have helped me make this code. (by experimenting)
Code:
$memory = InputBox("milliseconds left","how long to read text? Pick only a number and a good one.")
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
send("This is a text that was created by autoit v3.0,{ENTER} a very good piece of work. now you have")
send("{ENTER}")
send($memory)
send("millaseconds to read this message.")
sleep($memory)
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!y")
winwaitactive("Save As")
send("hello.txt")
send("{ENTER}")
winwaitactive("Save As");overwrites the file if needed. Careful if you have a file name like this.
send("!y") It give you a number timing. You pick the time, and before it closes, it will wait that much time. (good for my first "on my own" script. But only thanks to checkers part that I could make the time part.)
ps: Add it if you want.