Results 1 to 10 of 10

Thread: No initial focus on embedded MS Streets

  1. #1
    Low Bitrate
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    76

    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. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  3. #3
    Low Bitrate
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    76
    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

  4. #4
    Low Bitrate
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    76
    Quote 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

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  6. #6
    Low Bitrate
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    76
    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

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  8. #8
    Low Bitrate
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    76
    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

  9. #9
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  10. #10
    Low Bitrate
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    76
    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

Similar Threads

  1. BU-303 with MS Streets and Trips
    By devin98 in forum GPS
    Replies: 0
    Last Post: 05-15-2005, 05:20 PM
  2. errors on the homepage
    By alti in forum Mp3car Forum Suggestions/Comments
    Replies: 61
    Last Post: 04-14-2005, 09:26 PM
  3. Replies: 2
    Last Post: 08-15-2004, 04:49 PM
  4. Replies: 2
    Last Post: 08-21-2003, 01:08 PM
  5. Replies: 19
    Last Post: 11-19-2002, 06:37 AM

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
  •