The raw input API provides a stable and robust way for applications to accept raw input from any HID (Human Interface Devices), including the keyboard and mouse.
Questions tagged [raw-input]
623 questions
4
votes
1 answer
Detect if keyboard or mouse events are triggered by a software
Is there a way to determine whether the keyboard or mouse events are triggered from a hardware rather than an application like TeamViewer, Steam or some other remote desktop software in a desktop application running on Windows?
My purpose is not to…

hckr
- 5,456
- 1
- 20
- 31
4
votes
1 answer
How can I use raw_input to receive input from stdin in python 2.7?
To receive input from stdin in python 2.7, I typically import sys and use sys.stdin. However, I have seen examples where raw_input is used to receive input from stdin, including multi-line input. How exactly can I use raw_input in place of…

Rohan
- 482
- 6
- 16
4
votes
1 answer
Raw Input mouse lastx, lasty with odd values while logged in through RDP
When I attempt to update my mouse position from the lLastX, and lLastY members of the RAWMOUSE structure while I'm logged in via RDP, I get some really odd numbers (like > 30,000 for both). I've noticed this behavior on Windows 7, 8, 8.1 and 10.
The…

Mike
- 309
- 2
- 15
4
votes
2 answers
R readline does not work in script
The function readline in R is similar to raw_input in python, both allow to pass interactive arguments.
However, when I run a R script in terminal, It does not work.
Here is a example txt.R:
#!/usr/bin/env Rscript
x =…

yalei du
- 697
- 7
- 13
4
votes
3 answers
WX Python and Raw Input on Windows (WM_INPUT)
Does anyone know how to use the Raw Input facility on Windows from a WX Python application?
What I need to do is be able to differentiate the input from multiple keyboards. So if there is another way to achieving that, that would work too.

derfred
- 18,881
- 3
- 23
- 25
4
votes
4 answers
Is there a function in C that does the same as raw_input in Python?
Is there a C function that does the same as raw_input in Python?
#in Python::
x = raw_input("Message Here:")
How can I write something like that in C?
Update::
I make this, but i get an error ::
#include
#include
#include…

Rami Jarrar
- 4,523
- 7
- 36
- 52
4
votes
1 answer
Is it possible to implement global raw input?
I have two mice connected to my computer and I want to make a logger that distinguishes between these two.
The Low-Level Mouse hook doesn't supply me that information so I have thought about catching Raw Input messages in order to get the Device…

OrMiz
- 265
- 2
- 11
4
votes
2 answers
How to use raw_input() with while-loop
Just trying to write a program that will take the users input and add it to the list 'numbers':
print "Going to test my knowledge here"
print "Enter a number between 1 and 20:"
i = raw_input('>> ')
numbers = []
while 1 <= i <= 20 :
print "Ok…

Amon
- 2,725
- 5
- 30
- 52
4
votes
1 answer
Pipe into raw_input() in Python
How could I have a program execute a target program, and then enter text into its stdin (such as raw_input.)
For example, a target program like this one:
text = raw_input("What is the text?")
if text == "a":
print "Correct"
else:
print "Not…

user2514631
- 187
- 1
- 1
- 6
4
votes
4 answers
Trying to use raw input with functions
I am new to python and I'm trying to make a command kind of thing for a program with raw_input and functions. For some reason it hasn't been working. Here is the code I've been testing with:
raw_input()
def test():
print "hi, this will be…

mrkzam123
- 43
- 1
- 1
- 4
4
votes
2 answers
Trying to install module win32clipboard
I'm new to python and i'm trying to install win32clipboard to be able to use this code:
import win32clipboard
win32clipboard.OpenClipboard()
win32clipboard.SetClipboardText('testing 123')
win32clipboard.CloseClipboard()
# get clipboard…

user2151341
- 47
- 2
- 3
- 5
4
votes
3 answers
How do I get realtime keyboard input in Python?
Is this possible? Every answer I have looked at isn't what I want. What I do though is something like in omega-rpg (which is an awesome little text-based debian rpg), but in Python instead of C. I have poked around and found some things, but nothing…

user1610406
- 722
- 1
- 13
- 24
4
votes
1 answer
Utilizing %r within raw_input in python
Is it feasible to utilize %r within raw_input in python?
For context, I'm working on Zed Shaw's Exercise 12. (Great resource! The lessons are very helpful, and well paced.)
I'm playing around in the extra credit, trying to get raw_input to repeat…

MathAttack
- 143
- 4
4
votes
1 answer
Raw Input mouse - No data received
I'm getting raw data from both the keyboard and the mouse - the keyboard data is being received to my application perfectly, I'm having no trouble at all. Somehow, none of the mouse data is being received to my application. In fact, it doesn't even…

user1461074
- 81
- 5
4
votes
1 answer
GetRawInputDeviceInfo returns wrong syntax of USB HID device name in Windows XP
I'm using GetRawInputDeviceInfo to get the device name of a USB HID device name.
For some reason, when I run my code under Windows XP I get a device name which starts with \??\ and not \\?\.
This of course means, that when I try to use this device…

user1423622
- 41
- 2