Hello,
iPhone/Objective-C/Cocoa newbie here. Based on a number of posts on stackoverflow, I have cobbled together an IBAction that I'm using in a basic iPhone calculator app that I'm building. The IBAction works with the numeric keypad to allow entry of decimal numbers without having to enter a decimal point.
I am trying very hard to ...
I don't want to show the virtual keyboard.
I tried the below method but it doesn't make any difference.
InputMethodManager imm = InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(enter_count.getWindowToken(), 0);
enter_count is my edit text
I have tried reading up on the InputMethod Ma...
hi there,
i'm writing an iphone application with an authentication page, where the end user puts his credentials.
I know that the iphone keeps traces of the keyboard strokes & i would like to reset the keyboard cache in order to prevent from hackers to dump the memory and reveal the user credentials.
Any suggestions? sample code refer...
Hello friends. I'm trying to make my first game, a console tetris.
I have a class Block, that contains x and y integers. Then I have a class Piece : List<Block>, and a class Pieces : List<Piece>.
I can already randomly generate pieces, and make them fall one row per second. I still didn't get to collisions detection, but I think that I ...
How do I (programatically) find out the key repeat delay and key repeat rate for a system?
A solution that works on any/all .Net capable platforms would be ideal, but the key target OSes would be XP, Vista, and 7.
...
I am trying to develop a touchscreen keyboard control in a C# WPF project that will be visible when a TextBox gets focus and is hidden when the TextBox loses focus. The projects I have seen for touchscreen keyboards have accomplished this by defining the keyboard as a new window rather than a control.
For my application, I would really...
In Javascript, how do I tell if a user is pressing two keys at the same time?
For example, I have drawn a circle in the middle of the screen. I want to move it up while the user holds down the up arrow and right while the user holds down the right arrow. That part works easy. If user holds both the up and right arrows, I want to move th...
Is there a way to interfere between the blackberry keyboard input and the key events that reach the foreground application? i.e. what we want to do is build a predictive keyboard functionality to be used on any application that needs keyboard input (like textboxes, emails, etc.), so we need to:
1) get the keys that are pressed
2) present...
hii all :D
i'm dying to see the source code for the voice enabled-keyboard feature for android :\
i'm new to open source developing yet i'm very interested in this application particularly
can someone tell me where to find the code ... please :)
Thanx in advance ...
...
Hello,
I have a situation here, I have a seach bar in my view. For this search bar I enter text in Hebrew (for information Hebrew is written from right to left).
When I am writing text say "abcd" then in hebrew first 'd' appears then 'c' then 'b' and so on.
While entering text in search bar when delete is pressed first 'a' will be del...
I am trying to hook the keyboard in my program, but there is something that I can't accomplish. The method below is the most important part in my class where I handle certain key combinations. All of them work, but I also want to hook Ctrl-Alt-Tab. I've spent hours trying to figure out what to do, but I came empty handed. How can I hook ...
Hello everyone!
I wonder if it is possible to figure out what keys user was pressing while his Mac OS was starting up?
Any way will do. As far as I understand it there is no easy way to simply hook an app/script to start working and capturing keystrokes simultaneously along with the OS. But maybe there is a way to some kind of reverse ...
Hello, my fellow developers! I hope very much that at least some of you will not get frightened by the amount of text this question contains (I simply did my best to be as descriptive as humanely possible). :)
To those who think I've asked this question to write malware or something. I want to write an application that will allow users ...
public delegate void KeyboardHookCaptureHandler(KeyboardHookEventArgs keyboardEvents);
public class KeyboardHookEventArgs : EventArgs {
private Keys _pressedKey;
private int _pressedKeyCode;
public Keys PressedKey { get { return _pressedKey; } }
public int PressedKeyCode { get { return _pressedKeyCode; } }
pub...
I have a Cocoa application I am building which contains an NSSearchField control. I want to enable a keyboard shortcut / key equivalent so when the uses presses COMMAND-OPTION-F, the search field gets focus.
However, after much searching, it is not clear to me what the best way to implement this is. There is not an option to set this fo...
Hi all, I'm creating a custom keyboard layout. As the beginning step, I want to have the user press a key, have my keyboard hook intercept it, and output a different key of my choosing.
I found this keyboard hook code, which I'm trying to slightly modify for my purposes:
http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx
I've c...
I'm trying to write a POS-style application for a Sheevaplug that does the following:
Captures input from a card reader (as I understand, most mag card readers emulate keyboard input, so basically I'm looking to capture that)
Doesn't require X
Runs in the background (daemon)
I've seen examples of code that will wait for STDIN, but th...
I want to able to hold a key down while the application is loading and depending on which is being held down a certain form is shown.
For example holding down shift and the opening itunes opens a little dialog allowing you set the library(or something)
I can check whether the shift/Ctrl/Alt are being held down but i'd prefer to use the...
I'm working on a FOSS project at http://unicode.codeplex.com. In this project we try to collect some information about standard keyboardlayouts.
What we want to know is there a place or document or ... which mention what's the Standard Keyboard Layout for exact language.
I mean if you are a German or American or Arab or ... , what's t...
I'm writing an iPhone app that has a textField for the user to enter a "dollar amount" like 12.34
None of the SDK keyboards seem to have a decimal point.
(OR do they?) So I decided to just let the user type in "1234" and I would add the decimal point for him... as he types.... by using EDITING CHANGED.
But each time my code adds the d...