emulate middle mouse button?

Randy11 randy11 at free.fr
Sun Mar 22 09:23:55 CET 2015


You can use "xinput" to emulate de middle button. This the steps to follow :

1 - Type "xinput list"
2 - Find the your mouse and is name. For me is : Logitech USB-PS/2 Trackball
3 - I use this script :
#!/bin/sh
MOUSE_POINTER="Logitech USB-PS/2 Trackball"
MOUSE_ID=`xinput list | grep -i "${MOUSE_POINTER}" | awk -F= '{ print $2}' |
awk '{print $1}'`
/usr/bin/xinput --set-prop "${MOUSE_ID}" "Evdev Middle Button Emulation" 1

You can put this script in your initialisation files like '.profile',
'.login' or '.xsession.rc'

You can look here for the original version of this : 
https://www.debian-fr.org/wheezy-souris-pas-d-emulation-trosieme-bouton-copier-coller-t43218.html#p453244
<https://www.debian-fr.org/wheezy-souris-pas-d-emulation-trosieme-bouton-copier-coller-t43218.html#p453244>  

This doesn't work with Gnome but isn't a problem for Xfce :-)


-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher at .uni-stuttgart
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20140516182007.GA20217 at .uni-stuttgart>
_______________________________________________
Xfce mailing list
Xfce@
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org


I have a remote mini keyboard (2.4 GHz) with integrated touchpad, but only
left and right mouse mutton and no middle button.
The common trick to press both left and right mouse button together does
not work with this special device.
How can I emulate the middle mouse button in another way?
For example by SHIFT LEFT-BUTTON
Also defining the CAPS key (which I do not need at all) as the middle
mouse button would be ok.


-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher at .uni-stuttgart
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20140516182007.GA20217 at .uni-stuttgart>
_______________________________________________
Xfce mailing list
Xfce@
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org


I have a remote mini keyboard (2.4 GHz) with integrated touchpad, but only
left and right mouse mutton and no middle button.
The common trick to press both left and right mouse button together does
not work with this special device.
How can I emulate the middle mouse button in another way?
For example by SHIFT LEFT-BUTTON
Also defining the CAPS key (which I do not need at all) as the middle
mouse button would be ok.


-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher at .uni-stuttgart
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20140516182007.GA20217 at .uni-stuttgart>
_______________________________________________
Xfce mailing list
Xfce@
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org





--
View this message in context: http://xfce.10915.n7.nabble.com/emulate-middle-mouse-button-tp43884p45835.html
Sent from the Xfce - Users mailing list archive at Nabble.com.


More information about the Xfce mailing list