5,635 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
59
views
How to intercept/modify keystrokes before the Microsoft Chinese IME processes them on Windows?
I’m using Microsoft IME (Chinese Simplified) and I need to type a backslash (\) while Chinese mode is active.
However, when I press the backslash key, the IME always converts it into the Chinese ...
0
votes
5
answers
298
views
perform gw-basic comparison of two variables
I'm using gw-basic to determine a person's weight on another planet.
I need to form a comparison between the weight factor on a planet to the planet that the user inputs. I have defined my planets so ...
1
vote
1
answer
69
views
SSH-bound Go CLI Daemon – SSH Connects Successfully, but No Input Accepted
I'm building a custom CLI daemon in Go for Ubuntu.
When I run the CLI locally (without SSH), everything works correctly — for example:
admin@admin> whoami
responds as expected.
However, after ...
0
votes
1
answer
82
views
I'm trying to have the user's cursor in an input statement at a specific point (after the ": |") so it types at that point
Here is my code:
print("Make a 20-digit code with numbers 0-9: |___|", end="\r", flush=True)
addDigits = input("Make a 20-digit code with numbers 0-9: |")
More ...
0
votes
2
answers
78
views
How to auto-adjust the width of an input field based on character length of the decimal displayed within?
I'm working on a very simple program that takes a user-specified number (can be an integer or a float of any length) and performs one specific multiplication operation on that number. The program then ...
0
votes
1
answer
49
views
Read user input in app generated by jpackage
I am using jpackage to convert a Java application into an executable .app file.
When running on macOS, as shown below, the application cannot read user input.
open -n /Applications/MyApp.app
The ...
0
votes
1
answer
96
views
Deleting files based on input to avoid accessing parent folders
I am doing a REST API in Java (although this question may apply to other languages) where I create several local files and directories, and they can be deleted based on input. I manage my files in a ...
0
votes
3
answers
118
views
Is this way of getting a formated input from stdin better than default scanf?
#include <stdio.h>
#include <stdlib.h>
#define BUF_SIZE 1024
int main() {
char *buf = (char*)malloc(BUF_SIZE*sizeof(char));
fgets(buf, BUF_SIZE, stdin);
int a = 0;
sscanf(buf, ...
2
votes
2
answers
69
views
How to be able to retry an input for a specific key in dictionary in Python without skipping it
I'm trying to make a script that will ask for 5 score input from the user. Each score corresponds to a specific dilution. The input are strings and only six "characters" are allowed to be ...
1
vote
0
answers
41
views
date input resets in Chrome while trying to type
I have a date field in an Angular project that looks like this:
<input [disabled]="this.viewMode" type="date" name="txtDateReceived" class="form-control" [...
-1
votes
1
answer
87
views
Automatic insertion of a value in the program [closed]
I need to periodically record a value in the program using a dialog box.
The program is written in Borland Delphi 7, Windows API. The recorded value is stored in RAM.
I also have a Java program in ...
1
vote
0
answers
34
views
How can read all text before the cursor in custom keyboard?
I'm developing a custom iOS keyboard using SwiftUI. I want to access a large portion of text before the cursor. I'm currently using:
textDocumentProxy.documentContextBeforeInput
However, this only ...
0
votes
0
answers
38
views
Can input elements being positioned in Drupal 10 into a table
I have in Drupal 10 made a simple table that is being build with a PHP as part of a module.
When I use a buildForm-function, I can not position the input fields. I want these to be as if they were ...
1
vote
1
answer
74
views
How to hold an input open for a specific length of time
A project I am working on needs to automatically accept an input after 5 seconds. the idea is that they have 5 seconds to enter as many particular characters as possible.
I've found plenty of examples ...
2
votes
1
answer
57
views
I have input validation and now im trying to continue the code // Powershell
I am following a tutorial I found on youtube for a file integrity monitor. The code is messy but im trying to add my own twist and clean it up. I just added input validation and now the code won't run ...