what did you create the gps window name to ? i tried pcnav7...
Printable View
what did you create the gps window name to ? i tried pcnav7...
This is basic RR embedding stuff, i will put it all in the how-to
Ok, so i think we need a How-to for using PCNav7 in RR embedded.
First off, i would love some comments on it, since i might not have gotten everything done as cleverly as it could be, but here it goes :
Components you need for this to work :
- PC Navigator 7 Standard or Pro : www.directions.ltd.uk
- Patch for Windowed mode support (for RR embedding) : http://static.mapfactor.com/files/pc...h-7_1_13-1.exe
- PC Navigator Windowed Launcher Application / Window kill script (by me :-) : http://www.csaforum.dk/pcnav.zip http://www.csaforum.dk/kill.zip
- Example skin files for this example : http://www.csaforum.dk/skins.zip
- Beyondlogic Process Killer (Kills pcnav and my app upon exit of gps window : http://www.beyondlogic.org/solutions...process203.zip
-------------- Installation and Configuration ---------------------------
Once you installed PC Navigator 7 and the patch, unpack pcnav.zip, kill.zip and Beyondlogic Process Killer wherever you like, i just use c:\ in my setup.
PCNav has to be here : C:\Program Files\Navigator7\PC_Navigator\
- Skin
Ok, now we need to do the RR skin stuff, i use the destinator_gps.skin file in the i use skin called KUO, but any generic skin will do, as long as it has a exit and close button (so you can change into main menu and so on).
What you need to do is find the button code in your menu.skin that has the GPS command in it, and replace it with this :
<button coords>"load;destinator_gps.skin;!BarneyMainWndCls !Navigator;c:\startpcnav.exe;!BarneyMainWndCls!Nav igator||ACTIVATE;Navigator",""
This will load the destinator_gps.skin call my launcher which starts pcnav embedded, and embed with the window name params "!BarneyMainWndCls!Navigator" which is pcnav7's window name.
The whole line in this skin looks like this :
B06,401,299,399,102,"load;destinator_gps.skin;!Bar neyMainWndCls!Navigator;c:\startpcnav.exe;!BarneyM ainWndCls!Navigator||ACTIVATE;Navigator",""
- Embedding setup
The skin i use has a 50 pixel high bar on the top where the exit and the close button is, this means that pcnav has to be embedded at x=0,y=50 and has to be 800x550 pixels in size, if you are running in 800x600 as i am. These settings are done in the settings.ini file that came with the pcnav.zip.
This is how settings.ini should look in this setup :
0
50
800
550
Pretty basic, but it works :-)
- GPS Skin
Now in the destinator_gps.skin file i use, to stop pcnav running instead of exiting to the main menu, i use the Process kill util, with the kill.bat file from the kill.zip file. So in the close button you should have the following, of course you need to change the button location if you are not using destinator_gps_skin :
B01,690,0,44,48,"RUN;C:\kill.bat||CLOSE||EXIT","Cl ose"
B02,745,0,44,48,"EXIT","Exit"
So when the X is pressed it will stop my application and pcnav7, plus it will exit the window.
Close just goes back to main menu, so you can change between audio/gps and so on.
Also, you need to define a Clip area the same size as the application area in the skin.
A01,0,50,800,550,000,000,000
C01,0,50,800,550
See the skins.zip for the complete gps skins i use, and copy from them, as the forum here inserts spaces in the text sometimes.
Hope this guide is usefull, and i would like comments on how to organise or maybe change some things in it from you guys.
Nice guide dude,
Prob be worth putting this into a seperate thread to be stickied!
probably, it would prevent the clutter and trying to find that one post you need is getting very difficult with the long threads. I think we need to get the volume issue tried and tested first, then the how-to is pretty much complete.
Yup, i have indievolume working on my home pc right now with winamp and another program (media player classic), since i can't get Pcnav to say anything without a gps connected to it. It works by defining pcnav as the exclusive app. and everything else (rr, winamp, video player and so on) as non-exclusive, then when pcnav tries to use the soundcard, everything else gets muted. I think i saw somewhere that a new version was coming where the volume could be turned down, instead of completely muting.
So i think indievolume is the way to go for now, until something more simple comes along, like a better sdk that lets us control and talk to the actual pcnav application from RR
No clue, i don't use POI's at all.