Page 128 of 128 FirstFirst ... 2878118126127128
Results 1,271 to 1,273 of 1273

Thread: btnx: Send keyboard and mouse combination events with mouse buttons

  1. #1271
    Join Date
    Apr 2007
    Beans
    116

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    I hear your pain my friend.

    I also tried like you to bind the buttons to keys and for a while btnx was THE solution.

    Then Ubuntu change the xorg or whatever is responsible for input and I think that broke btnx.

    After that I switched to xmacrokeys and xbindkeys to do the mapping.

    At some point, I started using easystroke and stopped binding mouse keys altogether.


    Quote Originally Posted by betlog View Post
    I just attempted to install btnx in Precise, and after adding ~80Mb of crap to my system (12.04 Kubuntu) all btnx install options failed.
    http://www.ollisalonen.com/ is loading completely blank pages for everyting and failing to respond to wget
    http://ppa.launchpad.net/daou/ubuntu/dists/ only goes up to Hardy
    And everything on https://launchpad.net/ubuntu/+source...+build/2772828 fails to get a successful install result.

    Can anyone help?
    It's not often that I want to assign keys to mouse buttons, but when I do btnx seems to be the only real option.

  2. #1272
    Join Date
    Jun 2010
    Beans
    69

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Well, some keyword tango and a dozen browser tabs later and I have a relatively simple and seemingly robust fix:
    1)
    https://help.ubuntu.com/community/KeyboardShortcuts
    and scroll down to "Text Entry Shortcuts"
    Being told how to set up xbindkeys with a default config stopped it from crashing andallowedme to explore how it worked. Woot.
    xbindkeys --defaults > /home/your-user-name/.xbindkeysrc
    So I installed it and xbindkeys-config

    2)
    I already use xvkbd -xsendevent -text $(date +%Y%m%d-%H%M%S) to simplify adding dates and incrementing filenames. So xvkbd is already installed for me.

    3)
    Then I had to find out what the 'Back' and 'Forward' functions actually invoke:
    XF86Back and XF86Forward
    so then i searched for
    "xvkbd -xsendevent" "XF86Back"
    and google suddenly showed me what i wanted
    https://bbs.archlinux.org/viewtopic.php?id=120372

    4)
    So now I have ~/.xbindkeysrc containing:
    Code:
    #mouse rearThumb
    "xvkbd -xsendevent -text "\[XF86Back]""
       b:8
    #mouse frontThumb
    "xvkbd -xsendevent -text "\[XF86Forward]""
       b:9
    edit:
    I had assumed that if an app didn't recognise those keyevents I would also make it send event F13 and F14 or something like that.
    BUT: Right now I am attempting to get TeamSpeak3 to use my mouse keys and F13 isn;t working. So still no ideal solution for that, but it's none-the-less very useful to know theres a substitute for btnx.

    There... this post should have enough keywords for google to make it easily findable for the people sharing this problem.
    woot
    Last edited by betlog; June 7th, 2012 at 05:41 AM.

  3. #1273
    Join Date
    Jun 2010
    Beans
    69

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    further information:
    xdotool allow for a nicer syntax and keyup/keydown options
    xev makes for decent button diagnostics
    .xbindkeysrc.scm
    Code:
    (xbindkey '("b:9") "xdotool keydown BackSpace")
    (xbindkey '( Release "b:9") "xdotool keyup BackSpace")
    But binding some mouse buttons to teamspeak3 still just fails. I'm thinking this is a basic flaw/feature inherent in ts3.
    Binding to things like F13 still produces keystroke output in text fields, so this is not ideal either.

Page 128 of 128 FirstFirst ... 2878118126127128

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •