Move mouse pointer using keyboard


5 posts
by ElGnomo » Sat Apr 20, 2013 12:24 am
Can anyone tell me how to move the mouse pointer and achieve left and right clicks using the keyboard only. I'm new to this and don't, at the moment, have a USB mouse. I'm using Raspbian 2013-02-09. What I wish to achieve is to move the mouse pointer up and down and left and right using the keyboard. I'd like to left click and right click using the keyboard. I want to do this using Raspbian 2013-02-09. Can anyone tell me how to do this? I've searched the Internet but can find no help. All variations of ctrl shift num lock do not work. I've tried throwing in a few alts, tabs and escs in all orders that I can think of, that doesn't work either.
So, if you know the answer....
Cheers
Dave
Posts: 1
Joined: Sat Apr 20, 2013 12:11 am
by SimonSmall » Wed Apr 24, 2013 9:50 pm
Sorry, I can only find half an answer... ;)
If using a PC/laptop running the Gnome or KDE desktop, it seems that there is a preferences setting for the mouse that enables control of the mouse using the numpad. Once enabled, it is turned on/off with Shift-Numlock. The arrow keys on the numpad move the mouse (8, 4, 6, 2) and 5 does a left click

I cannot seem to work out how to enable it on the Pi. I think the keyboard / mouse driver for LXDE does not have this feature

Try a web search with "keyboard control mouse linux"
Posts: 200
Joined: Tue Oct 09, 2012 8:13 pm
by vNa5h » Fri Sep 27, 2013 10:50 am
guys is this possible..

got something..
viewtopic.php?f=29&t=27857
Posts: 18
Joined: Wed Sep 11, 2013 1:58 pm
by vNa5h » Fri Sep 27, 2013 12:36 pm
Key bindings

Code: Select all
   
<!-- Control MOUSE via LXDE XWIT -->

      <!-- Keybinding for MOUSE CONTROL RIGHT DOWN-->
      <keybind key="C-A-KP_3">
       <action name="Execute">
             <command>xwit -root -rwarp 25 25</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL RIGHT UP-->
      <keybind key="C-A-KP_9">
       <action name="Execute">
             <command>xwit -root -rwarp 25 -25</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL LEFT DOWN-->
      <keybind key="C-A-KP_1">
       <action name="Execute">
             <command>xwit -root -rwarp -25 25</command>
       </action>
      </keybind>


      <!-- Keybinding for MOUSE CONTROL LEFT UP-->
      <keybind key="C-A-KP_7">
       <action name="Execute">
             <command>xwit -root -rwarp -25 -25</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL LEFT-->
      <keybind key="C-A-KP_4">
       <action name="Execute">
             <command>xwit -root -rwarp -25 0</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL RIGHT-->
      <keybind key="C-A-KP_6">
       <action name="Execute">
             <command>xwit -root -rwarp 25 0</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL UP-->
      <keybind key="C-A-KP_8">
       <action name="Execute">
             <command>xwit -root -rwarp 0 -25</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL DOWN-->
       
      <keybind key="C-A-KP_2">
       <action name="Execute">
                <command>xwit -root -rwarp 0 25</command>
       </action>
      </keybind>

<!-- Keybinding for MOUSE CONTROL RIGHT DOWN-->
      <keybind key="S-C-A-KP_3">
       <action name="Execute">
             <command>xwit -root -rwarp 5 5</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL RIGHT UP-->
      <keybind key="S-C-A-KP_9">
       <action name="Execute">
             <command>xwit -root -rwarp 5 -5</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL LEFT DOWN-->
      <keybind key="S-C-A-KP_1">
       <action name="Execute">
             <command>xwit -root -rwarp -5 5</command>
       </action>
      </keybind>


      <!-- Keybinding for MOUSE CONTROL LEFT UP-->
      <keybind key="S-C-A-KP_7">
       <action name="Execute">
             <command>xwit -root -rwarp -5 -5</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL LEFT-->
      <keybind key="S-C-A-KP_4">
       <action name="Execute">
             <command>xwit -root -rwarp -5 0</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL RIGHT-->
      <keybind key="S-C-A-KP_6">
       <action name="Execute">
             <command>xwit -root -rwarp 5 0</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL UP-->
      <keybind key="S-C-A-KP_8">
       <action name="Execute">
             <command>xwit -root -rwarp 0 -5</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL DOWN-->
       
      <keybind key="S-C-A-KP_2">
       <action name="Execute">
                <command>xwit -root -rwarp 0 5</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL RIGHT CLICK-->
      <keybind key="C-A-KP_0">
       <action name="Execute">
             <command>xdotool click 3</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL MIDLE CLICK-->
      <keybind key="C-A-KP_Decimal">
       <action name="Execute">
             <command>xdotool click 2</command>
       </action>
      </keybind>

      <!-- Keybinding for MOUSE CONTROL LEFT CLICK-->
      <keybind key="C-A-KP_5">
       <action name="Execute">
             <command>xdotool click 1</command>
       </action>
      </keybind>


Posts: 18
Joined: Wed Sep 11, 2013 1:58 pm
by klricks » Sat Sep 28, 2013 12:42 am
Don't know but if your intent is just to navigate and start programs without a mouse then this may help (Raspbian):

[Ctrl] [Esc] - Will bring up the start menu where you can select and run anything in the menu including shutdown & restart etc. [Esc] to exit menu.

Other keys:
[Alt] [F2] - Will start a run command box. [ESC] to exit
[Alt] [F4] -Terminate running application(s) beginning with most recent.
[Ctrl] [Alt] [Delete] - Bring up task manager
Go here for my RPi writeup. Basic config, Serial Port add-on etc:
http://home.budget.net/~klricks/Comp/RPi/Rpi.html
Posts: 1328
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA