Questions tagged [keystrokes]

98 questions
22
votes
4 answers

Disable statement completion on space in Eclipse Content Assist

Is there a way to disable auto-completion feature of Eclipse, which inserts currently selected statement in Java Content Assist when pressing space? I still want to have such a behavior for enter key (and only for enter).
tomash
  • 687
  • 1
  • 6
  • 17
15
votes
2 answers

How do you move the pointer up or down multiple lines with Emacs?

I can move my pointer up and down one line with my arrow key just fine in Emacs, so I'd like to redefine C-n and C-p to move up and down 5 lines at a time. I'm just beginning to learn how to use Emacs, and elisp is very alien to me. I tried using…
Peter Ajtai
  • 56,972
  • 13
  • 121
  • 140
13
votes
1 answer

Send keystrokes to frontmost app from sandboxed cocoa app

I need to send keystrokes to front most app from my cooca app. I already have working code for it by using CGEventCreateKeyboardEvent() and AXUIElementPostKeyboardEvent(), but it only works if app is not sandboxed. I have searched google for the…
AmitSri
  • 1,209
  • 1
  • 20
  • 48
12
votes
2 answers

Capture any kind of keystrokes (aka keylogger), preferably c# .net but any kind will do

I need to capture everything that I type on my keyboard and then store it in numerous ways. I'd prefer it to be written in C# for .Net, but anything will do really. My reasons to write this "keylogger" are simple: Recently I became an owner of a…
Istrebitel
  • 533
  • 3
  • 6
  • 8
12
votes
2 answers

Use Python to send keystrokes to games in Windows?

I've been working with Python in a Windows environment and I wrote a script to automate some tasks in a known game. The task involves heavy use of both mouse and keyboard inputs. Said script, however, has only one issue: it cannot send keystrokes to…
Daniel Shaw
  • 247
  • 1
  • 4
  • 11
7
votes
2 answers

Sending an application keystrokes with "SendMessage" (vb.net)

So far, I have all the handle capturing and gui set up. I'm stumped as to how to perform the actual step. I have this code: SendMessage(New IntPtr(CurrentHandle), WHAT,GOES,HERE?) I've been looking…
Freesnöw
  • 30,619
  • 30
  • 89
  • 138
7
votes
2 answers

Send Keystrokes to a program even if its in background using c#

I wanna send key stroke to a program even if it is running in background. But I can do this only for NOTEPAD like this, [DllImport("user32.dll")] protected static extern byte VkKeyScan(char ch); [DllImport("user32.dll", SetLastError =…
Sency
  • 2,818
  • 8
  • 42
  • 59
7
votes
1 answer

JPanel doesn't react to KeyBindings

I am working on an application that requires a JPanel to react to the escape key being pressed. I am pretty sure i used the right method for registering keybindings to a component but clearly i am still doing something wrong. This is the code…
Exevan
  • 335
  • 1
  • 3
  • 24
5
votes
2 answers

Sending text/keystrokes to unselected window?

Is there a way to send keystrokes to a window that is not currently selected in C++? For example, if I have a notepad window minimized and want some text to be typed in it without bringing the window to the front. I'm using Windows 7 64-bit.
Tim
  • 51
  • 1
  • 2
5
votes
3 answers

In Java, what is the best way to capture a keystroke?

I'm having trouble capturing the keystroke in my Java command-line application. Using System.in.read() I don't seem to get anything when hitting the tab key. What is the best way to approach this? To give some context, I'm trying to allow a…
Wilco
  • 32,754
  • 49
  • 128
  • 160
4
votes
2 answers

C# Detect Keystrokes and Send to Background Windows

I've looked around for six hours today in search of a method to complete the task I'm looking to accomplish. However with little luck every method I've tried has come out not working. So the program I'm working on is a multiboxing application for…
Dpayne2841
  • 91
  • 1
  • 9
4
votes
2 answers

How to listen keyboard in background and fire keystrokes on demand?

I want to make a program in vb.NET 2008 which will listen keyboard in background, i.e. even though the application is minimized (globally). If a specific key is been pressed by user, it should keep firing 2 other keys at regular given time intervals…
3
votes
3 answers

Listening to keyboard events in C#

Im building a small application for my employer where hitting a certain keystroke will display a model box containing information that one of our technicians would require when providing one to one support. its a very simple application but tracking…
RobertPitt
  • 56,863
  • 21
  • 114
  • 161
3
votes
3 answers

javascript - capture input and convert characters

I want to capture input charcters in text box, convert then according to a table and put them back in text box as user types.
Enter phone number:
robert
  • 625
  • 3
  • 12
  • 23
3
votes
2 answers

Automatically open Content Assist in Eclipse when removing wrongly typed letters

Is there a way to open Java Content Assist in Eclipse, when pressing backspace (i.e. removing wrongly typed letter)? Consider an example: When we type this., the Eclipse opens Content Assist windows with code completion suggestions. Then if we write…
tomash
  • 687
  • 1
  • 6
  • 17
1
2 3 4 5 6 7