I'm working with an on-screen keyboard that needs to send key strokes to a third party application. They are running on Windows XP. A small set of characters that are not available on the US English keyboard need to be supported (such as "å" or ñ). After reviewing SendInput it seemed like the safest thing would be to send the hex unicode...
Hi,
I have a control with KeyDown and KeyUp events as shown below. The problem I am having is that 'x' is TRUE in KeyDown but always FALSE in KeyUp. I am trying to detect the Alt key (as you may have guessed).
Is there a gottcha that I don't know. I mean, when I press Alt it detects it ok but on keyup it's false.
Any suggestions/ideas...
In fact, i am implementing a virtual keyboard for my input method with Input-method Kits (IMKits). How can i achieve this? Which functions i need to override? Appreciated for help.
...
I would like to create small app (in C#) to switch active keyboards and mouses in windows.
For example i have 10 mice and 10 keyboards (in one computer with USB hub) and I would like to ban one or more of these.
Is something like that even possible? I have no clue how to achieve this task.
Any ideas, Thanks!
...
Hi, I have an requirement to implement a custom keyboard for a Cocoa Touch data entry screen containing multiple UITextFields. I've built the keyboard, and everything is working except now I need to figure out how to implement a blinking cursor. (When you disable the UITextField's built-in keyboard, you lose the cursor as well). In googl...
How would I capture the user pressing CTRL twice (CTRL + CTRL) globally. I want to be able to have my application window hidden and then make it visible when the user invokes it with the CTRL+CTRL key presses similar to Google Quick Search Box. The user may have focus on a different window. I've looked at RegisterHotKey, but that seems t...
I have a Windows Mobile 5 application written in C#.
I have a client with HTC Touch Pro 2 using Windows Mobile 6.5, and the client claims he can't use the hardware keyboard to type in stuff as it doesn't come through. He can use only the on screen keyboard to type in stuff.
I have a Treo 750 with hardware keyboard and does work fine for...
Is there any free code online for a physically modeled (i.e. not sample-based) piano sound? Examples of commercial software include Pianoteq and the firmware for Roland's V-Piano. This is for an open-source digital piano project I'm working on.
...
I'm writing a program that uses caps-lock as a toggle switch. It would be nice to set the LED of the key to show that my program is on or off, like the capslock key does naturally.
I know that I could just SendInput('Capslock'); or whatever to actually turn caps-lock on and off. But my app is a typing program, and I don't want to have t...
the script i've pieced together so far looks like this:
<script type="text/javascript">
/* KEYNAV */
document.onkeydown = function(e) {
if (! e) var e = window.event;
var code = e.charCode ? e.charCode : e.keyCode;
if (! e.shiftKey && ! e.ctrlKey && ! e.altKey && ! e.metaKey) {
if (code == Event.KEY_LEFT) {
if ($('previous_page_link')) ...
Hello,
I've got a mouse with scroll and a keyboard with scroll. Both devices are connected using USB, both scrolls send the same event ("mouse button 4/5 press/release"). I'd like to map up/down arrow keys to the keyboard scroll, but not the mouse scroll.
Any ideas of how to do this programatically? I think I have to do this at the X s...
Hi all,
Is there a way to use the winkeys inside vim? I know I can set winkeys to act as Alt, Ctrl or other keys, but without it there is a way?
Thanks!
...
I've a listview like this
ListView:
————-----
Mango
Orange
Grapes
Grapes
Grapes
Apple
Strawberry
Whenever i navigate using downarrow, the BlueHighlight pauses at the first Grapes, a dotted rectangle start from second grapes and pauses at the third grapes, then the BlueHighlight resumes from Apple. This seems weird and it...
Using a Visual FoxPro 9 executable file, (EXE), I need to be able to place data into the system keyboard buffer which is then to be picked up by another program, (non-FoxPro). I've already tried using the KEYBOARD command, however, that only seems to work with fields and controls within the FoxPro application! Does anyone have any ideas ...
How to determine if selection is made programmatically or by user input.
I started to write something but since there is more work I decided to seek for some out-the-box procedure or rely on the community experience.
So here is what I wrote (Note that answers in C# are welcommed too):
Private Shared Function IsUserSelect() As Boolean
...
System.Diagnostics.Process exposes a StreamWriter named StandardInput, which accepts only characters as far as I know.
But I need to send keystrokes as well, and some keystrokes don't map well to characters.
What should I do?
...
I use Windows 7 64-bit with 4 GB RAM to run a Windows Virtual PC Guest with Windows 2008 Server, Visual Studio 2008 SP1/Resharper 4.5 and SQL Server 2008. The guest has 2 GB RAM allocated.
Sometimes certain keys stop working in the VS IDE, most often the arrow keys, backspace and enter. The keys still works in Windows and other applicat...
I'm trying to programmatically send modified keystrokes, for instance a capital "A". The problem is that the shift modifier does not seem to have any effect.
In my code, I have two events, one for the shift key down, and another for the 'm' key down.
CGEventRef mDown = CGEventCreateKeyboardEvent(NULL, (CGKeyCode)46, true);
CGEventRef ...
Trying to connect to Facebook to make a statusupdate through my Android application.
Got the whole thing running but I need API key + secret. Where can I create/get a hold of these?
private static final String apiKey = "<YOUR API KEY>";
private static final String apiSecret = "<YOUR SECRET KEY>";
Tried the same thing with Twitter and...
Is there anyway to have jEdits keyboard controls behave the same way that a native Mac OS app does?
By behave I mean command+left moves the caret to the start of the line, alt+left moves to the beginning of the current word etc.
...