go0b3r Posted February 10, 2006 Share 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. Link to comment Share on other sites More sharing options...
milkman Posted February 10, 2006 Share 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 Link to comment Share on other sites More sharing options...
AutoItMan Posted February 10, 2006 Share Posted February 10, 2006 WinWaitActive("Untitled - Notepad") ControlSend("Untitled - Notepad", "", "Edit1", "This is a line of text in the notepad window") Link to comment Share on other sites More sharing options...
jaenster Posted February 10, 2006 Share Posted February 10, 2006 Run( "notepad.exe" ) sleep(2000) ;Wait some seconds to its started up send( "hi" ) -jaenster Link to comment Share on other sites More sharing options...
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