It is the same API you are already using!!!

You are currently checking for a single flag -- SKF_STICKYKEYSON. You have
to check for some of the other flags, thats all.


--
MichKa

Michael Kaplan
Trigeminal Software, Inc. -- http://www.trigeminal.com/

International VB? -- http://www.i18nWithVB.com/
C++? MSLU -- http://msdn.microsoft.com/msdnmag/issues/01/10/



"vasantha" <vasantha@us.ibm.com> wrote in message
news:3cf7fa4d$1@10.1.10.29...
>
> Hello,
> Thanks for your response. But, I did look into the PSDK help but was not
> able to find what I was looking for. Here's what I am currently doing:
>
> In my Form.KeyDown event, I make a call to isStickyKeysOn method and if it
> is on, then I want to know which of the keyboard keys were pressed. For

eg:
> if the keyboard keys that were pressed were Alt and 'A' then, I would

perform
> the corresponding action for Alt+A. The part I am not sure how to do is to
> - get the array of keycodes for the keys that were pressed.
>
> I looked into the GetKeyboardState API call. But, using that would require
> me to go through all the 256 characters in the list and find out the ones
> that are on (pressed). Is there any other way of doing this.
>
> Could yo please point me to the help topic that you have mentioned.
> Your help is much appreciated.
> thanks,
> -Vasantha
>
> Public Function isStickyKeysOn() As Boolean
> Dim mk As STICKYKEYS
> Dim retval As Long
>
> mk.cbSize = Len(mk)
> ' Load the MouseKeys settings into the structure.
> retval = SystemParametersInfo(SPI_GETSTICKYKEYS, Len(mk), mk, 0)
>
> If (mk.dwFlags And SKF_STICKYKEYSON) = SKF_STICKYKEYSON Then
> isStickyKeysOn = True
> Else
> isStickyKeysOn = False
> End If
>
> End Function
>
>
> "
> Michael \(michka\) Kaplan" <former_mvp@nospam.trigeminal.spamless.com>

wrote:
> >Its just with the SPI_GETSTICKYKEYS param. Check out the PSDK help topic

> for
> >the flags to check for....
> >
> >
> >--
> >MichKa
> >
> >Michael Kaplan
> >Trigeminal Software, Inc. -- http://www.trigeminal.com/
> >
> >International VB? -- http://www.i18nWithVB.com/
> >C++? MSLU -- http://msdn.microsoft.com/msdnmag/issues/01/10/
> >
> >
> >"Vasantha" <vasantha@us.ibm.com> wrote in message
> >news:3ceef13d@10.1.10.29...
> >>
> >> Hi,
> >>
> >> I am trying to find out what system call I should use in order to be

able
> >> to read the array of key strokes that the user entered.
> >> I am using the "SystemParametersInfo" call to find if the stickkeys in

> the
> >> system accessibility settings are set to "ON" or "OFF". I have this

part
> >> working.
> >> FYI: sticky keys are turned on in case the user is not able to click on

> >multiple
> >> keys at a time. For eg: to accomplish the usual Ctrl+Alt+Del, by

setting
> >> the sticky keys ON, the user can click on the Ctrl, the Alt and the Del

> >buttons
> >> individually one at a time and accomplish this.
> >>
> >> So, my next task is to read from the system the keys that were entered

> and
> >> then using that information, I can divert control to the various parts

> of
> >> my application. This is the part I am not sure how to do.
> >>
> >> I was told by another colleague that this could be accomplished by

making
> >> another call to "SystemParametersInfo" but using different parameter.

> But,
> >> I have not been able to figure this out as yet.
> >>
> >> Any help in this regard would be greatly appreciated.
> >> Thanks for your help in advance.
> >>
> >> -Vasantha
> >>

> >
> >

>