go0b3r Posted February 10, 2006 Posted February 10, 2006 ok ive done the whole send( "hi" ) thing, but my minds gone blank. Im trying to open notepad and type Hello, so i did this, Run( "notepad.exe" ) send( "hi" ) it opens notepad, but doesn't type hi, im confused.
milkman Posted February 10, 2006 Posted February 10, 2006 Its trying to type hi before notepad is fully done loading.You forgot the codeWinWaitActive("Untitled - Notepad")Insert that between run and send
AutoItMan Posted February 10, 2006 Posted February 10, 2006 WinWaitActive("Untitled - Notepad") ControlSend("Untitled - Notepad", "", "Edit1", "This is a line of text in the notepad window")
jaenster Posted February 10, 2006 Posted February 10, 2006 Run( "notepad.exe" ) sleep(2000) ;Wait some seconds to its started up send( "hi" ) -jaenster
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now