Questions tagged [keyboard-input]
105 questions
1
vote
0 answers
GLFW key input on GNOME 3 desktop
I've a problem with GLFW3 on a GNOME 3 desktop.
I've tested this on several Linux machines, including a fresh installed Ubuntu 16.04 LTS machine (with Unity).
The problem occurs in every GLFW3 application.
If i press and hold any key, a normal key…

Tirus
- 11
- 1
1
vote
0 answers
Foreign character keyboard input in C# XNA
XNA supports only English keyboards, so I want to use System.Windows.Forms's KeyPress event. But I can't. Why?
I tried my own codes:
// 1st
FromHandle(Window.Handle).FindForm().KeyPress += new…

DoeJ
- 11
- 1
1
vote
1 answer
Cannot reach elm Tick action
I'm hoping someone might be able to help me out here with Signals and Effects.
I'm looking into Signals/Effects and have been studying the-elm-architecture, particularly example 8.
In this example (as I understand it), if you click on the shape(s)…

Denim Demon
- 734
- 1
- 10
- 23
1
vote
0 answers
Automate Free Hotspot Login
A hotspot in my area requires authentication every hour. I am trying to automate the process so that it requires no user input. I am using OS X for this. I have a bash script that does this:
sudo ifconfig en1 down
sudo ifconfig en1 up
networksetup…

hotspotlogin
- 11
- 1
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
**********************************************************************
*** …

Renato Braghiere
- 11
- 1
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
- 336
- 2
- 6
- 18
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 =…

Niaj Morshed
- 5
- 3
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
- 331
- 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
- 90
- 2
- 8
0
votes
0 answers
how do I create a loop that goes on with a keyboard input in python3?
I have two variable A(lat,lon) and B(lat,lon)
My program selects a single lat and creates a plot of B vs A.
I want to create a loop on every lat so that every time I press a key or I give another input manually, I have a new plot B|lat1 vs…

Olife
- 13
- 2
0
votes
1 answer
PyAutoGUI seems to ignore numpad key presses
I'm using Windows, Python, and PyAutoGUI to try to automate some activities in Minecraft as a fun project.
I have been successful with using PyAutoGUI to switch to Minecraft once I start the script in Visual Studio Code, click on the "Back to Game"…
0
votes
0 answers
How to change the keyboard input in vscode in chromebook?
I am working on Chromebook today and I can't find how to change the keyboard language in vscode in Chromebook.
Changing keyboard input language in other apps works fine but not in vscode and obsidian.
I hope I can get through somewhere. Thanks in…

Hyo
- 1
- 2
- 13
0
votes
1 answer
replace 0.00 of user input and move one step backward in flutter
sample layout input of textfield with initial value 0.00
In flutter when user input digit number, i want it to be like always replacing last digit of number and move one step backward
Example: default value is 0.00 with fixed 2 decimals…

gan jinqu
- 21
- 2