• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

GetAsyncKeyState() is returning 0xFFFF in IE8 protected mode

V

varaha

Flightless Bird
Hi,

In my activeX control, I am trying to read the key currently pressed by the
user, using repeated calls to GetAsyncKeyState(vKey) function in a loop with
various vKey values. But when I run the activeX control in IE7/IE8 protected
mode, the function seems to be returning 0xFFFF continuously(even though one
of the keys is pressed) for some time and then gives correct values for some
time and so on. With protected mode set to Off, it works without any
issues.Has anyone faced this issue earlier?
Please help me.

Thanks,
Varaha.
 
P

PA Bear [MS MVP]

Flightless Bird
Post here instead:
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads

varaha wrote:
> Hi,
>
> In my activeX control, I am trying to read the key currently pressed by
> the
> user, using repeated calls to GetAsyncKeyState(vKey) function in a loop
> with
> various vKey values. But when I run the activeX control in IE7/IE8
> protected
> mode, the function seems to be returning 0xFFFF continuously(even though
> one
> of the keys is pressed) for some time and then gives correct values for
> some
> time and so on. With protected mode set to Off, it works without any
> issues.Has anyone faced this issue earlier?
> Please help me.
>
> Thanks,
> Varaha.
 
Top