try xsend, it does what you are looking for.
<plexr> do you know std c++ ?
<plexr> or is a weak understanding of VB your only strength
<ahorse_> oohhhhh he just said the equivalent of *yo momma*
www.acgla.net <--- My webpage : )
I find the easiest way to use xdotool (it's in the universe repository).
You can just use commands like:
Code:xdotool key Ctrl+c xdotool key Super+a xdotool key Control+Alt+Right xdotool key Control+Alt+Left
Last edited by lazyr; June 25th, 2010 at 09:42 PM.
xdotool did my job.. thanx all of you for this wonderful post..
linux rocks
Yay for xdotool!
I need help ... I bought a multimedia control (http://www.dealextreme.com/details.dx/sku.26368) for use with XBMC. This control comes with four shortcut keys already set to "Ctrl Alt A", "Ctrl Alt B", "Ctrl Alt C" and "Ctrl Alt D". I wanted to create a script to simulate the pressure of "i" key, which opens in XBMC the information of the selected movie. So I could create a shortcut to this script that has already set in my control to simulate the pressure of that key.
In Windows xp I could do exactly what I want to creating a VBScript like this:
Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.SendKeys "{i}"
WScript.Sleep 10
After I created a shortcut to this script with "Ctrl Alt D", goes like every time I open XBMC and select a movie I can click on the button on my control that is set to "Ctrl Alt D" and display the Movie information.
Worked perfect in XP but I really want to get it working in Ubuntu!
I've tried to create several scripts and configured to run with the shortcut "Ctrl Alt D", but none of them work in XBMC.
I tried the following ways:
# First using xautomation:
/usr/bin/xte "key i";
# Attempt 2 with xdotool:
xdotool key i
These two options only work running through the terminal, nothing was displayed by the shortcut.
# Third option xkbevd:
/usr/bin/xvkbd-xsendevent-text "\ [i]"
This method worked using the key for that shortcut in my control displaying the letter "i" in the terminal, in gedit, within vim, but for some reason does not work in XBMC. Neither worked in Google search.
Anyone have any ideas?
Thanks a lot.
I just used this to bind firefox 4 panorama to a screen edge
Bookmarks