sendkeys

topsykretts

Well-known member
Joined
Dec 22, 2011
Messages
47
Programming Experience
Beginner
Hi everyone.
I have some questions for you.
I am working on my application which save work from another application using sendkeys:

SendKeys.Send("^(s)")
SendKeys.Send("file")
SendKeys.SendWait("{ENTER}")



And it works fine,but my problem is that I don't know why sometimes name of the saved file is "file" and sometimes "ile" and sometimes "e".

Why??
 
With no information regarding the other application, I'm not sure anyone can say for sure.

It sounds to me like the application is busy and is only catching the remaining piece of the file name when it returns. If you have no way to tell when it's ready to receive, you'll may need to resort to the "evil delay" method. (AKA: delay for .1 or .01 seconds between send commands)

Not really the best suggestion but sometimes necessary.
 
Back
Top