Alex Rivera | Logout

SendKeys() permission denied error in Visual Basic

Asked 2010-02-21T22:39:12.727
15

I am trying to use the SendKeys() command to another window with my VB6 app.

What I wanted is to click a button, and then have 10 seconds to go to the other window before the app sends some keys to that window. I got everything sorted but for some reason when I call something like this:

SendKeys ("A")

I get this error:

Run-time error '70':

Permission denied

Does anyone know a way around this? Thanks.

Edit
Report

1 Answer

4

On Windows 7:

  • Open the Control Panel
  • Change user account control setting
  • Change to NEVER NOTIFY
  • Restart the computer
answered 2010-07-10T14:32:53.897

Your Answer