473,573 Members | 3,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keyboard Controller Buffer (Writing To)

I'd like to simulate keypresses at the lowest level I can (writing to
the keyboard buffer if possible). I can find x86 solutions but nothing
for a higher level language. Does anyone know how I can do this in C#?
I'm also wondering if the "keybd_even t" or "SendInput" goes as low as
writing to the Keyboard Controller Buffer? or do they use messaging? -
I think they both use messaging but just wanted to make sure.
NB

PS Any solution would be great, like using the ASM code inside my C#
application (I remember doing something similar to this for a C++
program long time ago but I can't seem to find anything for ASM in C#)?
But a method to access it without the ASM would be best for me.

Jun 4 '06 #1
1 2744
If you can do it in C++ what I would suggest is, build your C++ as a class
and consumed by C#.

chanmm

"NvrBst" <qu****@hotmail .com> wrote in message
news:11******** **************@ g10g2000cwb.goo glegroups.com.. .
I'd like to simulate keypresses at the lowest level I can (writing to
the keyboard buffer if possible). I can find x86 solutions but nothing
for a higher level language. Does anyone know how I can do this in C#?
I'm also wondering if the "keybd_even t" or "SendInput" goes as low as
writing to the Keyboard Controller Buffer? or do they use messaging? -
I think they both use messaging but just wanted to make sure.
NB

PS Any solution would be great, like using the ASM code inside my C#
application (I remember doing something similar to this for a C++
program long time ago but I can't seem to find anything for ASM in C#)?
But a method to access it without the ASM would be best for me.

Jun 4 '06 #2

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

Similar topics

9
9720
by: Marek Mand | last post by:
How to use generated keyboard events? What I am trying here to do is in onkeyup event handler http://www.hot.ee/idaliiga/braggart/createEventTest.htm generate a (shift)TAB keydown so the focus would move to the (previous/next ) input element. --
23
7688
by: herrcho | last post by:
What's the difference between STDIN and Keyboard buffer ? when i get char through scanf, i type in some characters and press enter, then, where do the characters go ? to STDIN or Keyboard buffer ? are they same ? thanks ^^
5
21048
by: nx-2000 | last post by:
I've got a very large C# forms app and now that its being used in bigger environments we're getting a steady stream of "why does it do this?" problems. The most nagging of which right now is that when a MessageBox.Show() is displayed, if the user hits enter or esc, those keys get passed back to the form. From searching online, this is...
0
6642
by: rs | last post by:
Hi guys, I am trying to read from a USB keyboard using vb.net and HID classes. the USB keyboard is not my primary keyboard. I have a ps2 keyboard connected and is detected in device manager as my keyboard. the USB keyboard is detected as HID keyboard device. the program finds the keyboard if it is attached. and I am getting valid handles....
2
8748
by: rs | last post by:
Hi guys, I am trying to read from a USB keyboard using vb.net and HID classes. the USB keyboard is not my primary keyboard. I have a ps2 keyboard connected and is detected in device manager as my keyboard. the USB keyboard is detected as HID keyboard device. the program finds the keyboard if it is attached. and I am getting valid handles....
1
5279
by: pinkfloydhomer | last post by:
I am writing a curses application, but the getch() does not seem to give me all I want. Of course, if I press "d", it returns an ord("d") and so on. But I want to be able to detect whether alt, shift or ctrl has been pressed also. Shift is normally covered by returning an uppercase character instead and ctrl seems to return control codes (as...
6
547
by: skam | last post by:
hi i need to send an HEX String to the ps/2 port. i have a special keyboard connected to the ps/2 port and i want to send it some stuff to control his tone indicator. using c or c++ in linux os. how can i do? many thanks Gia
3
5224
by: muthursyamburi | last post by:
Hello All, I'm really looking for a help in reading/writing the keyboard buffer in AIX (IBM Unix). In DOS, there is some memory addres (I remember it as 0x417) from where the keyboard buffer starts. But I need the same in AIX. My requirement is this. In AIX, we need to change the password every 60 days or so. And while changing, it wont...
2
1650
by: midoerin | last post by:
How to connect software with keyboard controller in C# ? So the software can interact with the keyboard controller. i want to build a software about learn piano using a keyboard controller, but i don't know how to connect them. example:when my keyboard controller play the chord C, then my software can show that the keyboard play the chord...
0
7699
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7788
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5594
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5292
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3733
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3733
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2216
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 we have to send another system
1
1304
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.