Questions tagged [keystroke]

The generic concept of capturing or generating a keystroke event in an application.

The generic concept of capturing or generating a keystroke event in an application.

May also refer to library-specific keystroke-capture code, for example questions relating to capturing keystrokes using jQuery.

531 questions
-1
votes
2 answers

ProcessCmdKey does not pass Enter Key

Something has happened that is causing my code to always capture the Enter key but never process it. Meaning all my data entry boxes, grid controls etc. are broken. It is like the Enter key has been switched off. I have tried removing the…
Joe Ruder
  • 2,122
  • 2
  • 23
  • 52
-1
votes
1 answer

Sending keystroke/mouseclick via PostMessage() in C#

I already got mouseclick to work with one issue. If I set delay between WM_MBUTTONDOWN and WM_MBUTTONUP to more than 5 ms it won't work. Why is that? [DllImport("user32.dll")] public static extern IntPtr PostMessage(IntPtr hWnd, uint Msg, IntPtr…
guuczi
  • 79
  • 1
  • 1
  • 6
-1
votes
2 answers

entering when tk_messageBox appear in tcl

so i am trying to do some unit test in the tcl gui , in some part of the unit test , there is a tk_messageBox that will pop up and if i dont press enter , the unit test wont continue do anyone of you guys know how to replicate the enter…
-1
votes
1 answer

Which browsers use which key event system?

I notice that Javascript code seems to be written to read keystrokes in completely different ways, which I guess is to support different browsers. For example, here is one code block from a web page: if (document.addEventListener) { …
Tyler Durden
  • 11,156
  • 9
  • 64
  • 126
-1
votes
1 answer

Get keystrokes formatted

I'm new and still learning about C# I have this simple code (I got from a website) that captures the keystrokes and saves it in a file: [DllImport("user32.dll")] private static extern short GetAsyncKeyState(int vKey); public Form1() { …
newbieguy
  • 658
  • 2
  • 11
  • 29
-1
votes
2 answers

Mapping keystrokes to actual value? - Javascript

any cool libraries that you know about around? =)
RadiantHex
  • 24,907
  • 47
  • 148
  • 244
-1
votes
2 answers

how to get the keystrokes of a user?

I managed to get the user keystrokes and store it in an arrayList of type character. the only problem I have that when the user type something outside the JTextArea I wont be able to get the keystrokes any more. so is there a way of getting the…
johan
  • 39
  • 1
  • 7
-1
votes
2 answers

Applescript Realistic Keystroke

Is it possible to use Applescript to type text at a randomised speed quickly & efficiently? I have the following script: On run {input, parameters}: tell application "System Events" keystroke "H" delay 0.2 keystroke "i" delay 0.2 …
Mr T
  • 990
  • 10
  • 32
-1
votes
1 answer

Can I map keystroke to mouse event?

My OS Environment is Mac OS X 10.10. I want to do some mouse event by a keystroke. If I press a key, then the mouse will click on specific position automatically. For example, left arrow keystroke, then click on (1000,500). If possible, i want to…
차정민
  • 3
  • 1
-1
votes
1 answer

Trouble with KeyEvent and KeyStroke

I noticed that I get two different keyCode for the same Char. Here is a little experiment: package main; import com.sun.javafx.scene.control.Keystroke; import javax.swing.*; import java.awt.event.KeyEvent; import…
Synoon
  • 2,297
  • 4
  • 22
  • 37
-1
votes
1 answer

a basic keystroke map

I downloaded AutoHotKey today and read the tutorial. What I want to do is have an F2 key do a shift-ctrl-S in one application. I cannot figure out how to do that by reading the tutorial. How can I do it?
-2
votes
1 answer

script is not allowed to send keystorke

Applescript is not allowing to send keystrokes is my error my script is set texttowrite to "[ep] t [ef] t [ed] t [ed] [ts] [ed] t [ed]" tell application "Roblox" to activate tell application "System Events" repeat with i from 1 to count…
-2
votes
1 answer

Function in c++ that return the indicator that let me know that given char is right is not according to the function

Here is the code : char specialKeys(char key, char *File) { cout << _key << endl; FILE *OUTPUT_FILE; OUTPUT_FILE = fopen(file, "a+"); if (key == VK_ABNT_C1) fprintf(OUTPUT_FILE, "%s", "Abnt C1") …
-2
votes
2 answers

How can I change the var of a javascript function by pressing a key on the keyboard?

I have a piece of code here and I want to be able to press a key (f.i. the "1" key) so var isRunning = false. When I press another key (f.i. the "2" key) var isRunning should change back to isRunning = true. It needs to be as simple as possible…
TVB
  • 5
  • 4
-2
votes
1 answer

how to use JNativeHook library?

I am trying to use the JNativeHook library in my project so I can get the global keystrokes, but I am not sure how to import or install the library in my project. I need help on importing the library to my project. I need simple steps to install the…
johan
  • 39
  • 1
  • 7
1 2 3
35
36