LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Key press simulation in FC (https://www.linuxquestions.org/questions/linux-general-1/key-press-simulation-in-fc-504263/)

kiruxa 11-23-2006 11:53 AM

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.

osor 11-24-2006 10:00 PM

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

For example with XSendEvent or XTestFakeKeyEvent.


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