LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-23-2006, 11:53 AM   #1
kiruxa
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Rep: Reputation: 0
Key press simulation in FC


Hello,
i did a search on this forums/google but did not find a clear explanartion yet.

How would i go about simulating complex key combination being pressed in Linux Fedora(lets say ALT-TAB) or Alt TAB followed by release of TAB while ALT is still pressed down.

(I need to my voice software to display and keep up a task switch window) and this is the best way to go i believe.

Would i have to go into assembly for this or is there a way to do this in C or even via a shell script?


If you are not sure even pointing me in the right direction would be greatly appreciated!

Thank you.
 
Old 11-24-2006, 10:00 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
I believe you can do this using the X API or, for a terminal, in curses.

For example with XSendEvent or XTestFakeKeyEvent.
 
  


Reply



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
c++ g++ wait for key press??? blizunt7 Programming 18 05-19-2014 11:09 AM
Key press Majestros Programming 2 02-14-2007 03:42 AM
Double key press on Keyboard Zettai Linux - Newbie 2 03-09-2005 10:59 PM
Gnome - strange key press problem Horos23 Linux - Software 3 03-04-2005 04:05 AM
What key to press in order to type symbols? windz Linux - General 0 02-10-2004 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration