Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: RRMouseTrap

  1. #1
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    312

    RRMouseTrap

    NEW VERSION!
    This Version only captures the RideRunner Window
    Leaving the desktop alone!
    /RRMouseTrap Version 1.5 Beta
    /This is a mouse capture utility for RideRunner.
    /This means it captures the mouse events in RideRunner and translates them to RR commands.
    /Sends RR Commands on each event.
    /Middle button works best for VR Attention with RRVoice.
    /It can be translated in RRMouseTrap.ini to any RR command for other uses.
    /Unregister your existing RRMouseTrap.dll if present...unregister.bat
    /Copy all files in zip to RRPLUGINSPATH\RRMouseTrap\
    /Run the register.bat file.
    /Start RideRunner
    /There are three commands and two indicators
    /COMMANDS:
    rrmousetrap_on
    rrmousetrap_off
    rrmousetrap_refresh
    /INDICATORS: T/F
    rrmousetrap
    rrmousetrap_active

    /The ini settings should be self explanatory.
    [SETTINGS]
    /This is obvious T/F
    Debug=False
    /Hook mouse on start of RR T/F
    Startup=True
    /Mouse Events to capture,
    /Don't put a command in either LMouseUp/Dn event and it will function normally in RideRunner
    /Middle and Right Buttons are rarely used in RideRunner.
    /Use these two first, So you won't be clicking something when you enable VR....
    /They will accept any RR Command, such as Mute, Play, Pause, ect...
    /Leave them blank if not using...
    MMouseDn=
    MMouseUp=MUTE
    RMouseDn=
    RMouseUp=BYIND;RRVoice_Listening;RRVCON<<RRVCOFF
    LMouseDn= ###Leave empty to allow Left Mouse Button in RideRunner###
    LMouseUp= ###Leave empty to allow Left Mouse Button in RideRunner###
    MouseMove= ######## Use caution with this one, Best to leave Empty #######
    MouseWheelUp=Vol+
    MouseWheelDn=Vol-

    MouseWheelUp/Dn (MouseWheelScrollUp/Dn) can be volume control and MMiddleUp/Dn (MouseWheelUp/Dn) can be MUTE


    There are no pics, it uses no timers. It is completly hidden.
    Tested on Win2k and XP Home
    Report any bugs please.
    Have Fun...
    ...JJG
    Attached Files Attached Files
    RRVoice Version 1.1.0.10 BETA
    RRVCConfig Version 1.0.0.69 BETA
    RRMouseTrap Version 1.5 Beta
    RRPointer Version 1.0 BETA Update Soon
    RRTTS Testing
    RRScript Testing
    SerialSwitch In Development

  2. #2
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    312
    Updated!
    Added more mouse events...
    Better handling of all events...
    Added RRMouseTrap_Refresh for after an ini value change.
    Complete New Version! 1.5
    Now only captures mouse in RideRunner
    The mouse functions normally on the desktop.
    RRVoice Version 1.1.0.10 BETA
    RRVCConfig Version 1.0.0.69 BETA
    RRMouseTrap Version 1.5 Beta
    RRPointer Version 1.0 BETA Update Soon
    RRTTS Testing
    RRScript Testing
    SerialSwitch In Development

  3. #3
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,707
    Blog Entries
    1
    Very cool!

    This will make it real easy to take a el'cheapo mouse and use it to trigger the voice recognition to listen.

    You could use any old mouse as is, or one could easily take apart a cheap mouse, and solder to wires to the contacts for either the center or right mouse buttons. Then extend that wire to anywhere they want to hook them to a momentary switch.

    Dang I was gonna grab that second post slot, You are fast John...
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #4
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    312
    Yes, Taking apart a mouse would be good, as you will not be moving the mouse around the screen then, just hitting buttons when needed.
    The reason I say this is that the dll is hooking into the low level mouse api. All mouse events are looked at. So, moving the mouse around on the screen causes some extra CPU "moments", as you will see. Not very much but enough on slower processors to be noticed. Thats why you can turn it off and on again...
    ...JJG
    RRVoice Version 1.1.0.10 BETA
    RRVCConfig Version 1.0.0.69 BETA
    RRMouseTrap Version 1.5 Beta
    RRPointer Version 1.0 BETA Update Soon
    RRTTS Testing
    RRScript Testing
    SerialSwitch In Development

  5. #5
    FLAC
    Join Date
    Jun 2002
    Location
    Virginia
    Posts
    1,789
    Wow, Jebus, you're on a roll. I can't wait to try it out.

  6. #6
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    312
    Updated already, check first post...
    ...JJG
    RRVoice Version 1.1.0.10 BETA
    RRVCConfig Version 1.0.0.69 BETA
    RRMouseTrap Version 1.5 Beta
    RRPointer Version 1.0 BETA Update Soon
    RRTTS Testing
    RRScript Testing
    SerialSwitch In Development

  7. #7
    FLAC
    Join Date
    Jun 2002
    Location
    Virginia
    Posts
    1,789
    Jebus, this is fantastic! It sends the signal every time. I have seen no issues with CPU change when the mouse moves around. And the left and right mouse buttons seem to be disabled so clicking them, accidentally or otherwise, has no impact on RR.

    This will make it so much easier for people who want to use RRVoice. As John said, you can get any old crappy mouse, lay it on the console or in your lap and clickety-click away. And with a bluetooth mouse, there are no additional wires to mess with. And the name is great too!


  8. #8
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,852

    Smile

    Very good idea Jebus!

  9. #9
    FLAC
    Join Date
    Jun 2002
    Location
    Virginia
    Posts
    1,789
    It's not really a bug because it doesn't appear to affect anything, but if you set the ini to Startup=False, RRMousetrap will throw the following error upon closing down RR:

    "RunTime error 91 Object variable or With block variable not set"

    So it looks like some portion of MT is loading with RR even if the ini is set to false and whatever it is doesn't like RR being closed down. I don't get any error messages when closing down RR if Startup=true.

    As I said, this doesn't appear to have any negative impact; it's just a bit of a nuisance.

  10. #10
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    312
    kbreeden
    No, It's a bug...
    Can't kill an object if it's not created...
    It will be fixed, and I have a completely new version I'm testing now.
    More robust to handle all possible scenarios...
    Also you will have
    Right Down
    Right up
    Left Down
    Left Up
    Middle Down
    Middle Up
    Mouse Wheel
    I'm working on the direction of wheel movement, Up/Dn right now.
    Each one of these will send an RR Command...
    And I've managed to trap the mouse so well, that I need to pass thru the left button and mouse move events to allow the touch screen to function as required...It's getting there...
    ...JJG
    RRVoice Version 1.1.0.10 BETA
    RRVCConfig Version 1.0.0.69 BETA
    RRMouseTrap Version 1.5 Beta
    RRPointer Version 1.0 BETA Update Soon
    RRTTS Testing
    RRScript Testing
    SerialSwitch In Development

Page 1 of 3 123 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
  •