Have a look at sendkeys in the manual... that's the only thing I know of for automating notepad.