If xev
receives the key sequence. Its output should be some thing similar to:
KeyPress event, serial 34, synthetic NO, window 0x4600001,
root 0xb2, subw 0x0, time 55057700, (1053,140), root:(945,303),
state 0x0, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 34, synthetic YES, window 0x4600001,
root 0xb2, subw 0x0, time 0, (1,1), root:(1,1),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XmbLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic YES, window 0x4600001,
root 0xb2, subw 0x0, time 0, (1,1), root:(1,1),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic NO, window 0x4600001,
root 0xb2, subw 0x0, time 55057701, (1053,140), root:(945,303),
state 0x4, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 35, synthetic YES, window 0x4600001,
root 0xb2, subw 0x0, time 0, (1,1), root:(1,1),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XmbLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic YES, window 0x4600001,
root 0xb2, subw 0x0, time 0, (1,1), root:(1,1),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False
Best Answer
To click use this two commands:
The first command is relative (to click near the mouse's current location) the second is absolute (from the entire screen). The button takes 3 arguments:
1: left click
2: middle click
3: right click
For example in a strategy game to perform a right click at the mouse's current location do this: