LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 02-12-2010, 06:00 AM   #1
sr71919
LQ Newbie
 
Registered: Dec 2009
Location: Chennai, Tamil nadu, INDIA
Distribution: Fedora
Posts: 14

Rep: Reputation: 1
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
 
Old 02-12-2010, 06:41 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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.
 
Old 02-12-2010, 07:47 AM   #3
sr71919
LQ Newbie
 
Registered: Dec 2009
Location: Chennai, Tamil nadu, INDIA
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 1
Hi neonsignal,
I downloaded the xmacro.xxx.tar.gz file from sourceforge, but how to install/make it work???
How do i install xmacro ??
 
Old 02-12-2010, 08:02 AM   #4
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
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
 
Old 02-13-2010, 01:08 AM   #5
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 132Reputation: 132
Quote:
Originally Posted by neonsignal View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Key stroke problem satimis Fedora 0 06-19-2007 12:17 PM
How do i adjust key stroke speed,10.0? akihandyman Mandriva 1 07-17-2004 06:16 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
Key stroke to minimize full screen window? Fear58 Linux - General 2 07-12-2004 07:50 AM
Key Stroke Logger MrTheGeek Linux - Security 1 02-03-2002 01:05 AM


All times are GMT -5. The time now is 09:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration