473,569 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accesibility Keyboard Application

2 New Member
Hi All!

I am developing an accessibility keyboard application with Visual Studio 2005 Professional Edition and with C#. The application is a keyboard with buttons that interacts with any application on windows, such as Word, Messenger, IExplorer... The keyboard is on the bottom of the desktop and the other application is on the top of the desktop.

The keyboard interacts with other applications using the SendKeys class. When I send keystrokes to the other application, the other application lose the focus and i have to put the focus to that application. In windows, in start -> programs -> accesories-> accesibility there is a keyboard that do not need have got the focus to send keystrokes to other application. How i can do that? I need that my accesibility keyboard interacts with other applications, and these applications do not lose the focus.

In other words, i need that my keyboard have not got the focus, but when i click on one button, the button sends the keystroke to the other application.

Thanks for your help.
Nov 15 '07 #1
2 1529
Plater
7,872 Recognized Expert Expert
I think there is a method similar to sendkeys that takes a WindowHandle parameter.
I think it's done using the Message class, but I'm not positive
Nov 15 '07 #2
petinboy
2 New Member
Hi Plater,
I was searching about Message class, IMessageFilter class and much more without success.
However, I found the solution to the problem by another way.
I change the form style and add the WS_EX_NOACTIVAT E to prevent it getting focus overriding the CreateParams property like below:

protected override CreateParams CreateParams
{
get
{
const int WS_EX_NOACTIVAT E = 0x08000000;
CreateParams param = base.CreatePara ms;
param.ExStyle = param.ExStyle | WS_EX_NOACTIVAT E;
return param;
}
}

Now, I can interacts with any Windows Application without "flashes" because my application never gets the focus and click on button works fine.

Thanks for your help.
Nov 20 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
1560
by: Monte Gardner | last post by:
I'm teaching a class on web authoring and html. I'm trying to find a good reading article on accesibility issues. I'm trying to keep the reading supplements to relatively light reading, so I don't want to just point my students to the W3C's Web Accessibilty Guidline articles (a little to heavy reading). Can any of you suggest an online...
4
32931
by: Ralf Toender | last post by:
Hi! Does anybody know how to send a keystroke C#? In C++ it's done by: keybd_event ( ... ) or SendInput ( ... ). What namespace does include this counterpart? Thanks Ralf
7
10613
by: Don Riesbeck Jr. | last post by:
I'm working on an application (OEM) using C# that utilizes input from a keyboard, and USB Barcode Scanner. The scanner is a HID Keyboard device, and input from it is sent to the system as if it were a keyboard. I need to be able to identify input from the scanner and keyboard independently. I've looked at DirectX.DirectInput, and using...
2
3145
by: wesmanjunk | last post by:
does anyone know how to generate keyboard events in another application? like public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); can be used for mouse events...
7
26523
by: jpierson | last post by:
Hi, I am tryin to create a keyboard hook that sends the keystroke ctrl + pause/break. I haven't used keyboard hooks before so I'm not too sure how to use them public int MyKeyboardProc(int nCode, int wParam, int lParam) {
4
1000
by: Petr Jakes | last post by:
In my code I have relatively wide dictionary definition (about 100 rows). I would like to put it in to the different file (module) because of the main code readability (say the name of the file will be "my_dictionary.py") In the dictionary I have strings formatted using % operator like: lcd={2:"Your credit= %3d" % (credit)}
4
4144
by: Melson | last post by:
Hi Can anyone help. I would like to replace the keys on the PC keyboard. For example, when I press Q button it displays A on the screen in any programs (MS Words, Note, Lotus....). And also when I press Ctrl + W button, it displays G on the screen. I would like to make the keyboards configurable. Should I write a Windows Service? Any...
1
2995
by: cvairetti | last post by:
Hi, I just write an application in C# that show an interface with five button, each button starts an external application that it comes in front of the main C# application with focus on. When the users finish to use the external program and close it, under there is still the c# application that let the user choose other software to start....
5
2214
by: Junior Programmer | last post by:
Hello Everyone, In my application i need to develop a keyboard which type Hindi characters. As a control i make it. On clicking of this i can create code but how can i type a hindi char in coding ? Please help me. Thanx
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7619
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
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
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...
0
7983
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3662
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
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
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
1229
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.