473,413 Members | 1,727 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,413 software developers and data experts.

Accesibility Keyboard Application

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 1510
Plater
7,872 Expert 4TB
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
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_NOACTIVATE to prevent it getting focus overriding the CreateParams property like below:

protected override CreateParams CreateParams
{
get
{
const int WS_EX_NOACTIVATE = 0x08000000;
CreateParams param = base.CreateParams;
param.ExStyle = param.ExStyle | WS_EX_NOACTIVATE;
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
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...
4
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
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...
2
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...
7
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...
4
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...
4
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...
1
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...
5
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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 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.