621 questions
0
votes
1
answer
61
views
Windows 11 raw input API bad performance compared to Windows 10
With my code which is just a regular RAW input example.... WM_INPUT, RIM_TYPEMOUSE... I'm getting on Windows 10 the full 1,000Hz of my mouse and on Windows 11 I'm getting about 128Hz.
How to fix this ...
0
votes
0
answers
51
views
GetSystemMetrics with SM_MOUSEHORIZONTALWHEELPRESENT always returns 0?
I'm calling GetSystemMetrics(SM_MOUSEHORIZONTALWHEELPRESENT) and it always returns 0. Thing is, I know I have a horizontal scroll on my mouse (and the raw input device information does come back with ...
0
votes
1
answer
441
views
How do I get a raw input device's proper display name in C#?
I am making a simple program to enumerate all of the devices currently connected to your Windows along with their pointers, then display the proper name for the device you clicked a button on your WPF ...
0
votes
1
answer
525
views
How to use DeviceIoControl on a rawinput device handle
So I have a program that is using multiple keyboards as input using raw input and I want to mess with the indicator lights of caps lock, scroll lock, and num lock per keyboard.
So my approach was to ...
-3
votes
1
answer
76
views
Why is my Python input overriding itself?
Context:
I'm doing the Udemy "100-days-of-code" course and hit a weird stumbling block.
Python version: 2.7-64
I ultimately solved it by using the "input" command (vs raw_input) ...
0
votes
2
answers
315
views
GetRawInputDeviceInfo with RIDI_DEVICENAME returns invalid memory
In my code I have a call to the GetRawInputDeviceInfo function, passing in the RIDI_DEVICENAME command. It is supposed to fill the 3rd parameter with a string containing the name of the buffer, and ...
0
votes
0
answers
246
views
Is the latency for the sendinput / receiving raw input the same or almost the same for all programs?
I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that ...
0
votes
1
answer
393
views
Can I get raw mouse input as a WM_INPUT twice?
I am trying to modify an existing application by adding an input gathering thread outside of its main thread.
The original application already processes mouse input pretty decently inside its main ...
-1
votes
1
answer
2k
views
Tensorflow TextVectorization: convert the predicted text back to a human readable string
I have developed a model that generates a new world that follows a sequence. The model successfully outputs a prediction, but I'm unable to use it as it is vectorized.
I use tensorflow.keras.layers....
0
votes
1
answer
260
views
GetRawInputData sniffing character problem on different language setting
I'm using GetRawInputData for sniffing barcode reader data.
https://github.com/mfakane/rawinput-sharp
When I read a barcode from my barcode scanner normally it gets the right characters both rawinput ...
0
votes
0
answers
92
views
how to make sure that function only fires once (RawInputEventArg)
I'm currently working on a method that gives the user the possibility to add a handscanner to a dicitionary in order to scan some barcodes with it. (before i started the scanners were hardcoded in the ...
0
votes
0
answers
299
views
Can Raw Input Registration be done from one application for another application?
I've tried two things, one is as mentioned in the title.
Case 1: In one C++ console application (App_A) I register for RawInput but the window handle is that of another application (App_B) that has ...
2
votes
0
answers
397
views
WM_INPUT_DEVICE_CHANGE messages get lost when reading RAWINPUT via GetRawInputBuffer
I trying to write program that is working properly with GetRawInputBuffer API and consuming all input with little overhead on separate thread.
But I found that WM_INPUT_DEVICE_CHANGE messages get lost ...
0
votes
1
answer
192
views
EOFError in Shortcut Script: (raw) Keyboad-Input in Python
My first Python script should be a Keyboard-Shortcut-Quiz:
As a lot of Keyboard Shortcuts only work in combination with CTRL, SHIFT or WIN/OS Key the most "answers" of the quiz will contain ...
-1
votes
1
answer
1k
views
(python 3) When using raw_input(), why does the function add "\n" to the input?
I searched the first page of Google but couldn't find an answer. This won't happen for int(raw_input()) weirdly enough. But if i type:
a = [raw_input() for i in range(int(raw_input()))]
print(a)
...
-3
votes
1
answer
431
views
Regarding raw_input.split() function in python
How does this line exactly works in python raw_input().split() ?
0
votes
1
answer
334
views
Every time I run the code an error keeps coming saying,"TypeError: raw_input() takes from 1 to 2 positional arguments but 4 were given"
bird_names="kiwi, hawk, crow, penguin"
count=0
bird_guess=input("Guess the name of the bird that may be in the secret list.You will only get 3
chances")
while count<3:
if bird_guess....
1
vote
1
answer
2k
views
how do I register an invisible window class in a Win32 console application?
I am trying to register an invisible window in a Win32 console application. My goal is to listen for Raw Input in the WindowProc to (1) display it on the console, and (2) perform additional ...
3
votes
1
answer
2k
views
RawInput WinAPI: GetRawInputBuffer() and message handling
Why
I'm trying to get input from a barcode scanner to my (visual) application. I would like to ignore input from other devices and get the input even if the application loses focus. I found the ...
2
votes
0
answers
491
views
Identify specific HID device using windows rawinput API
I want to control the rumble motors on an xbox 360 controller and to do so I need to open a file on the device. How do I determine which device to open, that is, which is the controller/gamepad?
I'm ...
6
votes
1
answer
671
views
GetKeyNameText numpad missing text
I'm trying to get the name of a pressed key with GetKeyNameText, using the make/scan code and extended-key flag given by raw input:
std::wstring GetKeyName(const RAWKEYBOARD& info)
{
WCHAR n[...
0
votes
2
answers
2k
views
How to simulate physical keyboard input
I'm working with an C# Winforms project that read from multiple specified barcode scanner (app need to seperate data from scanner to have correct action)
I'm used raw input to filter by device ID and ...
0
votes
0
answers
532
views
RawInput : not handle Keyboard Event on condition
I try to use this project :
https://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard
I want to handle keys just for a specific keyboard.
It is working but, I ...
0
votes
1
answer
59
views
Python function keeps reiterating raw input question in command line
I'm trying to write a Fibonacci sequence that can take a user's input as the multiplier for the generational increase in rabbits, i.e., 4 pairs of offspring produced for each pair of mature rabbits.
...
0
votes
1
answer
284
views
How can I make a time-sensitive prompt in python? (Interrupting raw_input)
I am having trouble making a prompt that waits only for a certain amount of time for user input.
I've ended up using threading to start a thread that waits for the input and using the main thread to ...