Questions tagged [keyboard-input]

101 questions
1
vote
0 answers

How to input a executable in a shell script instead of using the keyboard?

I have an executable to treat photographs call GFA-LIN. You can run the executable normally like: $./GFA-LIN ********************************************************************** *** …
1
vote
4 answers

Swift - Get keyboard input as the user is typing

I have an app in swift, where the texfield is located at the bottom of the screen, and when the user tries to type anything, the keyboard covers the textfield, so the user is unable to see what he/she is typing. To solve this, I would like to get…
David Wolters
  • 324
  • 6
  • 16
1
vote
1 answer

How I can input a matrix by keyboard in MATHEMATICA

I can input a single row matrix by keyboard. as x = {}; n = 3; For[k = 1, k ≤ n, k++, br = Input[Row[{"Enter the ", k, " element"}]]; AppendTo[x, br]; ] This will get a single row matrix like x={ 2, 3 , 6}. But If I want to get input as x =…
1
vote
1 answer

Pygame keyboard input event lag

I am hitting an issue after writing a small program with pygame. The program takes split .GIF animations and loads the images(frames of the gif) via: pygame.image.load(filename) This returns a pygame surface object which is then appended to an…
CR0SS0V3R
  • 236
  • 5
  • 11
1
vote
2 answers

Run a function in a loop as long as specific keys is pressed

I want to run specific piece of code repeatedly as long as arrow keys are pressed. I have tried to pick up as much things as I can in a week about JavaScript and have written this code (see below), but it isn't working. Right now I am trying to…
Anya
  • 11
  • 2
1
vote
2 answers

C++ Modeless Dialog created from DLL doesn't process input properly

I am having issues with creating a modeless dialog from a DLL file. My dialog has nothing special on it, just an OK button and an edit box. I have looked at this Microsoft KB Article (http://support.microsoft.com/kb/233263) and have implemented its…
Dan
  • 221
  • 1
  • 12
1
vote
1 answer

NSFileHandle and scanf not echoing input in Xcode 4.5

I successfully use NSFileHandle to read keyboard input: NSFileHandle * keyboard = [NSFileHandle fileHandleWithStandardInput]; NSData *inputData = [keyboard availableData]; NSString * input =[[NSString alloc] initWithData:inputData…
soundsmitten
  • 70
  • 2
  • 7
0
votes
1 answer

Send output of Python program that receives keyboard input to terminal and to file

My program needs to receive keyboard input. It needs to print output to the terminal. It needs to also dump the same output to file. Here is the program: > cat test.py print(input("A man walks into a: ")) > /usr/bin/python3 test.py A man walks…
P i
  • 25,182
  • 33
  • 133
  • 229
0
votes
1 answer

How to get keyboard input with Termion in Rust?

I'm trying out Rust and I really like it so far. I'm working on a tool that needs to get arrow key input from the user. So far, I've got something half-working: if I hold a key for a while, the relevant function gets called. However, it's far from…
WalrusGumboot
  • 153
  • 1
  • 8
0
votes
1 answer

WM_CHAR doesn't work when IsDialogMessage() is used in the main loop

I inserted IsDialogMessage() in my main loop, in order to the tab key work in the tab control(in my real code) but the WM_CHAR message stopped working. WM_KEYDOWN still is working but I was planning to deal with raw chars in WM_CHAR and key…
Jack
  • 14,916
  • 47
  • 136
  • 245
0
votes
0 answers

Lag while displaying RTSP media stream and reading keyboard input/sending Telnet commands

I'm trying to make a program that is able to connect to an rtsp media stream via internet, display the stream on the screen, and then send commands based on keyboard input via a telnet connection to move the camera. Currently I am using python with…
jeoy
  • 1
0
votes
2 answers

Asynchronous keyboard input on win32

I'm creating a simple 3D game on Windows 7 in C++ using the free version of the Havok physics engine. I want to use the WASD keys to move the character. The structure of the code is such that I need to capture this input asychronously; there is a…
paperbd
  • 153
  • 11
0
votes
2 answers

Why is KbCheck in Psychtoolbox not registering keyboard input?

I'm trying to run a programme coded in Psychtoolbox-3 that should register a keypress. But when I run it, even just this section from the command window, it doesn't respond to the E, P keys (or any) and I have to stop the operation using Ctrl-C. I…
0
votes
0 answers

Gyazo Shortcut Functionality reproduced

Today I was using the Gyazo Snapshot function, whereas I press Ctrl + Shift + C on my keyboard, I can immediately click on my screen to capture (a part of) my screen. I was wondering... how can I make an application that runs on the background (just…
0
votes
0 answers

Visual Stimuli Code to measure response times

I am trying to recreate a visual stimuli experiment. First depending on the number of stimuli I want, I created random coordinate points. After I show the image to someone and they have to press 'p' if a blue circle is present on the picture or 'a'…
DiegoA86
  • 1
  • 2