Sendkeys on Vista

R

rmotto

Hi,
i've a problem with sendkeys command operation in my app installed on
Windows Vista. I got Error 70.

I've tried to replace it with fsendkeys function (the public function
to resolve numlock issue) but i didnt resolve.

There's a solution?

Thank you. Roberto
 
6

'69 Camaro

Hi, Roberto.
I've tried to replace it with fsendkeys function (the public function
to resolve numlock issue) but i didnt resolve.

If you're referring to the fSendKeys function from the following Web page:

http://www.mvps.org/access/api/api0046.htm

.. . . then it won't work, because it uses the SendKeys function. That code
doesn't avoid SendKeys, so it isn't really a replacement, even though that's
the title of that Web page.

The SendKeys function doesn't work on Vista when User Access Control is
enabled. Either you can disable UAC, or you can recode using the
keybd_event Windows API procedure to simulate key presses. However, it's
usually possible to code without ever using the SendKeys function. What is
SendKeys doing in your code that can't be done with other VBA code?

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.
 
Top