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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendkeys on win2000

Status
Not open for further replies.

KLZ1

MIS
May 31, 2001
5
US
Hello all!

I am looking for a way to automate the execution of several software packages using vb. I have created a solution using sendkeys which works during design time, but at run time, drop down menus will not function when using win2000 sp2 (i.e. %f does not open a menu). It works under winnt 4.0 server. Also, when I try to schedule the exe (using winnt or 2000), sendkeys will not work correctly if a password protected screen saver is active. Has anyone successfuly done this? Is there a better way?? I have also attempted to use 'postmessage' API, but have not been successful. I would appreciate any suggestions!
 
Microsoft has acknowledged some problems with SendKeys and Win2000. The following link may provide more details and a possible workaround for you.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Thanks. I saw that, but thought that it was for win 2000 sp1 only. I guess I will keep attempting the PostMessage API workaround.. Any ideas on the locked screensaver issue??
 
not specifically to the screen saver, but in general terms, replacing the SendKeys with the keyb_event API call would a direction that I would give serious thought to.
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
That was next on my list - I just wanted to be sure that I was on the right track! Thanks for your prompt help!! If I ever get proficient at this, I would be happy to return the favor!!
 
FYI, the keybd_event API gets arount the win2000 bug with sendkeys, but I still can't find a way to get around a locked screen saver..it will not accept an internal keybd_event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top