10-16-2009
Perl - Reading keyboard keystroke
Hello All,
I wounder if any one know if perl have the ability to run script in the background which record each keyboard keystorke?
If yes , how can I implement the part which reading the keyboard keystroke?
Is there any moudle that handle it ?
Thanks a head
Alalush
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
A Solaris AXI 440 machine with Solaris 8 version.
I have PC users who use an emulation to login to the Solaris
server.
How can I change the keyboard mapping of the Sun keyboard
to fit to the PC keyboard ?
Any comment will be appreciated.
Thanks (1 Reply)
Discussion started by: simhab
1 Replies
2. Shell Programming and Scripting
How do i read from kb using shell script but i need to read it from same line.
Script :-
echo "Please Enter Your Choice "
read CHOICE
But it goes to next line i need it to read it next to Choice and not new line. (4 Replies)
Discussion started by: dinjo_jo
4 Replies
3. Shell Programming and Scripting
Hi All ,
I am writing a shell script for a 3D test case . The 3D Test case involves the user to press some keys to see the changes in the 3d test case . The user has to press p , r , a , z etc to observe the changes on screen .
Now please let me know how can i implement the keystroke p , a ,... (1 Reply)
Discussion started by: dskonnur
1 Replies
4. UNIX for Dummies Questions & Answers
i have the below script:
#!/bin/bash
echo "enter a"
read a
echo "enter b"
read b
let c=a+b
echo $c
at any point of time between entering the value for a and b,if user presses ctrl+a key combination, then it should start from the beginning(the script should be restarted).
it should... (4 Replies)
Discussion started by: pandeesh
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I ahve come across one of the trickier scenario and wanted to check anyone came across this:
i have a file called file1:
pandi.desktop% cat file1
aa
cc
ds
wwe
bb
pandi.desktop%
I want to read input from keyboard and append into the original file. besides that i want to sort the... (1 Reply)
Discussion started by: pandeesh
1 Replies
6. UNIX for Dummies Questions & Answers
Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it.
I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Discussion started by: crunchgargoyle
7 Replies
7. Shell Programming and Scripting
Hi all,
I have written a perl code and stored the data into Data structure using Data::Dumper module.
But not sure how to retreive the data from the Data::Dumper.
Eg.
Based on the key value( Here CRYPTO-6-IKMP_MODE_FAILURE I should be able to access the internal hash elements(keys) ... (1 Reply)
Discussion started by: scriptscript
1 Replies
LEARN ABOUT SUSE
xkbgetgeometry
XkbGetGeometry(3) XKB FUNCTIONS XkbGetGeometry(3)
NAME
XkbGetGeometry - Loads a keyboard geometry if you already have the keyboard description
SYNOPSIS
Status XkbGetGeometry (Display *dpy, XkbDescPtr xkb);
ARGUMENTS
- dpy connection to the X server
- xkb keyboard description that contains the ID for the keyboard and into which the geometry should be loaded
DESCRIPTION
You can load a keyboard geometry as part of the keyboard description returned by XkbGetKeyboard. However, if a keyboard description has
been previously loaded, you can instead obtain the geometry by calling the XkbGetGeometry. In this case, the geometry returned is the one
associated with the keyboard whose device ID is contained in the keyboard description.
XkbGetGeometry can return BadValue, BadImplementation, BadName, BadAlloc, or BadLength errors or Success if it succeeds.
DIAGNOSTICS
BadAlloc Unable to allocate storage
BadImplementation
Invalid reply from server
BadLength The length of a request is shorter or longer than that required to minimally contain the arguments
BadName A font or color of the specified name does not exist
BadValue An argument is out of range
SEE ALSO
XkbGetKeyboard(3)
X Version 11 libX11 1.3.2 XkbGetGeometry(3)