Questions tagged [keystrokes]

98 questions
0
votes
1 answer

How to use keys to influence movements on a window in python

I am relatively new to programming and I've gotten into attempting to recreate classic arcade games to increase my knowledge of programming. Right now I'm trying to re-create Pong. I have created all the necessary animations for the game, but i have…
0
votes
2 answers

Good Language to Send Keystrokes to other programs

What would be a good language to send keystrokes to third programs. Such as skype, emulators, and such. It can be a scripting language or an OOP language. Any suggestions?
Dylan Holmes
  • 335
  • 1
  • 6
  • 17
0
votes
2 answers

SendKeys VB.net

Hi ive developed a application that works with my site by using SendKeys.send("{ENTER}") to submit info on one of my forms. Is there a way to stop it from running outside the application? For example im trying to run the program in the background…
MikeyT
  • 1
  • 2
  • 2
  • 4
0
votes
1 answer

Universal approach to send virtual key codes with Delphi

I am trying to write international program and need to send some text to "other text edit programs" like word or notepad or a browser. On the other hand I am not sure that I can find an international way(because of the different keyboard…
user3057015
  • 41
  • 1
  • 7
0
votes
1 answer

Sending Keystrokes to a separate Java process

I need to be able to send a set of keystrokes from one Java application to the other. I am creating the one that send the keystrokes, but I am unable to modify the receiving end and thus need some sort of method to send them through either the Java…
Cal Stephens
  • 725
  • 9
  • 20
0
votes
2 answers

Sending keystrokes to a single program

Is there a way to send keystrokes to 1 single process/program? By doing so you should be able to send keystrokes only to this single process/program(while it is minimized) so the keystrokes aren't recognized by the other programs. ps. this would be…
MrMe TumbsUp
  • 416
  • 1
  • 4
  • 17
0
votes
1 answer

WM 6.5 C# console application, capturing keystrokes while running in the background while another application has focus

Hi I'm developing a C# WM 6.5 console application. It is running in the background while another application has focus. I need to be able to capture when the user presses the ESC key however I do not want to interfere with the operation of the…
0
votes
1 answer

Translating chars into keystrokes in java

I've seen similar questions about this issue, but what happens to me is a little different; I am developing a remote control application and I'm sending keystrokes to my computer. The Robot class in java only accepts VK_CODES for keystrokes, so I…
Sebastian Breit
  • 6,137
  • 1
  • 35
  • 53
0
votes
2 answers

How to define the keyStroke for the numpad - enter key

I'm about to use keybinding in a swing application for the num pad enter key, but the key is difficult to catch. All examples I have seen rely on something like key == KeyEvent.VK_KP_LEFT where VK_KP_LEFT is some predefined value. Other options…
tarik
  • 73
  • 2
  • 10
0
votes
0 answers

Detecting keystrokes while program is running in background

I am trying to create a small C# program using Visual Studio that simulates "Autofire" or "continuous clicking" for Afk monster-grinding on my Minecraft server. The program works, or works when the program is in "foreground". I can start and stop…
Kim Jensen
  • 319
  • 2
  • 8
0
votes
2 answers

Sending keystrokes to STDIN of a linux process

I have an application which publishes realtime market data rates. This app is invoked from the command line and has an interactive mode where the user can change various parameters on-the-fly by simply typing the parameter followed by it's…
Wilko
  • 289
  • 1
  • 4
  • 14
0
votes
1 answer

Adding KeyStroke to JCheckBox

I want to add KeyStrokes to group of CheckBoxes ,so when user hits 1, keystroke will selected / deselected first JCheckBox. I have made this part of code ,but its not working, can somebody point me into correct direction? for (int i=1;i<11;i++) …
Ľubomír
  • 1,075
  • 1
  • 12
  • 20
0
votes
1 answer

Release KeyBinding with Meta Mask

I have a KeyBinding for my Java game, where I use the meta key and the Z key to move to the left. i.put(KeyStroke.getKeyStroke(KeyEvent.VK_Z, 4), "Z"); m.put("Z", sprite_moveLeft); How do I write the release form of this?…
minoue10
  • 81
  • 1
  • 10
0
votes
2 answers

How can I send a period with the Sendkeys.SendWait() function?

How do I send a period using sendkeys? I have tried: System.Windows.Forms.SendKeys.SendWait("{.}"); System.Windows.Forms.SendKeys.SendWait("."); but neither of these work. I am trying to send the keyboard shortcut to a Google search window to…
Ray
  • 325
  • 4
  • 15
0
votes
2 answers

wireless keyboard/mouse application: simulate keystrokes

I'm currently studying socket programming, i'm working on creating an application to use my phone as a wireless keyboard/mouse. My current approach is to have the phone app send messages over wi-fi to an application on the computer which will…
Mike Alike
  • 129
  • 2
  • 6