Page 34 of 128 FirstFirst ... 2432333435364484 ... LastLast
Results 331 to 340 of 1273

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

  1. #331
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by blazoner View Post
    You forgot to include
    Code:
    tar -xvvf btnx-0.3.1.tar.gz
    in your install instructions.
    Thanks for pointing that out. Fixed.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  2. #332
    Join Date
    Jan 2007
    Beans
    85

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

    It seems that btnx-config-0.1.7 doesn't like accepting both Ctrl+Tab and Ctrl+Shift+Tab in the same setup. It accepts Tab + Ctrl, but won't accept the Tab keycode again for the next shortcut. I know this is for keeping btnx from sending multiple events per keypress, but I was figuring that it should allow the same base keypress as long as it had different modifiers. I got around this by assigning Ctrl+Page Up instead of Ctrl+Shift+Tab, but figured I'd bring it to your attention.

    And, I love the new stuff you've done. You ROCK!
    When the only peace your enemy understands is the "Peace of the dead," you have no choice but to make peace in those terms.

  3. #333
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by blazoner View Post
    It seems that btnx-config-0.1.7 doesn't like accepting both Ctrl+Tab and Ctrl+Shift+Tab in the same setup. It accepts Tab + Ctrl, but won't accept the Tab keycode again for the next shortcut. I know this is for keeping btnx from sending multiple events per keypress, but I was figuring that it should allow the same base keypress as long as it had different modifiers. I got around this by assigning Ctrl+Page Up instead of Ctrl+Shift+Tab, but figured I'd bring it to your attention.

    And, I love the new stuff you've done. You ROCK!
    Glad you like it the new stuff!

    The problem you were having, I don't think it has anything to do with blocking multiple events. First, it only has an effect if you have used the delay field. Second, the multiple event detection is done according to rawcodes, not keycodes. So, you could configure all your buttons to send the same keycodes, and nothing would affect their events. Only if you press the same mouse button multiple times.

    This could be a problem outside btnx. Or not.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  4. #334
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    I though I'd cut and paste a small excerpt from the new btnx manual, concerning possible future improvements to btnx. This manual will later be available at my website and will be bundled with btnx-config-0.2.0.

    There are still many possible improvements for btnx. The only thing missing is time to implement them.
    An excellent addition would be support for multiple configuration files. For example, a user could configure a certain keycombo to restart btnx with a different configuration file. Then, the user could make one configuration for Internet surfing, another for a certain game, one for coding, etc., and switch between them quickly.
    Another improvement would be support for multiple input devices simultaneously. For example, I have a Logitech keyboard with many extra buttons that are not recognized and have no functionality. I can detect and configure them in btnx-config, but certain small changes in btnx are needed to be able to use the keyboard buttons. Then, I could configure a single configuration file to support both the keyboard and my mouse at the same time. This would need a lot of changes to btnx-config and btnx.
    These improvements will be considered for btnx-0.4.x and btnx-config-0.3.x.
    Hopefully I'll have time to code these sometime. Lately, most of my time has gone to upgrading the btnx-config build process to use autotools. And writing documentation for btnx. After I release btnx-config-0.2.0, I'm taking a small break from btnx to work on another project that has been on the backburner for almost two months. Not to worry though, I'll still monitor this thread and respond to any questions/problems/comments.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  5. #335
    Join Date
    Jul 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    This was kinda fun and a good learning experience.


    I got btnx installed and have the right config file for my Logitech cordless click plus mouse installed.

    My mouse is functioning but not with the functions I want. The main function I want is the document flip or application switcher.

    How do I go about editing these values so that my mouse behaves properly?


    The side buttons are fine if they are set to go forward and backwards thru web pages. Right now the back button opens up a right click window and the application switch pastes.


    TIA

  6. #336
    Join Date
    Jul 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    I am still having troubles with get my mouse button functions to work correctly in the Cordless Click Plus.

    Here is what I have ....What should I change to get my application switcher working?

    #----------------------------------------------------------
    # Logitech Cordless Click Plus btnx configuration file
    #----------------------------------------------------------
    #
    ################################################## #########
    # READ ME FIRST!!!!!!!!!!!!!!!!!!!
    ################################################## #########
    # This file is used to configure btnx's behavior.
    # Lines are commented with # characters.
    #
    # Basic structure of a button configuration for sending
    # keyboard and button events
    # -------------------------------------------------------
    # Button
    # rawcode = 0x00000000
    # type = 0
    # keycode = KEY
    # mod1 = KEY
    # mod2 = KEY
    # mod3 = KEY
    # EndButton
    #
    #
    # Basic structure of a button configuration for command
    # execution
    # -------------------------------------------------------
    # Button
    # rawcode = 0x00000000
    # type = 0
    # command = /path/to/file_name arg1 arg2 ... argN
    # uid = 1000
    # EndButton
    #
    #
    #
    # Description of the structure
    # -------------------------------------------------------
    # The configuration field for a button must be started by
    # a "Button" line and closed by an "EndButton" line. Inside
    # the configuration you MUST specify:
    # - rawcode
    # - type
    # - keycode OR command
    #
    # The mod[1..3] fields are optional. The fields have the
    # following meanings:
    #
    # rawcode: the byte stream sent to an event handler by the
    # mouse driver, used to identify the button. It must be a
    # 32-bit base16 (hexadecimal) value preceded by "0x". You
    # probably should not change this value at all.
    #
    # type: the type of event the button sends.
    # (Preset for your specific mouse buttons.)
    # If pressing the button sends a button press signal and
    # releasing it sends a release signal, the type is 0.
    # If pressing the button sends both press and release signals
    # simultaneously, the type is 1.
    # -This is usually necessary for mouse wheel events.
    #
    # keycode: this is the actual value of the key or button to
    # send when the mouse button is pressed. Have a look at the
    # events file (located at /etc/btnx/events) for all possible
    # values. You can use any key (KEY_*) or button (BTN_*) events
    # in that file. The events beginning with KEY_ are for simulating
    # keyboard events and the events beginning with BTN_ are for
    # simulating mouse button events. Not all of them are handled by
    # X. You must use the string describing the event! Not the number.
    # -Special note: REL_WHEELFORWARD and REL_WHEELBACK are for
    # sending mouse wheel scroll events.
    #
    # mod[1..3]: these are modifier key values. Examples are
    # shift (KEY_LEFTSHIFT, KEY_RIGHTSHIFT), ctrl (KEY_LEFTCTRL, ...),
    # alt, etc. You can combine up to three modifier keys together with
    # a keycode. You can even combine them with mouse button events.
    # You do not need to specify any mod keys if you don't need to.
    #
    # command: this describes the command you want to execute when
    # pressing a button. First, you must specify the location of
    # the file (full path and name). You may then specify any program
    # specific arguments. Example:
    # command = /usr/bin/gedit --new-window /etc/btnx/btnx_config
    # This will open gedit in a new window and open this configuration
    # file.
    #
    # uid: this is the UID (User IDentifier) of the user that executes
    # the command. You should probably execute commands with your UID.
    # You can get your UID by typing:
    # $ echo $UID
    # in your terminal.
    # ##############!!WARNING!!!###############
    # If you do not specify a UID, btnx will execute
    # the program with the same privileges as btnx (root, uid=0).
    # Do this ONLY if you _must_ have root privileges to execute
    # something. Use common sense. It's not too smart to have root
    # privileges on your mouse button.
    #
    # Go ahead and specify a Button section for each one of your
    # mouse buttons. Use the example configurations below as a
    # reference.
    #-----------------------------------------------------------



    # These buttons are configured for the Cordless Click Plus mouse.
    #-----------------------------------------------------------

    # Do not change the vendor_name or product_name values
    vendor_name = Logitech
    product_name = Cordless Click Plus

    # Left mouse button
    # NOTE: This is commented out. You probably don't want
    # to send extra events when pressing this button!
    #Button
    #name = Left button
    #rawcode = 0x01011000
    #type = 0
    #keycode = KEY_UNKNOWN
    #EndButton


    # Right mouse button
    # NOTE: This is commented out. You probably don't want
    # to send extra events when pressing this button!
    #Button
    #name = Right button
    #rawcode = 0x01011100
    #type = 0
    #keycode = KEY_UNKNOWN
    #EndButton


    # Mouse wheel press
    # NOTE: This is commented out. You probably don't want
    # to send extra events when pressing this button!
    #Button
    #name = Wheel press
    #rawcode = 0x01011200
    #type = 0
    #keycode = KEY_UNKNOWN
    #EndButton

  7. #337
    Join Date
    Jul 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    Sorry that my question was posted here, I did not realize it was just for tutorials and not questions.

  8. #338
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

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

    Quote Originally Posted by yogo View Post
    Sorry that my question was posted here, I did not realize it was just for tutorials and not questions.
    Don't worry. This thread is also for questions relating to btnx.

    It seems that the config file you posted got cut short. So I can't see exactly what changes you have made.

    If you are having trouble with the config file, you could try installing btnx-0.3.1 and btnx-config-0.1.7.
    It will give a graphical configuration tool.

    The application switcher is difficult to use with btnx, because it requires two keys that need to be pressed
    separately. For example, you could make a button send an Alt+Tab combo, but that would switch only between the two most recent apps. This could be done by binding one button to Alt, holding it down, then binding another button to Tab and pressing that. But thats not practical.

    Some desktop additions, like Beryl and Compiz, provide an "application switcher", which does work with binding a single button to btnx.

    As a simple example, to get just the Alt+Tab behavior, you would need to edit the correct button to look like below (find the button with the correct "name". Maybe you were referring to the one called "Top window button").

    Code:
     Button
    name    = Top window button
    rawcode    = 0x01011500
    type     =    0
    keycode    =    KEY_TAB
    mod1 = KEY_LEFTALT
    EndButton
    Only edit the "keycode" and "mod#" values.

    If you are having trouble with extra events, try looking at the troubleshooting section's xorg.conf editing sections.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  9. #339
    Join Date
    Jul 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    deleted for accidental double post.
    Last edited by yogo; July 31st, 2007 at 06:16 PM.

  10. #340
    Join Date
    Jul 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    Thanks Daou,

    I installed the latest and I like the configuration tool, seems like that should be easy enough to figure out. Sounds like a pain with the application switcher but I may just go the Beryl route. I just used my mouse button that normally worked for page back and it pasted code here so I will look around the config and see if I can get a few basic functions working.

    Thanks for your help.


    PS with the config, can you point me to some basic instructions on configuration. I tried mouse detection and went to save the default setting and btnx crashed.

    TIA

Page 34 of 128 FirstFirst ... 2432333435364484 ... LastLast

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
  •