Hello,
I would like to create an application wide keyboard shortcut for a Java Swing application.
Looping over all components and adding the shortcut on each has focus related side effects and looks like a brute force solution.
Anyone has a cleaner solution ?
Regards,
Louis
...
Hey,
How would one go about capturing users keystrokes in the SMS composer on the Symbian OS, specifically for a Nokia N73 (or any of the symbian supported devices http://en.wikipedia.org/wiki/Symbian_OS#Devices_that_have_used_the_Symbian_OS)? I'm new to symbian development and I'm trying to write an application to analyse writing style...
My application resides mostly on the system tray on minimize. I'd like the user to be able to hit a keystroke (like ALT+SHIFT etc.) and it shows up on the screen (sort of like Launchy, if you've used it; or the Google search bar).
Anyone knows how to do it?
...
I'm a bit rusty on my Windows system programming...
Is it possible for a program to send a keystroke (I'm guessing by SendMessage() api call) to another application, if the (open) target application does not currently have the focus? If it is possible, does it then make the target application become the active application, or does it s...
I need to transfer focus onto another element when user press Enter key, so I succeded to register KeyStroke on most elements this way:
this.getInputMap( ).put( KeyStroke.getKeyStroke( '\n' ), "transferFokus" );
this.getActionMap( ).put( "transferFokus", transferFokusa );
everything works fine except for my class which extends JX...
I have made an application already that sends commands to an activated window. I want to be able to use the computer while my process is running because as soon as I switch focus to another window the key strokes being sent via send keys will go to the window I just switched to.
Currently I use FindWindow, IsIconic, and ShowWin...
Easy one for you guys.
I have a textbox on top of a listbox.
The textbox is use to filter ther data in the listbox.
So... When the user type in the textbox, I would like to "trap" the down/up/pagedown/pageup keystrokes and fowarding them to the listbox.
I know I could use the Win32 API and send the WM_KeyDown message. But there's mus...
what i want to do is have a background application which by itself or its modules run only when a certain key is pressed. Like when i press F10 some code that i have written executes and then quits or goes to sleep then again when i press F10 i executes again and goes to sleep but in between keystrokes it does not takes any processor tim...
This may be a cardinal programming sin, but what's the easiest and quickest way via executable or batch file to bring focus to Window X and hit keystroke Y? This won't be reused, and X and Y can be hard-coded if necessary.
edit: on a Windows machine
...
Hi, does anyone know how i can setup an event handler so that if the keystrokes Alt + Shift + Ctrl + a letter will do something?
...
hello!
is it possible to edit a keystroke using a winapi keyboard hook? well, not neccesary a keyboard hook but something like it..
i wanna do something like this:
user presses key 'A'
my function adds 1 to the virtual keycode (just an example)
the 'A' becomes an 'B'
and the 'B' is sent to the destination application
thanks!
...
Hi.
I must replace keystroke when user typing in TextBox.
When user type 123,456,789 text box must contain 123.456.789.
Please HELP.
...
hi,
i'm trying to capture keystrokes inside my prototype function, here's my code:
function txtBox(input) // pass textbox
{
this.id = "myTextbox";
this.txt = input
}
txtBox.prototype.init = function()
{
this.txt.bind("keyup",this.keyup);
}
txtBox.prototype.keyup= function(event)
{
alert("keycode: event.keyCode);
...
hi all,
i'm having a widget with a search-textbox. when pressing enter in it, search starts.
i now want to trigger that enter key by code. in other words, i want to send the enter-keystroke to the textbox.
how does it work?
thx
...
Recently I made an autoclicker for a game, which would allow you to use F1 and F2 to turn it on or off, once I finished the application I thought to myself, "oh great, I forgot Java doesn't let you record outside keystrokes and mouse movements", is there any simple non-native ways to do this?
Thanks.
...
I've written a little video game in Flex that runs in a browser. The player moves by pushing the arrow buttons on the keyboard, so I need to capture those keystrokes. In fact, the game action starts when the player presses one of those keys.
In order to capture the keystrokes, the Flash/Flex application, not just the browser, needs to...
I basically want how to easily determine the keystroke value of a Wingdings character? Looks like a very old version of Charmap used to have this functionality but no longer from what I see in Windows 7 version of the tool:
http://www.smartcomputing.com/editorial/fullsize.asp?guid=1C2531EB9E2F4ADA8155C9DBF9DBEA0E&image=00010557.jpg...
Is there any way to send a copy (command-c) instruction without using a cgEvent to mimic the keystrokes? I don't have access to the text field in the application I want to take text from, so need to replicate manually copying to the clipboard, and there seemss to be a bug with cgevent posting.
According the Quartz documentation, to typ...
Hello everyone,
I have a div that has been given a tabindex, when the div is focused(click or tabbed to) it does the following:
inserts an input into itself,
gives the input focus
this works great in FF, IE and Opera
but in Chome/Safari it gives the input focus but fails to actually put the cursor inside the input (I know it gives it...
I have INPUT element and I want to reset the previous value (not necessary original value). There are 2 ways:
Save the value in another variable and pull it out again
Press ESC key. But I don't want users to press ESC but click a button.
So for #2, how can I create a ESC keystroke using jquery?
...