keyboard

Problem with handling keyboard events inside a Canvas using Flex.

For some reason, the event listener I define never seems to receive any events, although I believe it should. Here's a very short description of the MXML code I'm using: WindowedApplication VBox (root box) MenuBar TabNavigator VBox (first tab) Canvas VBox (second tab) If I ad...

How to make a multi-lingual keyboard in jQuery?

I am searching for a multi-lingual keyboard api or plugin which I can embed in my web app. If the plugin in jquery then its better, caz I am already using jQuery library. I want keyboard like (or better) than the keyboard that www.shabdkosh.com has. On shabdkosh.com home page, there is a link "key" with the search button, click on the l...

Does anyone know how to map Microsoft's Instant Viewer mouse function to a keyboard?

After reading Jeff's review of Microsoft's Natural Ergonomic Keyboard 4000. I decided to get one. It comes with this really nice Instant Viewer feature that it assigns to the middle button of your mouse. Not wanting to lose my middle button "open in new tab" function. I wanted to assign it to the keyboard. I'v looked at task manager when...

keyboard events in .NET

The key up event gets triggered when a key is released. This holds true for normal keys like a, b etc. However, holding down the arrow key or escape key produses different results. Instead of firing a key up event when the key is released, it gets fired soon after the key down event. So, holding down a arrow key becomes equal to pressing...

CATIA-CAA CATKeyboardEvent

I know there are only a few CAA Programmers in the world but I try it anyway... I can't get keyboard events to work. I found this code which looks reasonable but the Notification doesn't fire. AddAnalyseNotificationCB(CATFrmLayout::GetCurrentLayout()->GetCurrentWindow()->GetViewer(), CATKeyboardEvent::ClassName(), (CATComma...

How can I use a usb keyboard/mouse combo with a ps2 KVM?

I purchased a wireless Logitech Wave mouse/keyboard combo and want to use it with my old PS2 KVM. I've seen a few converters out there that might work, but the problem is they connect one USB-> one PS2. I need something that will split one USB into two PS2 (keyboard and mouse), as that's what the KVM expects to have plugged in. Help! ...

capture multiple "onkeydown" and wait until "onkeyup" to execute

In my web app, I use the onkeydown event to capture key strokes. For example, I capture the 'j' key to animate a scroll down the page (and do some other stuff meanwhile). My problem is the user might keep the 'j' key down to scroll further down the page (this is equivalent to fast multiple key strokes). In my app, this result in a s...

How can I launch the on-screen keyboard from my application on Vista and Windows 7

I have a problem, I have an application which has a toolbar icon to launch the system onscreen keyboard. This all works fine with the exception of Windows Vista and Windows 7 beta. The UAC appears to be getting in the way and preventing the osk.exe from running. I have read that because it is used on the logon screen it will not promp...

.NET + COM changed keyboard routing behavior

Hi all! I have a problem so strange that I hardly can put an adequate title to it. In short: I have COM object written in MSVC++/MFC with a dialog derived from CDialog. On that dialog I have three child "user controls" - windows derived from plain CWnd. When I use this COM object from a variety of places, everyhing works as I expect. ...

A way to always shift the number keys?

Is there a way / app / registry tweak, on Vista, to have the row of numbers above the keyboard to always be shifted? I am having little finger issues, so I would like to be using the numeric keypad for typing numbers, and not be constantly holding down the shift key for typing !"£$%^&*() ...

C#: In a KeyDown event, what should I use to check what key is down?

In a KeyDown event, I have the KeyEventArgs to work with. It has (among other things) these three properties: e.KeyCode e.KeyData e.KeyValue Which one should I use for what? ...

C#: Activate a TextBox when user starts typing

I want to activate a search textbox when the user starts to type something (even if the textbox isnt focused right then). I have come as far as setting KeyPreview on the form to true. Then in the KeyDown event handler, I have this: if(!searchTextBox.Focused) { searchTextBox.Focus(); } This almost works. The textbox is focused, but...

Detecting and acting on keyboard direction keys in Java

G'day all, I have a console project where it is intended the user presses the keyboard direction keys (non-numeric keypad) to move an avatar. I am having difficulty coding to check for the press of these keys. In Pascal it was easy enough to use "readkey" and code, for example, for #80 for the down keypress. However, I am stumped how t...

Delphi 2009 OnKeyDown does not trap as Delphi 2007 does

Hello, I have this code procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); var begin if not (Key in [Ord('0')..Ord('9')]) then Key := 0; end; and it worked fine with Delphi 2007. When I upgraded to Delphi 2009 and I try to press any letter it is accepted and the Key := 0 does not trap the input? ...

Detecting keyboard direction keys using keyPressed

G'day all, After learning on here that the Java console doesn't support keyboard input a great deal, I switched to Swing and AWT. My problem now is how to detect when the keyboard direction keys (non-numeric keypad) are used. My code (below) does not do more than print a "small box" character when pressing the down, up, left, right key...

What is the best position to sit and to place your hands while you program?

Hi! Recently I've been more concerned about the way I sit while I code, I don't think I have any kind of injury yet but one of my coworkers had to take a couple of days off because of his column and I began to worry about this. So, how do you sit? how do you place your hands? Do you recommend any keyboard in special? any chair? I have b...

What are the "OEM" keys in the System.Windows.Forms.Keys enumeration?

A friend was having trouble figuring out how to assign "Ctrl + +" as a shortcut key to a ToolStripMenuItem. I pointed out that the Keys.OemPlus key would work and the display string for the shortcut needed to be set, but the Keys enumeration mystifies me. What's the deal with these "OEM" keys? I've done a little searching and it seems...

Map keyboard for common paste operation

I want to program a key on my keyboard to paste certain static text when pressed. For instance, I'd like to program the F12 key so, when pressed, it pastes my email address every time. Is there an easy way to do this? ...

Windows - Map a Keyboard Key to the Same Action as Left Mouse Button

Is the a programmatic way (or something more simple) to map some keyboard key to the same action windows-wide as the left mouse button in Windows XP / Vista. If programmatic is there a way to do this in .NET 2.0 (or greater)? ...

How can I block keyboard and mouse input in C#?

I'm looking for some code (preferably C#) that will prevent keyboard and mouse input. ...