Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys alternative 2

Status
Not open for further replies.

kd5oyd

Programmer
Nov 20, 2001
9
US
I have automated an ancient application using SendKeys. The process takes 20 to 30 minutes to run every day, and during this time the computer is unusable (since SendKeys sends the keystrokes to the topmost window.) Is there an API solution that works regardless of a windows postion or state?
 
On vb5prgrmr's advice, I've been wrestling with SendMessage and PostMessage…

…and while I wrote this, I was able to get it to work. I should have used PostMessage for this app. I can send characters, function keys- this is cool.

You know, even though thousands of people have done this before me, its still a rush when I get something to work. Thanks all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top