You are not logged in.

#1 2008-11-21 17:42:57

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

[solved] Faking right-click

The right button of my mouse sometimes works, and sometimes it doesn't. So while I don't buy a new one, I'm trying to simulate a right click using my keyboard and xmodmap.

The closer I reached I guess was this:

xmodmap -e "keycode 117 = Pointer_Button3"

But it doesn't work. Besides buying a new mouse, any ideas?

TIA

Last edited by andre.ramaciotti (2008-11-21 18:37:14)


(lambda ())

Offline

#2 2008-11-21 17:51:35

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved] Faking right-click

Running "xdotool click 3" will simulate a right click.
Check out the man page of xdotool to see what else you can do with it.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2008-11-21 18:36:39

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [solved] Faking right-click

Exactly what I wanted. Thanks!


(lambda ())

Offline

#4 2008-11-21 18:40:09

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [solved] Faking right-click

Nice program! I can find some uses for that.

Offline

Board footer

Powered by FluxBB