BMX Bicycle freestyle
BMX Bicycle freestyle

Friday, August 21, 2009

xvkbd quick reference

x virtual keyboard common commands


#get window id
b=$(xwininfo -name Update\ Manager | grep Window\ id:\ | awk '{print $4}') 

#repeat task with for loop
 for i in `seq 1 100`;
do
echo $i
xvkbd -xsendevent -window $b -text "\[Down]"
#send keys to apps
xvkbd -xsendevent -window $b -text "\r"

sleep 1


done
comment:not working- to uncheck all updades in update-manager just use right click

-------------------------------------------------------------------------------------

The string can contain:

  • \r - Return
  • \t - Tab
  • \b - Backspace
  • \e - Escape
  • \d - Delete
  • \S - Shift (modify the next character; please note that modify with ``\S'' will be ignored in many cases. For example, ``a\Cb\ScD\CE'' will be interpreted as a, Control-b, c, Shift-D, and Control-Shift-E.)
  • \C - Control (modify the next character)
  • \A - Alt (modify the next character)
  • \M - Meta (modify the next character)
  • \[keysym] - the keysym keysym (e.g., \[Left])
  • \Ddigit - delay digit * 100 ms
  • \xvalue - move mouse pointer (use "+" or "-" for relative motion)
  • \yvalue - move mouse pointer (use "+" or "-" for relative motion)
  • \mdigit - simulate click of the specified mouse button

0 comments:

Post a Comment