Hey guys.
I'm really stuck on the keyboard problems. Is there any c/c++ functions, or methods :-), to know the physical layout of the keyboards. Thanks
5 4215 oler1s 671
Recognized Expert Contributor
I could have sworn I answered your question. Did you delete your question and then repost it? If so, did you see my previous answer? I’m seriously asking the question.
I could have sworn I answered your question. Did you delete your question and then repost it? If so, did you see my previous answer? I’m seriously asking the question.
I feel strange too. I did post a similar one, but it disappeared. I guess It could be I post it in wrong category. Could you please answer it again? Many thanks!
oler1s 671
Recognized Expert Contributor
The answer is, neither C nor C++ itself has a concept of a keyboard. If you want to know about the current keyboard configuration or layout, you’ll have to look at what facilities the OS provides. All three major desktop platforms, Windows, Macs, and Linux, should have some sort of C API for determining the keyboard configuration.
The answer is, neither C nor C++ itself has a concept of a keyboard. If you want to know about the current keyboard configuration or layout, you’ll have to look at what facilities the OS provides. All three major desktop platforms, Windows, Macs, and Linux, should have some sort of C API for determining the keyboard configuration.
My programming is based on Windows. It seems I can get the message of each key, althogh it cost lots of ''if else''. But again, what I really need is the physical layout, how do you know which key is near which key?
Many thanks!
oler1s 671
Recognized Expert Contributor
Oops, sorry for taking so long to respond.
But again, what I really need is the physical layout, how do you know which key is near which key?
I don’t believe you can find this information out. Keyboard layouts can vary quite a bit (see laptop keyboards), so trying to deduce what set of keys are near to each other, or even what keys are present, is a bad idea.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: ajsiegel |
last post by:
Arthur wrote:
>> And either intuitively, or consciously, he is doing something that
>> offsets it from something truly intergrated into the core of the
>> language. By breakling all of his own...
|
by: Sanjeev |
last post by:
Hi,
I was wondering how VC++ developers are reacting to the new keyboard
layout in .Net IDE. I am very un-happy. However they do have an option to
select different settings, but I don't know...
|
by: Rudi |
last post by:
Hello all,
posting my question in this newsgroup is about the last alternative I
can think of to resolve my problem.
The standard keyboard layout in the office is AZERTY.
Still, my access xp...
|
by: hadi_ghanaty |
last post by:
how i can change keyboard layout in program
|
by: Lacka |
last post by:
Hi,
Is it possible, to change the keyboard layout on an asp.net page? I have
two textboxes: one for the greek text, and one for the hungarian. If the
greek gets the focus, it would be nice to...
| |
by: Aftab Alam |
last post by:
Hello All
I want to change the keyboard layout dynaically, ie if a use focuses on my
application the keyboard layout gets set to Arabic and if on any other
application it should be english ??
How...
|
by: Dan |
last post by:
Sorry if this post may sound a bit off-topic, but I could not find a
specialized newsgroup. I have created a dotnet 2.0 library containing some
user controls and written in C#. One of the controls...
|
by: news.microsoft.com |
last post by:
Hi
Is there any way to change the keyboard layout when a TextBox on an ASPX
page gets the focus?
Regards,
Mystique
|
by: rgsoftware |
last post by:
Hello!
I am looking for a way to add/remove a new keyboard layout programmatically.
It should work identically to opening regional options in control panel manually and adding a new input...
|
by: tpgames |
last post by:
I'm looking for a program or command line or anything that would allow me to have more than the maximum 4 keyboard layout language groups that keyboard preferences in Ubuntu restricts me too. I can...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |