keyboard

How to catch Ctrl+C key event with Qt when Ctrl is released before 'C'?

I would like to call some custom copy code when the user releases Ctrl+C. When 'C' is released before Ctrl, Qt sends a key event that matches with QKeySequence::Copy. When Ctrl is released before 'C', the release event does not match. When the key release event comes in with Ctrl, is there a way to see if 'C' is still being held down? ...

Button not removed with removedFromSuperVire

Hi, I'm using the trick to put a custom button for the numeric keyboard. But I can't remove the button after use it, so in regular keyboard appear on top of the view. This is how I add it: - (void)keyboardShow:(NSValue *)v { if (isKeyboardNumeric) { // create custom button UIButton *doneButton = [[UIButton alloc] init];...

Multiple keys held down in Cocoa (OS X)

Hi, I'm new to Mac programming, so I hope this isn't obvious. In short, I don't seem to be getting multiple key pressed events. I've created this snippet, which never fires an assert, and therefore never prints multiple keys. I get single key prints, though. - (void)keyDown:(NSEvent *) theEvent { NSString *characters = [theEvent...

C# Serial Wedge

C#, WinForms, .Net 2.0 I'd like to create my own software serial wedge in C#. I have all the code for the serial I/O, and can get the data converted from Hex to ASCII and into a database or listbox. But am unsure how to translate the data into key presses that will go into the active application. Can someone direct me to an article o...

Capturing keystrokes without focus

E.g. with winamp (on Windows at least), you can play a game fullscreen with winamp in the background, and use the media buttons* to control the sound. Winamp doesn't need to get focus, allowing the game to continue fullscreen. I'd prefer to write this in Java but that probably isn't going to work (capturing keystrokes without focus is a...

Intercept keyboard input using current keyboard layout in C#

Hello. I've implemented a low-level keyboard hook using SetWindowsHookEx() function. It works fine and returns a virtual key code for each keystroke. I can convert this virtual key code to a System.Windows.Input.Key using KeyInterop.KeyFromVirtualKey(). But the target is to get a symbol that corresponds to this virtual key code in curre...

Numeric keyboard with decimal separator

How can I get the numeric keyboard with the decimal separator? Currently I am stuck with UIKeyboardNumberPad. ...

Incorporating the Windows 7 onscreen keyboard into a WPF app

Windows 7 has a really nice onscreen keyboard program/control for touchscreens. I have a touchscreen app that was originally written for, and will be deployed on, XP. Is it possible to incorporate this keyboard directly into my app, rather than me using a custom control? I can find no programmatic information about it, so any links wo...

Is it more difficult to program on Lenovo/Apple keyboards due to Ctrl key positioning?

I ask because I noticed while researching a new laptop, that Lenovo keyboards have the Fn key in the left corner of the keyboard instead of Ctrl (famously it seems). I also discovered the same configuration is present on Apple laptops. Obviously Ctrl is used quite frequently by developers: they are often power-users, relying on many s...

How to map USB HID input to keyboard strokes?

I am a .NET developer, and I want to turn my USB HID device (Mouse, Dance Pad, Guitar or Drums, specially Drums) into a keyboard (with few keys, I know). Do I need to develop this from scratch? Is there any tool that does that? Is there any library that would help me? ...

Why do some of my keyboard events work and others do not?

I have the following examples in c++, the first works as expected the second does not. I also note that the Windows System keyboard has the same problem. Anybody know why or a work around/better way of doing this? keybd_event(VK_LWIN,0x5b,0 , 0); /* Windows Key Press */ keybd_event(VkKeyScan('l'), 0, 0, 0); /* L key Press */ keybd_eve...

Flex : button acting like a backspace

Hi, How would you make a button event call a function which acts like a backspace keyboard event delete. I tried faking the dispatch keyboard event "keyup" "keydown" with keycode 8 and keynumber 8 without success. No other way than doing it by hand with begin and end select index plus substr ? I have a textinput i just want to add a ...

Reading letters from a custom iPhone keyboard

Hi, I'm trying to build an app that is a code breaking puzzle for the user. I've followed sample code on how to add a decimal to the numeric keypad and it works great. I would like to expand this so the whole keyboard is filled with custom images. Is it possible to have a piece of code that when the user presses on a symbol the iPhone...

Global hardware OnKeyPress

I have in C# this function , for key press. When you press a key will be executed function a() protected virtual void OnKeyPress(object sender, KeyPressEventArgs e) { a(); } I need a method which to execute a function globally, in outside of my application , in outside of .NET Framework , anywhere in Windows. Advanced th...

Flex 3 keyboard event handling

I'd like to arrange things so that I have a chain of keyboard event handlers in my flex application, all of whom are queried when key down events occur. Basically, when a visual component is on screen, it is a candidate for handling a key press event. Something like this (clearly this is pseudocode): <application handles_keys="F5, F6"...

Disabling the keyboard in windows c++?

How can I completely disable the keyboard using c++ in windows? And by completely disable I mean so even ctrl+alt+delete doesn't work. I did consider using a keyboard driver but I think you need to restart the computer after it is installed, but since I only need to disable it for a couple minutes that wouldn't really work. ...

windows: load a filter driver while windows is running

Is it possible to install a keyboard filter driver(like ctrl2cap) while windows is running and not having to reboot? I tried it once with a driver loader but I got a BSOD. If it is possible what was I doing wrong? What can I do next time to not get a BSOD? Also, if it is possible, could I do it with c++? Thanks for the help! ...

Tabbing to invisible control in WinForms

I have a note editor control in my Windows Forms application: I want to make this control accessible through the keyboard: I want to be able to TAB to it, TAB through the controls, and TAB out of it. Normally this is an easy task, however, the issue is the hidden subject textbox. By design, the subject is editable only when the user ...

Interupting program flow in C

Okay, here's my problem: I've got a loop running that increments the value of a variable each iteration, and I want to be able to hit a key on the keyboard to stop the loop and report the final value of the variable. Thing is, I can't figure out how to do this in C. I feel stupid because it seems like I'm overlooking some really simple a...

iPhone Keyboard Covers Text Field

I have an app where, in Interface Builder, I set up a UIView that has a text field near the bottom of the view. When I run the app and try to enter text into that field, the keyboard slides up overtop of the field so I can't see what I'm typing until I hide the keyboard again. Has anyone else run into this problem and found a good way...