Questions tagged [keyboard-input]
105 questions
0
votes
2 answers
on Linux, how do I find out which application/processid is receiving keyboard/mouse input?
I am working on a linux project. I am stuck at a point where I need to know which application/processid is receiving keyboard/mouse input. I mean that binding must be stored somewhere. Can somebody help me out?
Edit 1: I am working on a…

Nikhil Nilawar
- 39
- 4
0
votes
0 answers
How to get keyboard inputs and write letters in screen?
I am a students who want to make a program to get keyboard inputs and write letters in the screen. But I don't know how. Which language that I could get inputs and write? I could use python, and also can use c and c++ a little bit.

wello_horld
- 1
- 1
0
votes
0 answers
Execute task after a certain amount of time after PC start
For a museum installation I need to find a way (I guess with task sheduler) to do this scenario :
1 - Museum's staff start the pc (Windows 10)
2 - "Resolume" (a software) start at launch of the pc (Already achieve this, I've put it in the…

Pierre Robert
- 1
- 1
0
votes
1 answer
How to detect if any keyboard key other than a specific keyboard key has been pressed in C++?
I have the following code which works fine.
int x = 0;
int main()
{
while(true) {
if (GetKeyState('A') & 0x8000 && x == 0) {
Sleep(500);
x = 1;
}
else if (GetKeyState('B') & 0x8000 && x ==…

Bari
- 1
- 1
0
votes
0 answers
Why does XGrabKeyboard() not register some keyboard inputs?
I'm a beginner in programmation with C++ and for two weeks I'm writting a script to play a space-shooter for 2 players on a same keyboard.
For game display, I'm using NCURSES and for keyboard inputs, I'm using X11. For the start, I have a persistent…

K.Söze
- 11
- 2
0
votes
2 answers
Android Studio Emulator Upper Case B not typing
I'm using Android Studio 3.0.1 and building applications for SDK with following settings:
flavorDimensions "default"
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.logi3pl.wms.wmsmobile"
…
0
votes
1 answer
How to count how many times a user presses a key in a given time
I'm trying to count the number of times a person presses a button a certain number of times.
import turtle
if random.randint(1,2) == 2:
turtle.listen()
turtle.onkey(number() ,'s')
else:
pass
def number():
global shots
…

Jaws3D
- 31
- 3
0
votes
0 answers
How to Read Keyboard Input in Windows Service
I have problem when trying to read keyboard input using windows service. In Windows Form it can be done easily by using global keyboard hook and read eventargs.
But in windows service how do I set so my service can detect event when I press key in…

Felix Prawira Azali
- 171
- 2
- 10
0
votes
1 answer
Input superclass variables in Python
I'm building a web crawler with Python. I created a parent class to save the user and the password, that I'd like to be inputed via keyboard.
The parent class looks like this:
class ParentCrawler(object):
def __init__(self):
"""Saves the user…

Xoel
- 318
- 4
- 15
0
votes
1 answer
How intercept these two key: ":" and "."?
I need to do something when a user presses . and something else when an user presses :.
Is there a way to intercept these two keys with JavaScript, jQuery or other?

xRobot
- 25,579
- 69
- 184
- 304
0
votes
1 answer
Keyboard input in C# and WPF not working
I am developing a small game where there are ellipses as targets and textblock over those ellipses displaying an Alphabet(changes every 3 sec).
I want to implement a functionality where a user presses an alphabet on keyboard and if that matches with…

sketch_TF2
- 61
- 1
- 9
0
votes
1 answer
How do I use the Key class in Silverlight
I found the Key class for determining key input in a textbox but it seems to be just for wpf. How do I use it in Silverlight?
https://msdn.microsoft.com/en-us/library/aa274297(v=vs.60).aspx

xarzu
- 8,657
- 40
- 108
- 160
0
votes
1 answer
Give Error and Exit when no Keyboard Input is Provided
A rookie here! This is a very simple one.
I am trying to write a script that asks for user inputs.
Then read the inputs and do some stuff with it.
But I first want to make sure inputs are provided.
Example:
echo "Please provide input1:"
read…

SSF
- 915
- 5
- 23
- 47
0
votes
2 answers
Keyboard input doesn't work, works when clicking the mouse
I have this code:
#include
#include
using namespace std;
bool* Keys = new bool[256];
void keyboardDown(unsigned char key, int x, int y)
{
Keys[key] = true;
}
void keyboardUp(unsigned char key, int x, int y)
{
…

user3244921
- 1
- 3
0
votes
1 answer
keyboard input from separate classes for movement
I was wondering how you get keyboard input from a separate class in as3. I have a class that will use the arrow keys to move but it needs to be in the hero class how do i call the movement function from the main function?

kevorski
- 816
- 1
- 11
- 29