473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

scan codes

i know how to get scan codes and ascii codes for special keys.
i can get ascii codes of alphabetic keys.
how does one get scan codes of alphabetic keys??
Nov 14 '05 #1
3 3396
On 1 Mar 2004 10:40:27 -0800, am******@rediffmail.com (aman) wrote:
i know how to get scan codes and ascii codes for special keys.
i can get ascii codes of alphabetic keys.
how does one get scan codes of alphabetic keys??


Sorry, but there are no such things as "scan codes" in standard C.

Perhaps you should try a newsgroup that relates to your compiler or operating
system support.

--
Lew Pitcher
IT Consultant, Enterprise Application Architecture,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
Nov 14 '05 #2
"aman" <am******@rediffmail.com> wrote in message
news:a0**************************@posting.google.c om...
i know how to get scan codes and ascii codes for special keys.
i can get ascii codes of alphabetic keys.
how does one get scan codes of alphabetic keys??


You're asking about this in the wrong place. Here,
only ISO standard C is discussed. The C language
defines no concepts of 'keyboards', 'keys' 'scan codes',
or 'ascii codes', or any particular hardware devices
or their operation or behavior. All i/o is abstracted
as 'streams of characters'.

Try consulting support resources for your particular
platform and/or compiler package.

Purpose of comp.lang.c:
http://www.angelfire.com/ms3/bchambl...me_to_clc.html

-Mike

Nov 14 '05 #3
aman wrote:
I know how to get scan codes and ASCII codes for special keys.
How do you do that.
I can get ASCII codes of alphabetic keys.
man ascii
How does one get scan codes of alphabetic keys? getkeycodes Plain scancodes xx (hex) versus keycodes (dec)
0 is an error; for 1-88 (0x01-0x58) scancode equals keycode

0x58: 88 124 125 126 127 0 0 0
0x60: 0 0 0 0 0 0 0 0
0x68: 0 0 0 0 0 122 0 123
0x70: 0 0 0 89 120 0 0 90
0x78: 91 92 93 94 95 124 121 0

Escaped scancodes e0 xx (hex)

e0 00: 0 0 0 0 0 0 0 0
e0 08: 0 0 0 0 0 0 0 0
e0 10: 0 0 0 0 0 0 0 0
e0 18: 0 0 0 0 96 97 0 0
e0 20: 0 0 0 0 0 0 0 0
e0 28: 0 0 0 0 0 0 0 0
e0 30: 0 0 0 0 0 98 0 99
e0 38: 100 0 0 0 0 113 114 115
e0 40: 116 117 0 0 0 0 101 102
e0 48: 103 104 0 105 124 106 118 107
e0 50: 108 109 110 111 0 0 0 0
e0 58: 0 0 0 125 126 127 0 0
e0 60: 0 0 0 0 0 0 0 0
e0 68: 0 0 0 0 0 0 0 112
e0 70: 0 0 0 0 0 0 0 0
e0 78: 0 0 0 0 0 0 0 0
uname -mprsv

Linux 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 EDT 2002 i686 i686

Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Bendzick | last post by:
Is there a simple way in python to read a keyboard scan code? I'm working on a shell script that interfaces with a proprietary keyboard device (extra buttons) and need to be able to distinguish...
3
by: Marcus | last post by:
Hi I have a very complex sql query and a explain plan. I found there is a full table scan in ID=9 9 8 TABLE ACCESS (FULL) OF 'F_LOTTXNHIST' (Cost=84573 Card=185892...
0
by: chewie | last post by:
Does anyone know how to capture keyboard scan codes using C#? Thanks
3
by: Carlos Moreno | last post by:
I can't find a reasonable explanation for this. I have a table game, with primary key gameid (an int). If I use a where involving gameid and <, or >, or <=, or >=, then I get a sequential...
6
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook)...
2
by: Daniel Tan | last post by:
In my code, i tried to scan for each record in my database that matched certain criteria and then display it in a subform. I used the following codes but it will only display last record, i want to...
2
by: gj_williams2000 | last post by:
Not sure if this is the right board but it is in c... I've got a console program written in c which receives key presses and gets a Windows Virtual key code. I am trying to convert it to the...
1
by: shilpasharma | last post by:
Hi, Can anybody let me know how I can optimise following Query. Select * from reports where ( exists ( SELECT 1 FROM results_required rr, item_claims_trials ict, results res WHERE...
2
by: BD | last post by:
Hi, all. My background is more Oracle than db2. My skills at SQL tuning are quite limited. I'm running 8.2 on Windows. I'm tasked with some SQL optimization, and am doing some explain plans...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.