keyboard

How to make the keyboard go away in the iphone simulator

I've got one text entry box in my iphone app, when you touch it in the simulator, the keyboard pops up. But there's no way to get rid of it. Other web pages give solutions, without explaining why they should work, and they don't work for me. One says make the text box's delegate your uiview then call resignfirstresponder on the object, b...

Programatically get/set Mac OSX default system keyboard shortcut

I'm trying to find a way to programatically get/set the default OSX system keyboard shortcuts (hotkeys) found in the System Preferences -> Keyboard & Mouse -> Keyboard Shortcuts tab. I need to be able to do this in the background, so GUI scripting is not a solution. I'm unable to find a plist or anything where this info might be stored...

Global Keyboard Hooks (C#)

Hey, I was wondering if anyone could help me setup a Global Keyboard Hook for my application. I want to set Hotkeys (Such as Ctrl+S) that can be used when not focused on the actual form. Anyone got an idea? ~Regards Luke ...

Windows program to report keypresses

Problem: I am using Windows as a guest operating system in a Virtual Machine and a funky keyboard setup. I need a way to be able to troubleshoot cases when keyboard hotkey combinations are not functioning properly. Question: Does anyone know of a program that quickly and easily displays on the screen what keypress windows thinks it got ...

How can I send the F4 key to a process in C#?

I am starting a process from a Windows application. When I press a button I want to simulate the pressing of key F4 in that process. How can I do that? [Later edit] I don't want to simulate the pressing of the F4 key in my form, but in the process I started. ...

How to make a Custom Keyboard layout ?

What's the best way to make a keyboard layout for Windows? Specifically a layout that will appear in the 'Text Services and Input Languages' list and without buying expensive software. I know about the Microsoft Keyboard Layout Creator but find it completely limited as you can't do simple things like remap the CapsLock key or the numbe...

Capturing Keyboard strokes in C#

HI, I have the following problem- the following text is in a rich text box . The world is [[wonderful]] today . If the user provides two brackets before and afer a word, as in the case of wonderful , the word in brackets, in this case, wonderful shall change to a link, ( with a green colour ) . I am having problems in getting the seq...

Custom Keyboard on Windows Mobile

I want to make my own custom keyboard on a windows mobile device. I think they are called SIP (Soft Input Panel). Can someone give me a pointer on how to do this? Maybe there are samples out there i can not find. ...

Change keyboard locks in Python

Is there any way, in Python, to "programmatically" (:-) change the CAPS LOCK/NUM LOCK/SCROLL LOCK states. This isn't really a joke question - more like a real question for a joke program. I intend to use it for making the lights do funny things ;-) ...

Using OpenGL /GLUT how would I detect if two keys are held down at the same time?

Using OpenGL /GLUT how would I detect if two keys, say 'a' and 'j' are held down at the same time? (This program needs to compile with OSX GCC, Windows GCC, Windows VS2005 so no OS dependent hacks please.) ...

Is it possible to programmatically disable the Caps Lock key on Windows?

The Caps Lock key is driving me nuts - I never use it intentionally, but sometimes accidentially press it instead of TAB. My current solution is to remove the button with a screwdriver (no damage, can be placed back if ever needed). Is there a way to disable the Caps Lock key programmatically on Windows - write a program with a keyboard...

How is keyboard auto-repeat implemented on a Windows PC?

I want to be able to intercept (and do arbitrary processing on) auto-repeating key presses on Windows. I'd like to know how keyboard auto-repeat is implemented so that I know what options I have. i.e. can I intercept at the: application, device driver and/or hardware level ? Update: It looks like auto-repeat is (poorly?) generated a...

capturing what keys were used to launch vbscript

I have an application that has 'macro' capabilities. When I map some keys on the keyboard to perform the 'macro', I can also have it launch vbscript instead. What i'd like to try and do is within my vbscript figure out what keys were used in order to launch the script. Is it posible to do this? Could there be a way in vbscript to figur...

wxPython dialogs: "Enter" keyboard button would not "ok" the dialog

I am creating a custom wxPython dialog by subclassing wx.Dialog. When I press Enter while using it, (and while being focused on one of the form elements,) it just takes the focus to the next form element, while I want it to press the ok button. How do I solve this? ...

Using command as ctrl in a Mac OS X terminal

I'd like to have my command key work as a ctrl key in the Mac OS X terminal. That is, I want "command-c" to do the same thing as "ctrl-c". Does anyone know of a way to do this? Specifically, I would really like this to work in emacs. Emacs uses a LOT of ctrl key bindings and reaching for the control key is beginning to strain my wr...

How can I intercept all key events, including ctrl+alt+del and ctrl+tab?

I'm writing a screen saver type app that needs to stop the user from accessing the system without typing a password. I want to catch/supress the various methods a user might try to exit the application, but all research I do seems to point me to "you can't". Anything in C# or C++ would be great. I've thought of disabling the keyboard,...

Keyboard Iphone

Is possible to know when the user touch the keyboard iphone? When the user touch some button from keyboard... :/ ...

iPhone - Problem with UITextView

This is probably an easy thing to do, but I just can't figure it out - how do I end editing athe textview? how can I get the keyboard to disappear? or do I have to click outside it to make it go away? ...

Grab mouse movement

I am writing a little utill for me on ruby using qt. How to access global mouse movement and keyboard input events? ...

Is there a way to read input directly from the keyboard in standard C++?

And I know there's std::cin, but that requires the user to enter a string, then press ENTER. Is there a way to simply get the next key that is pushed without needing to press ENTER to confirm ...