Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
02-12-2010, 06:00 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2009
Location: Chennai, Tamil nadu, INDIA
Distribution: Fedora
Posts: 14
Rep:
|
How to initiate/trigger a key stroke in Linux
Hi all,
How to initiate/trigger a key stroke in Linux, as if the user has pressed those keys??
Please help
|
|
|
|
02-12-2010, 06:41 AM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Squeeze (Fluxbox WM)
Posts: 1,357
|
You can use xmacro to generate both keyboard and mouse events (assuming you are running X). These can be replayed from recorded events, or generated from commands.
|
|
|
|
02-12-2010, 07:47 AM
|
#3
|
|
LQ Newbie
Registered: Dec 2009
Location: Chennai, Tamil nadu, INDIA
Distribution: Fedora
Posts: 14
Original Poster
Rep:
|
Hi neonsignal,
I downloaded the xmacro.xxx.tar.gz file from sourceforge, but how to install/make it work???
How do i install xmacro ??
|
|
|
|
02-12-2010, 08:02 AM
|
#4
|
|
Member
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 327
Rep:
|
depends on which distro you are running here are the instructions for ubuntu here are rpm's for opensuse and fedora , please let me know which distro and I can be more specific. Would also help if you updated in your profile so as anyone can look and make a general assumption.
Regards,
JKZfixme
|
|
|
|
02-13-2010, 01:08 AM
|
#5
|
|
ELF Statifier author
Registered: Oct 2007
Posts: 648
Rep: 
|
Quote:
Originally Posted by neonsignal
You can use xmacro to generate both keyboard and mouse events (assuming you are running X). These can be replayed from recorded events, or generated from commands.
|
Another option is kbde (kttp://kbde.sf.net) - keyboard emulator.
It's work for both X and console applications, but don't support mouse events
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|