Jump to content
Sign in to follow this  
go0b3r

very very stupid question

Recommended Posts

go0b3r

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.

Share this post


Link to post
Share on other sites
milkman

Its trying to type hi before notepad is fully done loading.

You forgot the code

WinWaitActive("Untitled - Notepad")

Insert that between run and send

Share this post


Link to post
Share on other sites
AutoItMan

WinWaitActive("Untitled - Notepad")

ControlSend("Untitled - Notepad", "", "Edit1", "This is a line of text in the notepad window")

Share this post


Link to post
Share on other sites
jaenster

Run( "notepad.exe" )

sleep(2000) ;Wait some seconds to its started up

send( "hi" )


-jaenster

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×