Home All Groups Group Topic Archive Search About

Forms.Sendkeys.SendWait don't work in Vista

Author
18 Jul 2006 6:48 PM
Glenn Palomar
Hi,

I have a beta Vista system and I'm running a program (created in VB.net)
that sends keystroke to an application using
System.Windows.Forms.SendKeys.SendWait. In Vista it throws an exception -
System.Security.SecurityException: Hook cannot be created.

Is there a way to workaround this problem? I'm logged-in as the system
administrator.

Thanks,
Glenn

Author
25 Jul 2006 9:12 PM
pdxfilter-google
Glenn,

Thanks for your post.  Our app relies on SendKeys quite a bit and
generates the same error message.  We are sending the keystroke to our
own app.

Looking forward to some info from Microsoft.

Jon


Glenn Palomar wrote:
Show quoteHide quote
> Hi,
>
> I have a beta Vista system and I'm running a program (created in VB.net)
> that sends keystroke to an application using
> System.Windows.Forms.SendKeys.SendWait. In Vista it throws an exception -
> System.Security.SecurityException: Hook cannot be created.
>
> Is there a way to workaround this problem? I'm logged-in as the system
> administrator.
>
> Thanks,
> Glenn