[jawsscripts] Re: Simulating numpad keystrokes when numlock is on.

  • From: "David Pinto" <davepinto@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 12 Sep 2012 20:58:34 -0700

Jim,

Dilemna solved! Calling PostMessage works great at simulating having numlock 
on, while pressing the numpad keys. In other words, whether numlock is on or 
not, one can use PostMessage to simulate the numeric keypad presses.

For instance, to simulate pressing keypad 0, use PostMessage (hWindowHandle, 
WN_KEYDOWN, VK_NUMPAD0,0), where WN_KEYDOWN=0x100, and VK_NUMPAD0=0x60.

The complete list of virtual key values can be found at the following link.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx

Enjoy!

David


----- Original Message ----- 
From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, September 12, 2012 6:48 PM
Subject: [jawsscripts] Re: Simulating numpad keystrokes when numlock is on.


> Definitely, let us know if that works.
>
> ----- Original Message ----- 
> From: "David Pinto" <davepinto@xxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Wednesday, September 12, 2012 6:03 PM
> Subject: [jawsscripts] Re: Simulating numpad keystrokes when numlock is 
> on.
>
>
> David,
> Thanks anyway. Although I'd love to think differently, I'm coming to 
> believe
> that JAWS can't do it. Meanwhile, I'm going to experiment with sending
> numpad keypresses via Window's PostMessage function.
> David
> ----- Original Message ----- 
> From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Wednesday, September 12, 2012 1:30 PM
> Subject: [jawsscripts] Re: Simulating numpad keystrokes when numlock is 
> on.
>
>
>> Sorry about that!  I see the problem now.
>> I wish I could help.
>>
>> David Farough
>> Application Accessibility Coordinator/coordonateur de l'accessibilité
>> Information Technology Services Directorate /
>> Direction des services d'information technologiques
>> Public Service Commission / Commission de la fonction publique
>> Email / Courriel:  David.Farough@xxxxxxxxxxxxx
>> Tel. / Tél:    (613) 992-2779
>>
>>>
>> This e-mail message is intended for the named recipient(s) and may
>> contain information that is privileged, confidential and/or exempt from
>> disclosure under applicable law. Unauthorized disclosure, copying or
>> re-transmission is prohibited. If you are not a named recipient or not
>> authorized by the named recipient(s), or if you have received this
>> e-mail in error, then please notify the sender immediately and delete
>> the message and any copies.
>> >
>> Ce courriel est destiné exclusivement au destinataire mentionné en titre
>> et peut contenir de l'information privilégiée, confidentielle ou
>> soustraite à la communication aux termes des lois applicables. Toute
>> divulgation non autorisée, toute reproduction ou réacheminement est
>> interdit. Si vous n'êtes pas le destinataire de ce courriel, ou n'êtes
>> pas autorisé par le destinataire visé, ou encore, si vous l'avez reçu
>> par erreur, veuillez le mentionner immédiatement à l'expéditeur et
>> supprimer le courriel et les copies.
>>
>> __________�
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>>
>
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> 


__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: