|
-
December 27th, 2004, 11:22 AM
#1
Numeric keypad input as mouse commands
Hallo,
I'm facing the following problem.
Playing with the mouse setting, I sent a SPI_SETMOUSEKEYS (using the SystemParametersInfo) message to the system with the following mouse settings.
pMOUSEKEYS.cbSize = Len(pMOUSEKEYS)
With pMOUSEKEYS
.cbSize = Len(pMOUSEKEYS)
.dwFlags = MKF_MOUSEKEYSON Or MKF_AVAILABLE
.dwReserved1 = 0
.dwReserved2 = 0
.iCtrlSpeed = 10
.iMaxSpeed = 200
.iTimeToMaxSpeed = 1000
End With
Everything worked fine. I don’t know why, but the system is now processing my numeric keypad input as mouse commands.
It seems that I set the MKF_MOUSEMODE flag, despite the fact that I didn’t do it.
Anyway!
Does anyone know how to tell the system to no more process the numeric keypad input as mouse commands?
Thanks in advance for your help
james
-
December 28th, 2004, 05:45 AM
#2
Re: Numeric keypad input as mouse commands - RESOLVED
That may help someone else.
The MouseKeys Flags is stored in the “HKCU\Control Panel\Accessibility\MouseKeys\Flags” registry key with different values. (Flag Constant)
Some of these values (precisely the MKF_MOUSEKEYSON and the MKF_AVAILABLE) or combinations of these values enable the MouseKeys feature that tells the system to process numeric keypad input as mouse commands.
My dwFlags was set on “MKF_MOUSEKEYSON Or MKF_AVAILABLE”. Hoops!!!
Set the value on 27 if you want to manually turn on the MouseKeys feature, or 26 to turn it off.
Sorry to have disturb you.
james
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|