PDA

Click to See Complete Forum and Search --> : SendMessage API


jsallen
Oct 30th, 2000, 01:40 PM
I tried to use sendkeys to automate a group of keystrokes that need to be made precisely. It involves activating a window pressing the "+" to bring up a dialog box. Once the dialog box appears I "shift-tab and enter some text then I tab over and enter a number and tab again enter a number
and then press ENTER. After hitting enter the focus normally returns to the window that I first activated. I then repeat the process over only I begin by pressing "-". It works sometimes. When it doesn't work I assumed I lost focus of the window. I also employed the "doevent" to take care of the delay that occurs after hitting enter.

I was wondering how to use sendmessage to do the same task. I have already used Spyxx to find the names and classes of each window and textbox in question

Thanks..