XTE(1) XTE(1)
NAME
xte - Generates fake input using the XTest extension
SYNOPSIS
xte [options] commands...
DESCRIPTION
xte is a program that generates fake input using the XTest extension,
more reliable than xse.
OPTIONS
A summary of options is included below.
-x display
Send commands to remote X server. Note that some commands may
not work correctly unless the display is on the console, e.g.
the display is currently controlled by the keyboard and mouse
and not in the background. This seems to be a limitation of the
XTest extension.
--help, -h
Show summary of options.
COMMANDS
key k Press and release key k
keydown k
Press key k down
keyup k
Release key k
str string
Do a bunch of key X events for each char in string
mouseclick i
Click mouse button i
mousemove x y
Move mouse to screen position x, y
mousermove x y
Move mouse relative from current location by x, y
mousedown i
Press mouse button i down
mouseup i
Release mouse button i
sleep x
Sleep x seconds
usleep x
Usleep x microseconds
SOME USEFUL KEYS
This keys are case sensitive.
Home
Left
Up
Right
Down
Page_Up
Page_Down
End
Return
BackSpace
Tab
Escape
Delete
Shift_L
Shift_R
Control_L
Control_R
Meta_L
Meta_R
Alt_L
Alt_R
Multi_key
SEE ALSO
pat2ppm(1), patextract(1), png2pat(1), rgb2pat(1), visgrep(1).
--------------------------------------------------------------------
#!/bin/bash
sleep 0.5
xte "keydown Control_L"
xte "keydown Shift_L"
xte "key v"
xte "keyup Shift_L"
xte "keyup Control_L"
#!/bin/bash
xte "key Escape"
sleep 0.5
xte "str :wq"
sleep 0.5
xte "key Return"
-----------------------------
.imwheelrc
"user001@.*"
,Up,Up
,Down,Down
None,Thumb1,Alt_L|m
None,Thumb2,Alt_L|l
"Mozilla Firefox"
Shift_L,Up,Page_Up
Shift_L,Down,Page_Up
Control_L,Up,Page_Up
Control_L,Down,Page_Down
None,Right,Button 2
None,Left,Page_Down
None,Thumb1,Control_L|w
None,Thumb2,Button 5
"Google Chrome"
None,Thumb1,Control_L|w
None,Thumb2,Page_Down
"XnView.*"
None,Thumb1,Escape
None,Thumb2,Control_L|w
".*gedit"
None,Thumb1,Return
None,Thumb2,Control_L|v
".*SMPlayer"
None,Thumb1,Control_L|x
None,Thumb2,Right
".*"
, Up, Button4
, Down, Button5
, Thumb1, Control_L|w
, Thumb2, Page_Down
NAME
xte - Generates fake input using the XTest extension
SYNOPSIS
xte [options] commands...
DESCRIPTION
xte is a program that generates fake input using the XTest extension,
more reliable than xse.
OPTIONS
A summary of options is included below.
-x display
Send commands to remote X server. Note that some commands may
not work correctly unless the display is on the console, e.g.
the display is currently controlled by the keyboard and mouse
and not in the background. This seems to be a limitation of the
XTest extension.
--help, -h
Show summary of options.
COMMANDS
key k Press and release key k
keydown k
Press key k down
keyup k
Release key k
str string
Do a bunch of key X events for each char in string
mouseclick i
Click mouse button i
mousemove x y
Move mouse to screen position x, y
mousermove x y
Move mouse relative from current location by x, y
mousedown i
Press mouse button i down
mouseup i
Release mouse button i
sleep x
Sleep x seconds
usleep x
Usleep x microseconds
SOME USEFUL KEYS
This keys are case sensitive.
Home
Left
Up
Right
Down
Page_Up
Page_Down
End
Return
BackSpace
Tab
Escape
Delete
Shift_L
Shift_R
Control_L
Control_R
Meta_L
Meta_R
Alt_L
Alt_R
Multi_key
SEE ALSO
pat2ppm(1), patextract(1), png2pat(1), rgb2pat(1), visgrep(1).
--------------------------------------------------------------------
#!/bin/bash
sleep 0.5
xte "keydown Control_L"
xte "keydown Shift_L"
xte "key v"
xte "keyup Shift_L"
xte "keyup Control_L"
#!/bin/bash
xte "key Escape"
sleep 0.5
xte "str :wq"
sleep 0.5
xte "key Return"
-----------------------------
.imwheelrc
"user001@.*"
,Up,Up
,Down,Down
None,Thumb1,Alt_L|m
None,Thumb2,Alt_L|l
"Mozilla Firefox"
Shift_L,Up,Page_Up
Shift_L,Down,Page_Up
Control_L,Up,Page_Up
Control_L,Down,Page_Down
None,Right,Button 2
None,Left,Page_Down
None,Thumb1,Control_L|w
None,Thumb2,Button 5
"Google Chrome"
None,Thumb1,Control_L|w
None,Thumb2,Page_Down
"XnView.*"
None,Thumb1,Escape
None,Thumb2,Control_L|w
".*gedit"
None,Thumb1,Return
None,Thumb2,Control_L|v
".*SMPlayer"
None,Thumb1,Control_L|x
None,Thumb2,Right
".*"
, Up, Button4
, Down, Button5
, Thumb1, Control_L|w
, Thumb2, Page_Down
※コメント投稿者のブログIDはブログ作成者のみに通知されます