question

12 views
Skip to first unread message

Ashley Teo

unread,
Feb 12, 2012, 3:30:12 AM2/12/12
to xdotoo...@googlegroups.com
hi, i spent 2 days on figuring this out but i can't seem to find the
term/key to do "menu key" the one that does the right click thing and
not mind where the mouse pointer is.

i have my menu key but i want to simulate everything in keyboard. any ideas?

i know i can use xdotool click 3 but i don't want the mouse to be in
the equation..

xdotool key shift+F10 should do the trick but it didn't. im using lxde
by the way :) thanks

Jordan Sissel

unread,
Feb 12, 2012, 3:35:27 AM2/12/12
to ashle...@gmail.com, xdotoo...@googlegroups.com
On Sun, Feb 12, 2012 at 12:30 AM, Ashley Teo <ashle...@gmail.com> wrote:
hi, i spent 2 days on figuring this out but i can't seem to find the
term/key to do "menu key" the one that does the right click thing and
not mind where the mouse pointer is.


If you're not sure what key symbol a key press makes, you can always use the 'xev' program.

Run xev, focus the window, press the key, you'll see something like this:

 KeyPress event, serial 32, synthetic NO, window 0x2600001,
    root 0xad, subw 0x0, time 4081773, (97,54), root:(98,109),
    state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

The above is what happens when I press the menu key. Above, the key symbol is "Menu"

So: xdotool key Menu

Hope this helps :)

-Jordan
Reply all
Reply to author
Forward
0 new messages