Announcement

Collapse
No announcement yet.

No initial focus on embedded MS Streets

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

  • No initial focus on embedded MS Streets

    I have been using MS Streets and Trips for years and figured I would try to skin it for RR. I have it working for the most part, one issue I have is that when it is launched, Streets.exe does not have focus. If I tap the map, it works from there on out, just not at first. I tried searching but most people seem to be talking about the OSK sendkeys, Any Ideas?

    Here is the command I am using to launch the skin

    B06,418,298,369,116,"LOAD;STREETS.SKIN;Streets;C:\ Program Files\Microsoft Streets and Trips\Streets.exe;Map - Microsoft Streets & Trips","Streets"


    and the skin itself uses this

    MEDIACAR Skin
    MEDIACAR "STREETSMenu"(800x600Stretched)"Streets" skin
    streets_empty.jpg,streets_off.jpg,streets_on.jpg,s treets_down.jpg

    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B01,7,8,43,57,"Exit",Exit
    B02,0,74,50,63,"SENDKEY;%VZI","Zoom In"
    B03,0,137,50,63,"SENDKEY;%VZO","Zoom Out"
    B04,0,199,50,63,"SENDKEY;%VTN","Change Map"
    B05,0,261,50,63,"SENDKEY;%TP","GPS"
    B06,0,325,50,62,"SENDKEY;%UI","Directions"
    B07,0,387,50,63,"SENDKEY;%UR","Route Planner"
    B08,0,450,50,62,"SENDKEY;%TN","Find Places"

    /, L, x, y, w, h, color R;RGB, G, B, font size;FONT, font name, Code;LABELCODES, Tooltip;LABELALIGNMENT
    L01,52,39,60,25,96,32,0,10,"Arial:B","TIME","CENTE R"
    L02,52,11,60,25,96,32,0,10,"Arial:B","DATE","CENTE R"

    /, I, x, y, w, h, Code;INDICATORCODES
    I01,700,14,50,20,"MBM01"
    I02,700,38,50,20,"MBM49"

    /, L, x, y, w, h, color R;RGB, G, B, font size;FONT, font name, Code;LABELCODES, Tooltip;LABELALIGNMENT
    L03,115,25,550,36,96,32,0,16,"LCD Display Grid","AUDIOTRACK","SCROLL-RIGHT"

    /, A, x, y, w, h, color;RGB
    A01,55,80,740,515,000,"Streets"

    END

    Chris

  • #2
    When you launch an application, it automatically takes the focus away from RR. So the problem is unlikely to be that Streets&Trips doesn't have the focus, but yet that it requires that you "select" the map (within itself) for the shortcuts to work. I have a copy of 2003 here (I won on a trade-show), so I can probably test it out.. in any case, I can *try* to set the lauched application's as "on focus" right after launching them...
    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
      Thanks Guino,

      I thought about the "selecting the map" thing but most of my commands are menu screen commands, e.g. "Alt+V,T,N". I know it is a goofy way to get around but I was unable to send a "Ctrl" command with the "^" for the ones that had keyboard shortcuts.

      Don't work to hard on this yet, I found a utility on GPSPassions.com that will set the F keys to do things to Streets, so focus may not me necessary. I will play with that tonight and let you know if it works.

      Chris

      Comment


      • #4
        Originally posted by HyperSprite
        Don't work to hard on this yet, I found a utility on GPSPassions.com that will set the F keys to do things to Streets, so focus may not me necessary. I will play with that tonight and let you know if it works.
        So much for that, I have no idea what I am doing with that utility. It's here if anyone wants to look at it. http://www.gpspassion.com/forumsen/t...TOPIC_ID=24519

        Chris

        Comment


        • #5
          Have you tried the "ShowWindow" command at all to "activate" S&T window after showing loading the skin ? (i.e.: "LOAD;....||SHOWWINDOW;<WINDOWTITLE>;true" )

          It was meant to hide/show windows but showing a window has the effect of making it on focus as well.

          Let me know,
          Guino.
          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
            I added the ShowWindow to the load line and it made no difference. Is there any way to send a objShell.AppActivate command before sending the key stroke?

            Chris

            Comment


            • #7
              that's what it is supposed to be doing... it should send keys to the last "active" window excluding any of RR's windows. I'll double check on this.. but the DVD player for instance is entirely based on this.
              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


              • #8
                Well I discovered a clue on this.

                I have been testing this on my laptop due to a screen issue in my car last night I finally tested on my little screen and it seems focus is going to the task bar. So Streets launches and then the task bar pops up. I then resized my laptop screen and it does the same thing, so somehow, something is throwing the focus to the task bar, I just don't know what.

                Chris

                Comment


                • #9
                  Well, that's why there's such an option as: "Hide TASKBAR".
                  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


                  • #10
                    That did it, sorry for all the headaches.

                    I am off to finish the skin and will post it as soon as I get all the buttons working as expected. Should be a few days of that and a few more of testing.

                    Thanks again for all your help,
                    Chris

                    Comment

                    Working...
                    X