Announcement

Collapse
No announcement yet.

embedding copilot in mediacar

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

  • embedding copilot in mediacar

    mediacar is a really great front end, but for those of us who use copilot it's kind of hard to use both together. one solution is to always show the taskbar, but it would be nice if you could use copilot embedded into mediacar. i don't know exactly what is needed to be able to embed a program. i think that the window has to be moveable and resizable, of which copilot can do neither. i messed around with the exe file and was able to put the guidance screen into a window and make it moveable. i have not been able to make it resizeable. the caption for the window is "In-Vehicle Guidance". Can anyone tell me what exactly i need to make copilot do so that we can embed it into mediacar?
    my car: 2003 g35 coupe, 2.5ghz c2d cpu, gigabyte micro atx mb, dsatx
    wife's car: 2004 honda accord coupe 2.4ghz p4 cpu, asus micro atx mb, opus 150
    company car: 2006 chevy avalanche 2.0ghz p4 laptop, cnx p1900

  • #2
    Thats not what I see.

    In Driver mode I see that the top level (non child) windows is captioned:

    "CoPilot 2003" and is actually a dialog frame. The styles are:

    popup/visible/disabled/clipsibs/overlapped.

    This is a container window only, the main panel has a caption of:

    "In-Vehicle Route Guidance"

    which contains two windows: PanelMap and PanelGPSTop

    I have been able to get windows to embed by getting the caption correct and the window suporting resize.

    Without the author of MediaCar the only knowledge I have been able to get is empirical. By making my own things embedd. This have been pretty easy, but I haven't started on co-Pilot yet. I first need to figure out why it hangs sometimes when I click the itinary, and why it tells me to turn left and yet the map clearly shows right sometimes. I have 2003 with the latest patch. Im impressed with the quality of the program except these important errors in makes (and the very annoying hangs). at least its better than Desinator which didnt even have my town on!

    Please let me know how this goes. If you dont figure it out, I'll write a wrapper program that launches and finds the CoPilot windows and tells it to resize. If it wont listen, then its possible to change the window styles for a window too, you need the processid which can be found by enumerating the process table.
    .//Daren
    (Epia M10000/C134) (C137/MII 10000) Liliput /Opus 150W/DVD/512MB/80GB/Hummer H1
    MediaCar/CoPilot7/Routis

    Comment


    • #3
      Kuo

      You might find this program useful. I wrote it to help you figure this out.

      When you run it (there is a release build and source) you enter some search string, like "CoPilot" (no * in these, unlike MC).

      The program will then enumerate all visible windows with a caption and try and match the first to whatever you typed.

      When you have something selected you can click resize and it will do a MoveWindow to 100,100, 800, 600 - offset 100,100, size 800x600.

      This is just an illustration. I was able to get CoPilot to resize and move just fine using this. The problem is that when CoPiloit first starts it doesnt have the window that you ultimately resize created yet...

      You'll see when you play with this.

      Obviously feel free to play with the program and make it more useful.

      The app is a MSVC6 project.
      Attached Files
      .//Daren
      (Epia M10000/C134) (C137/MII 10000) Liliput /Opus 150W/DVD/512MB/80GB/Hummer H1
      MediaCar/CoPilot7/Routis

      Comment


      • #4
        Think you could make that command lind based, ad we could run a batch file to look for the window, create the window, so Media car can snap it into place?
        2011 Nissan Frontier SL
        AMD X3 2.2 | M4-ATX | 16Gb SSD | 2GB DDR3-1333 | MSI GF615M-P33 MB
        OBDPROS USB | BU-303 GPS l LILLIPUT TS | Car2PC adapter | XM Direct | USB Dual band N with custom mag-mount antenna.

        Comment


        • #5
          hey mobile,

          i think i'm going to have to wait for you to write your wrapper program. i got copilot laptop 7 to embed into mediacar but i do not know how to make it resizeable. when it was embedded, the buttons were cut off. also you can't switch to any other module in mediacar without first quiting copilot. i'm going to keep looking at this but i hope someone smarter than me figures it out first.
          my car: 2003 g35 coupe, 2.5ghz c2d cpu, gigabyte micro atx mb, dsatx
          wife's car: 2004 honda accord coupe 2.4ghz p4 cpu, asus micro atx mb, opus 150
          company car: 2006 chevy avalanche 2.0ghz p4 laptop, cnx p1900

          Comment


          • #6
            Originally posted by kuo
            hey mobile,

            i think i'm going to have to wait for you to write your wrapper program. i got copilot laptop 7 to embed into mediacar but i do not know how to make it resizeable. when it was embedded, the buttons were cut off. also you can't switch to any other module in mediacar without first quiting copilot. i'm going to keep looking at this but i hope someone smarter than me figures it out first.
            Which buttons were cut off? If you can't switch to another module then it's not embedded.
            Laidback


            The ultimate CarPC - Wow!

            Comment


            • #7
              i will try to look into this for routis as well. i have similar problems with resizing and not being embedded.
              "Is Wayne Brady gonna have to choke a b@$#*??!!"

              Comment


              • #8
                what i meant when i said i got copilot embedded was that the copilot window became only as big as the media car window. i'm running 1600x1200 on my desktop computer and mediacar is running at 848x480. when copilot normally opens up it goes fullscreen, but when i put the caption as "in-vehicle route guidance" in mediacar and opened it embedded, copilot opened up at 1600x1200 but the visible window was only 848x480 so a all of the buttons on the right were not visible. i think it showed the top left 848x480 of the 1600x1200 window. i hope that made some sense.
                my car: 2003 g35 coupe, 2.5ghz c2d cpu, gigabyte micro atx mb, dsatx
                wife's car: 2004 honda accord coupe 2.4ghz p4 cpu, asus micro atx mb, opus 150
                company car: 2006 chevy avalanche 2.0ghz p4 laptop, cnx p1900

                Comment


                • #9
                  As a new owner of copilot this thread is of importance to me. Is there any we we can come up some way to embed this in mediacar?
                  -Jesus- King of Kings Lord of Lords

                  Comment


                  • #10
                    id be highly interested to this as well
                    2004 G35 Coupe project

                    Comment


                    • #11
                      me 2 ")
                      2011 Nissan Frontier SL
                      AMD X3 2.2 | M4-ATX | 16Gb SSD | 2GB DDR3-1333 | MSI GF615M-P33 MB
                      OBDPROS USB | BU-303 GPS l LILLIPUT TS | Car2PC adapter | XM Direct | USB Dual band N with custom mag-mount antenna.

                      Comment


                      • #12
                        well arent we all just a bunch of needy people

                        Here is how 00cericarus is doing it

                        here's what i do at the moment
                        i use mediacar, set the skin size so my taskbar is visible.
                        set in the copilot options - show windows taskbar
                        added a quicklaunch icon for copilot
                        when i'm in mediacar, i can just push the quicklaunch icon for copilot, and it starts up, then i can use the taskbar to switch between the two.
                        -Jesus- King of Kings Lord of Lords

                        Comment


                        • #13
                          I just use co-pilot in my applications section of media car.
                          2011 Nissan Frontier SL
                          AMD X3 2.2 | M4-ATX | 16Gb SSD | 2GB DDR3-1333 | MSI GF615M-P33 MB
                          OBDPROS USB | BU-303 GPS l LILLIPUT TS | Car2PC adapter | XM Direct | USB Dual band N with custom mag-mount antenna.

                          Comment


                          • #14
                            Embedding it might not be possible unless Coyotee shows his head again.

                            I just ordered CoPilot7 which I'll work on.

                            The only way I think this is going to fly is to do the following:

                            - start copilot and fool it into thinking the screen size is 800x600 (or whatever), then use MoveWindow on it to get it to move relative to the MC framing.

                            I know XP can do this kind of thing using the compatibility libs, but I havent had any time to play with it. Wife+toddler+contracts are time consuming.
                            .//Daren
                            (Epia M10000/C134) (C137/MII 10000) Liliput /Opus 150W/DVD/512MB/80GB/Hummer H1
                            MediaCar/CoPilot7/Routis

                            Comment


                            • #15
                              Well, i think it can be done programatically for sure.

                              As for Coyote

                              check this thread http://www.mp3car.com/vbulletin/showthread.php?t=27674

                              Apparently there has been some more info from his wherabouts on the french forum
                              -Jesus- King of Kings Lord of Lords

                              Comment

                              Working...
                              X