Announcement

Collapse
No announcement yet.

Mouse commands

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mouse commands

    Is there any such thing?

    I use keyboard commands such as "SENDKEY;^{UP}","Page Up" with RR buttons to control things like Street Atlas and RR Earth.

    What I need is a mouse command, specifically mouse scroll up/down.
    I have a skin with the interactive weather map at weather.com. I can zoom in by clicking the screen, but I cant scroll out without using the mouse. I'd like to try creating a button with mouse scroll out to control this function.

    So are there any such commands? Will RR recognise them?

    Thanks...Paul

  • #2
    There's no current mouse "emulation" commands in RR (like the ones for the keyboard) mainly because it's hard to tell the positioning or the placement of the mouse over the window (and which window), without knowing where exactly it is embedded.

    RR Earth however, has commands to set the zoom and tilt levels without using the mouse.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      Originally posted by guino View Post
      There's no current mouse "emulation" commands in RR (like the ones for the keyboard) mainly because it's hard to tell the positioning or the placement of the mouse over the window (and which window), without knowing where exactly it is embedded.

      RR Earth however, has commands to set the zoom and tilt levels without using the mouse.
      Guino,
      I see your point, For what I had in mind it would certainly be necessary for the mouse to be over the correct area of the display.

      Just thinking out loud (dangerous I know)
      Would: The ACTIVATE command, followed by a command to position the cursor (assuming it existed), followed by the mouse command (assuming it existed) work?

      ...Paul

      Comment


      • #4
        If you are using the interactive map I think that you are, there is a scroll bar in the top left of the window. Be it pretty small, but it will let you zoom in and out.

        When I get a chance to mess with it, I am going to see if I can send some control-Clicks with an AutoIt script, to be able to control the buttons on the map, with Road Runner buttons. This should work, as the interactive map can not be resized, and the coordinates will be from the top left of the map, and not the top left of the Road Runner skin.
        Attached Files
        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

        Comment


        • #5
          Originally posted by pshadwick View Post
          Guino,
          I see your point, For what I had in mind it would certainly be necessary for the mouse to be over the correct area of the display.

          Just thinking out loud (dangerous I know)
          Would: The ACTIVATE command, followed by a command to position the cursor (assuming it existed), followed by the mouse command (assuming it existed) work?

          ...Paul
          Possibly would work, right up until that program (or outside application) throws in a window on top of it cause RR to click on something it wasn't supposed to, which could either do nothing, or do something you didn't want it to do.
          Ride Runner RR's Myspace

          "Being happy is not about having what you want, it's about wanting what you have."
          "The best things in life are always free - but that doesn't mean money can't buy you good things."

          Comment


          • #6
            Originally posted by JohnWPB View Post
            If you are using the interactive map I think that you are, there is a scroll bar in the top left of the window. Be it pretty small, but it will let you zoom in and out.

            When I get a chance to mess with it, I am going to see if I can send some control-Clicks with an AutoIt script, to be able to control the buttons on the map, with Road Runner buttons. This should work, as the interactive map can not be resized, and the coordinates will be from the top left of the map, and not the top left of the Road Runner skin.
            Unfortunatly the window does not resize, to get the animation controls I had to move the window way (-66 I think), so I lose the scroll bars off the top.
            ...Paul

            Comment


            • #7
              i can whip up something in autoIT pretty quick that will do this.
              Ill also assume for now that the control u need to activate is in the center of the screen, so what will happen when click the button is it will first move your mouse to the center of the screen and make one click, then scroll the mouse wheel up or down.

              If this is what u want let me know and i ll post it up.
              01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
              01101101 01101111 01101011 01100101

              beer replenishment fund
              http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
              mp3car live search

              i have joost invites, just hit me up for one.

              Comment


              • #8
                Darn...to late. thought that I might have another small challenge to pursue...unless LS chicken's out...LOL
                RideRunner...The #1 FE, PERIOD.

                Current Project: DFXVoice [v1.0 Released]
                Next in line: RRMedia v2.0

                DFX 5.1.1 Skin
                Appstore Link

                My RideRunner Plugins
                RRMedia
                RRExtended
                DFXVoice

                "There are no bugs - only undocumented features."

                Comment


                • #9
                  Originally posted by liquid_smoke View Post
                  i can whip up something in autoIT pretty quick that will do this.
                  Ill also assume for now that the control u need to activate is in the center of the screen, so what will happen when click the button is it will first move your mouse to the center of the screen and make one click, then scroll the mouse wheel up or down.

                  If this is what u want let me know and i ll post it up.
                  That sounds just what I what looking for.
                  Thanks...Paul

                  Comment


                  • #10
                    here you go.

                    This version is configurable so if you need to change anything its supereasy.


                    place the unzipped files into your skins directory.

                    Add this line to your ExecTBL.ini


                    Code:
                    "mousewheel_UP","Run;$skinpath$\mousewheel.exe|300 400 up 3"
                    "mousewheel_DOWN","Run;$skinpath$\mousewheel.exe|300 400 down 3"
                    the application receives commands from RR as to what position to move the mouse to, what direction to scroll the wheel and how many times to scroll it.

                    Using the First line of code above as an example.
                    300 is X position
                    400 is Y position
                    up is direction
                    3 is number of times to scroll

                    each option should have a space between them and all options must have a value or it wont work.



                    Create a button that uses "mousewheel_UP" or "mousewheel_DOWN" as its button code.

                    Customize and create buttons as needed.
                    Attached Files
                    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
                    01101101 01101111 01101011 01100101

                    beer replenishment fund
                    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
                    mp3car live search

                    i have joost invites, just hit me up for one.

                    Comment


                    • #11
                      Originally posted by liquid_smoke View Post
                      i can whip up something in autoIT pretty quick that will do this.
                      Ill also assume for now that the control u need to activate is in the center of the screen, so what will happen when click the button is it will first move your mouse to the center of the screen and make one click, then scroll the mouse wheel up or down.
                      I have this embedded in my skin right now. Currently, there are no external controls for it, just the buttons on the map itself. Clicking in the center and using the scroll wheel does not work with this map, like Google Maps does....
                      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

                      Comment


                      • #12
                        just going by what paul said he needed. I dont have the weather thing on my skin so i have no idea.

                        If that works for you paul let me know, if u need something else let me know that also.
                        01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
                        01101101 01101111 01101011 01100101

                        beer replenishment fund
                        http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
                        mp3car live search

                        i have joost invites, just hit me up for one.

                        Comment


                        • #13
                          Here is my run of that code..

                          Code:
                          If IsHWnd(WinGetHandle($cmdline[1]) And $cmdline[2] = -1 And $cmdline[3] = -1 Then
                          	;locates the center of the giving win title
                          	Opt("WinTitleMatchMode",4)
                          	$winpos=WinGetPos($cmdline[1])
                          	$x=$winpos[0]+($winpos[2]/2)
                          	$y=$winpos[1]+($winpos[3]/2)
                          	$dir=$cmdline[4]
                          	$clicks=$cmdline[5]
                          Else
                          	;use given coords
                          	$x=$cmdline[1]
                          	$y=$cmdline[2]
                          	$dir=$cmdline[3]
                          	$clicks=$cmdline[4]
                          EndIf
                          MouseClick("left",$x , $y, 1,1)
                          MouseWheel($dir, $clicks)
                          Code:
                          "mousewheel_UP","Run;$skinpath$\mousewheel.exe|Notepad -1 -1 up 3"
                          "mousewheel_DOWN","Run;$skinpath$\mousewheel.exe|Notepad -1 -1 down 3"


                          Using my version of code above as an example.
                          Notepad is wintitle
                          -1 is auto center X position of given window title
                          -1 is auto center y position of given window title
                          up is direction
                          3 is number of times to scroll
                          RideRunner...The #1 FE, PERIOD.

                          Current Project: DFXVoice [v1.0 Released]
                          Next in line: RRMedia v2.0

                          DFX 5.1.1 Skin
                          Appstore Link

                          My RideRunner Plugins
                          RRMedia
                          RRExtended
                          DFXVoice

                          "There are no bugs - only undocumented features."

                          Comment


                          • #14
                            Originally posted by Blue ZX3 View Post
                            Here is my run of that code..

                            Using my version of code above as an example.
                            Notepad is wintitle
                            -1 is auto center X position of given window title
                            -1 is auto center y position of given window title
                            up is direction
                            3 is number of times to scroll
                            Originally posted by JohnWPB View Post
                            Clicking in the center and using the scroll wheel does not work with this map, like Google Maps does....
                            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

                            Comment


                            • #15
                              Originally posted by liquid_smoke View Post
                              just going by what paul said he needed. I dont have the weather thing on my skin so i have no idea.

                              If that works for you paul let me know, if u need something else let me know that also.
                              John is right (I messed up). Double clicking does zoom in, but the scroll wheel does nothing (I was switching back and forward between this and google earth and obviously wasnt paying close enough attention)
                              Thanks anyway for the script.
                              ...Paul

                              Comment

                              Working...
                              X