LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Windows Virtual-Key Codes with Special Characters such as $

Hello,

 

I'm developing a Keyboard for a Touch Screen Windows 7 application and I need to have access to Special Characters such as $ % ^ and others but I can't find a way to use them from the Windows Virtual Keyboard. I'm using the following example which has all regular characters you can find on a keyboard.

 

https://decibel.ni.com/content/docs/DOC-9001

 

Also I'm using information from the following MSDN documentation:

 

https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx

 

The problem is that the Windows On-Screen Keyboard is able to type these special characters but I can't find their VK codes to use within LV.

 

Does anyone have any idea on how to do it?

 

Thanks and regards.

 

Luciano Borges
Test Development Engineer
0 Kudos
Message 1 of 3
(4,655 Views)

Hello Luciano,

 

I read the MSDN documentation and I understand that VK Codes reffer to keybord keys and not to keyboard characters, so if you need use a character that require combine more than one key you need code the combination that provide the disired character.

 

We also have a KB about it.

 

http://digital.ni.com/public.nsf/allkb/15D9EAAE7AF1132586256FB70066E0DD?OpenDocument

 

Best regards.

Abel Souza
Engenheiro Eletrônico
LabVIEW User since 8.5
0 Kudos
Message 2 of 3
(4,597 Views)

Hey Luciano,

 

Why don't you try calling the on-board screen, which is native to Windows.

 

I made a simple VI that you can use as a base code for your application. Give it a Try!

 

Best Regards.

Felipe Flores
Technical Support Engineer
National Instruments
0 Kudos
Message 3 of 3
(4,577 Views)