keyboard

How to programatically check whether a keyboard is present in iphone app?

Hi, I need to check condition is keyboard appearing, in my iphone app. like: if(keyboardIsPresentOnWindow) { //Do action 1 } else if (keyboardIsNotPresentOnWindow) { //Do action 2 } So please help how to check this condition? Thanks. ...

Program new functionality for zoom button on Microsoft Natural Ergonomic Desktop 7000

Hi I just bought a new keyboard and mouse (Microsoft Natural Ergonomic Desktop 7000) and it has a neat little zoom lever in the middle of the keyboard. What I'd like to do is write a little program (in C# or Python, for use on Windows Vista) which makes the zoom button act like a scroll button instead. I have no idea where to start. Wh...

mysql 5.1 client keyboard setting

After the client into the key and other buttons appear ~ character, rather than go to the top of the line or the last surface mysql>nsert into _ I press <Home> Key NOT appear: mysql>_nsert into Appear: mysql>nsert into ~_ /etc/inputrc is corrected... ...

mysql 5.1 client keyboard setting

In Linux In MySQL 4.0, I press <Home> the cursor will go to the beginning of line, but has no effect according to press <Home> in MySQL 5.1, it appear a "~" character only. I press <Ctrl>+<A> the cursor go home I press <Ctrl>+<E> the cursor go end But in MySQL 4.0 I press <Home> Not <Ctrl>+<A> My practice is to press <Home> <End> <D...

Workaround for AS3 language bug?

Does anyone know how to fix the bugs in Actionscript / Flash regarding keyboard input of European characters? Entering, for example portuguese characters, works fine on PC, but not MAC, this bug is on both Flash 9 and 10. These does not work: Á, Â, Ã, À, Ç, É, Ê, Í, Ó, Ô, Õ, Ú. Works sometimes (but typically only the first time): ç ...

Capturing keycodes in shell?

I am writing my own shell and need to implement a history feature where up and down arrow keys show history of commands executed. I need to find out when up and down keys are pressed. How do i do this? ...

iPhone keyboard-button style for any UIView / UIButton?

Hi guys, I have a custom keyboard in my app and I'd like to have it look similar to the original iPhone keyboard (especially the buttons), just like it has been realized in Twitterrific, for example. Can you point me to a resource where I could find such code, either as a custom drawRect method or as a TTStyle pipeline? Cheers MrMage ...

using mouse left, right, up, down with galleria javascript

i am playing with this library, Galleria, which is pretty neat. here is the url below: http://devkick.com/lab/galleria/ but i can't see anyway to move from one thumbnail to another with the keyboard (right, left, etc) . . has anyone used this library and got this working? ...

How to get iPhone OS 3.1 muffled keyboard sound?

Hi there, I have added the iPhone's Tock sound to my own custom keyboard like this: NSString *path = [[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID); AudioServicesPlaySystemSound(soundID...

D 1.0 (Tango) Move mouse; simulate keyboard presses etc.

Hey, I'm using D 1.041 with Tango 0.99.8 and was wondering how I would go about moving the mouse and simulating keyboard presses and getting infos from the screen, for example the color of a specific pixel on a specific coordinate. I'm using Windows. Any help would be greatly appreciated. I want to program a class-based library with fun...

How do I read events from a HID device under Ubuntu Jaunty?

I have a Linux USB HID device (a Hama MCE), and I can read its events manually by reading cat /dev/input/event7 and cat /dev/input/event8. Whenever I press a key on the device, a few bytes become available for reading with one of the cat commands above. I have a default installation of Ubuntu Jaunty 64-bit desktop on the machine. I thin...

How to detect if the delete key was pressed in Actionscript 3?

How do I determine if the delete key was pressed using actionscript? addEventListener(KeyboardEvent.KEY_UP, onKeyUp); ... function onKeyUp(event:KeyboardEvent):void { trace(event.keyCode); } The above code yields no value when delete, backspace, enter, and other command keys are pressed. However, arrow keys do yield values. ...

Get keyboard status in WPF Application in Main-Method during startup

When my appliactions starts up in the static void Main Methode I want to determine if a key like Alt or Ctrl is pressed and then start the Application in some kind of Option-Mode. How can I find out if a key is pressed during startup? I found some samples already but they all import a windows dll. Something I don't want to do. ...

how to fill up numbers in a form field via a popup key pad(using Javascript/AJAX)

I have a small project, wherein I need to develop a keypad with all the digits+backspace+decimal (all as buttons). These digits when clicked should populate a form field (say a text box). This keypad should be located next to the form field as a link. The keypad should be preferably Javascript/AJAX. Also the keypad routine should have a...

How to hijack the Caps Lock key for Cut, Copy, Paste keyboard operations

Here is what I am trying to accomplish: To Copy, press and release Caps Lock ONCE To Paste, press and release Caps Lock TWICE, quickly To Cut, press Ctrl+Caps Lock The reason I want to do this is often times i find my self looking down to press the correct X/C/V key, since they're all next to each other (atleast on a QWERTY keyboard)...

Keyboard remapping with more modifiers

I'm looking for a way to add one more "layout" to my keyboard. I'm already using a layout that uses altgr for local alphabet letters. What I'd like to add is a mirrored righthand-side keyboard that's activated with the caps-lock (one described in http://xkcd.com/mirrorboard.xkb) Unfortunately ISO_LEVEL3_SHIFT is already taken by local a...

.Net KeyEventArgs return vs enter

Have this in a c# .net application: string key = e.KeyCode.ToString(); in .net 1.1 key = "enter" in .net 3.5 key = "return" my question is why are they different? ...

iPhone Keyboard Filter Question

I want to limit the character users can type in iPhone's keyboard, so I created an array of my own. e.g. The array including 0~9 and a dot to enable users to type a price. Then I can return NO for -(BOOL)textField:shouldChangeCharactersInRange:replacementString: if the replace string is not in the array. The problem is that the backspac...

python - get a key press from the linux command line without having to press enter

I'm writing a command line python programme on linux. I want to ask the user to press a single key, and then it should return that key press. I don't want them to have to press enter, so I can't use the builtin raw_input() method. ...

How to ask bash to wait for a result and send a SIGKILL when it get it ?

I want to use zbarcam but after reading a barcode, it doesn't stop. $ zbarcam | xvkbd -file - -window emacs EAN-13:6941428130969 CODE-128:3096140900557 Do you know how I can tell bash to kill zbarcam after printing on the stdout the first \n ? ...