keyboard

Where can I find a list of key codes for use with Cocoa's NSEvent class?

I'm looking for a comprehensive list of the available key codes that can be used with Cocoa's NSEvent class. The NSEvent class has a keyCode property, which is defined as unsigned short. The following code, when placed in an appropriate UI object, will echo the key codes as they are pressed: - (void)keyDown:(NSEvent *)theEvent { NSL...

How can we detect hotkeys registered by other apps?

Is it possible to detect all the hotkeys registered by the OS as well as software applications currently running? Any native or managed approach on the Windows platform? I know that the RegisterHotKey function returns false if the hotkey is already registered, but what I am looking for is an approach, method, etc. that will give me a lis...

How to check a chackbox without window focus.

Hi! I just wanted to know, what would be the c# coding to check a checkbox (named cBox) even when the window does not have focus? I need the exact coding and what the using directives would be. Thank you for all who helped! I'm sorry to those of you who feel like I am just asking too much. I am brand new, and I had tried using Global...

Determining HID interface to be POS or Keyboard in C++

I've got some bar code scanner devices that can handle a variety of USB interfaces (COMM Emulation, HID Keyboard, HID POS, etc.) The problem is that, while I can tell if the device is in a HID mode, I need to be able to determine if it's HID Keyboard or HID POS. Is there a way to determine this using Win32 C++, preferably with the buil...

If I send a WM_KEYDOWN message (using wndproc) will the computer hold the key down until I send WM_KEYUP?

I am looking for a solution to programmatically hold a keyboard key down during some time (I don't know how many time). I think that if I send a WM_KEYDOWN message the key will be held down until WM_KEYUP is send, but I am not sure. I would test it. But I need to go and I don't have much time. I want to see if someone already tested th...

I want to make a virtual keyboard. Do I need to send WM_KEYDOWN to the current active window or HWND_BROADCAST?

I am making an app that simulates a keyboard. I will do it by sending WM_KEYDOWN to a window, but I am not sure where to send the message. to the currently active window or to HWND_BROADCAST? Here is an other question I posted, related to this one. http://stackoverflow.com/questions/2089968/if-i-send-a-wmkeydown-message-using-wndproc-wi...

Can the sendinput API simulate a keyboard key being held down during some time?

My app will need to simulate a key being held down during some time. I don't know how many time. Can I use the sendinput API for this? ...

"Keyboard not responding" in emulator?

I'm using Android 2.1 SDK on MacOS 10.6.2. When I try to run the standard Notepad app in the emulator, I get the expected messages from Eclipse [2010-01-18 17:42:24 - NotesList]New emulator found: emulator-5554 [2010-01-18 17:42:24 - NotesList]Waiting for HOME ('android.process.acore') to be launched... [2010-01-18 17:42:26 - Emulator...

How to disable keyboard tap sound on iphone?

How do we disable the keyboard tap sound programatically? I am sure it's a setting in UItextfield. ...

Ignore auto repeat in X11 applications

If you press and hold a key in X11 while AutoRepeat is enabled, you continuously receive KeyPress and KeyRelease events. I know that AutoRepeat can be disabled using the function XAutoRepeatOff(), but this changes the setting for the whole X server. Is there a way to either disable AutoRepeat for a single application or to ignore repea...

UIWebView Keyboard - Getting rid of the "Previous/Next/Done" bar

I want to get rid of the bar on top of the keyboard that appears when you focus a text field in a webview. We have some other ways of handling this and it's redundant and unnecessary. ...

Does Eclipse support keyboard shortcuts known from Visual Studio?

First, I know it is possible to setup Visual Studio keyboard scheme in Eclipse after installing CDT plugin, but unfortunately most useful keys only work with C/C++ sources, not with Java. I'm trying to configure Java editor but I'm unable to find some of most useful shortcuts... Go to declaration (VS: Ctrl+F12) / go to definition... (V...

Keyboard Layout library to find Neighboring Keys given an input key (java preferable)

Does anyone know of a library (preferably java) that can give me neighboring keys given a key input for US_ENGLISH standard keyboard? E.g. if I input the character 'd', I should get the following characters returned: [w,e,r,s,f,x,c,v]. Alternatively a grid manipulation api would work too (so that I can instantiate a grid with a qwerty ...

Controlling cursor and keyboard with C++/Visual C++

Hello This time I have a question about C++. I'm using Dev-C++ for programming, but I also have Visual C++ Express installed so both are good. I'm creating a program like automated tasks, is it.. macro? But as I'm a noob in C++, because I started it a week ago, I need help. Please keep the answers simple :-D This is a part of my learnin...

UITextField, automatically move to next after 1 character

Scenario: I have 4 UITextFields that only accept 1 character. Easy. Problem: After I enter the 1 character, I want the next TextField to become active automatically without having to press next (i.e. I'm using the UIKeyboardTypeNumberPad, and theres no NEXT button. (I KNOW I can actually create a next button programmatically, but I dont...

New soft-keyboard

I have one question: How can I select what soft-keyboard an edittext will load? Thanks ...

Universal Key Code (Java)

Hi I'm programming a listener that based on the key pressed by the user, must act in a certain manner. I need to be able to determine if a user press the 'i' key or 'm' key. Actually I'm doing it like: // If pressed the 'i' key if ( evt.getKeyCode() == 73) { // } ... I look out here and with the sample applet determine that the i...

Rotation causes keyboard to become nonresponsive

I have a UIViewController embedding a UITextField. When the user starts editing the text field, the view of the view controller is descreased in size so that the keyboard won't cover up the textfield: - (void)keyboardWillShow:(NSNotification *)note { // Find the height of the keyboard CGRect keyboardRect; [[note.userInfo valueForKey:UIK...

How to measure position of UI objects on iPhone simulator screen

I have calculated positions and offsets on paper. I have written code and debugged that I get expected results. However on iPhone Simulator things are overlapping by about 15 pixels. To go on with my debugging, I need to know where exactly UI objects are on the screen. Related to popup search keyboard and resizing a UITableView between...

Handle the KeyDown Event when ALT+KEY is Press

Hi, AnyOne knows how to do this in .NET? ...