Announcement

Collapse
No announcement yet.

Default RR installation, Carwings - where is the skin file?

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

  • Default RR installation, Carwings - where is the skin file?

    I just made a default installation of RR, and trying to develop a plugin.
    RR shows "CARWINGS" in top left corner, it obviously uses CARWINGS skin;
    However, search does not find and related *.skin or *.ini files, as described in the manual:

    The code you make will basically be loaded through a simple skin definition that can be added to any existing skin as desired. The below loads the example extension plugin included in RR's sources:

    X,MyExtension


    Extenesion demo does not include any skin files whatsover.

    I've attached complete list of files in my installation.

    Thanks for all your help.
    Attached Files
    Will contract for C++/Win-Linux/PIC jobs

  • #2
    c:/Users/<Me>/Documents/RideRunner/Skins/Carwings_Dynamic_Lite/menu.skin

    IMHO that is a good candidate for FAQ
    Will contract for C++/Win-Linux/PIC jobs

    Comment


    • #3
      X, xxxx is deprciated, DONT USE
      -Thanks
      Mitch
      www.rush2112.net

      "Did you test it in carwings??"

      Sun, Come shine my way
      May healing waters bury all my pain
      Wind, Carry me home
      The fabric of reality is tearing apart
      The piece of me that died
      Will return To live again

      Comment


      • #4
        Thanks @mitchjs, I already figured that. I managed to launch RRCam and investigating approach that @Enforcer has originally recommended,

        L06,619,460,164,63,255,255,255,16,"Arial:B","EXEC; SENDMSG;RRCam.exe;BUTTON6||=",

        seems to be quickest in terms of porting effort. I could actually continue maintaining the same code base.

        ParkingAssistant runs in background. Is there any way it can make RR execute commands (like two-way SendMessage) ?
        Will contract for C++/Win-Linux/PIC jobs

        Comment


        • #5
          sure, did you write it? i dont know what it is.. do you have access to its code

          you can just check if rr is running..create the SDK object, and tell RR to do stuff
          -Thanks
          Mitch
          www.rush2112.net

          "Did you test it in carwings??"

          Sun, Come shine my way
          May healing waters bury all my pain
          Wind, Carry me home
          The fabric of reality is tearing apart
          The piece of me that died
          Will return To live again

          Comment


          • #6
            Hmm, not sure if I understand >> did you write it?<< I meant supporting code base of that creature.

            RRCam approach is such that is has exe file C:\Users\<username>\Documents\RideRunner\Skins\Car wings_Dynamic_Lite\Plugins\RRCam\RRCam\RRCam.exe
            which is controlled by Skin buttons trough SENDMSG. Looks like it calls winapi SendMessage.

            Ideally, I would prefer to avoid linking against RR libraries and keep talking both ways using SendMessage. Not sure if that is possible though.

            you can just check if rr is running..

            I'm actually thinking to run with command line parameter "parker.exe --roadrunner".
            Last edited by novorado; 05-17-2011, 08:59 AM.
            Will contract for C++/Win-Linux/PIC jobs

            Comment


            • #7
              you CAN use sendmessage, its just not a PLUGIN (per say), so we dont want to use that term
              keep in mine that rrcam, is really one way communication


              just target riderunner window, and send command via string via WM_COPYDATA
              need an example? in what vb6? .net?

              direct SDK controll is much easier

              SDK.Exec("mycommand")

              if you want to have RR Skin elements, like indicators and lables, much easier to make a real plugin

              ---------- Post added at 12:54 PM ---------- Previous post was at 12:52 PM ----------

              oh and you dont link against any RR libs

              its an COM Object, so you just create the object, and use it, the OS handles the behind the scenes
              Last edited by mitchjs; 05-17-2011, 12:01 PM.
              -Thanks
              Mitch
              www.rush2112.net

              "Did you test it in carwings??"

              Sun, Come shine my way
              May healing waters bury all my pain
              Wind, Carry me home
              The fabric of reality is tearing apart
              The piece of me that died
              Will return To live again

              Comment


              • #8
                Originally posted by mitchjs View Post
                if you want to have RR Skin elements, like indicators and lables, much easier to make a real plugin[COLOR="Silver"]
                Thanks again @mitchjs; I tried following your recommendation (easier to use SDK method, easier access to skin, etc). And modified C# sample, exporting all the parking assistnant methods. Please see the attachement - it has C# prototype module.

                1) What is not clear from example, provided by @guino, where is sample skin mentioned in
                Code:
                		
                public int ProcessCommand(string CMD, object frm)
                		{
                			int result = 0;
                	
                			switch (CMD.ToLower())
                			{
                				case "boo":
                					SDK.Execute("PlaySound;scary.wav");
                					break;
                
                				case "yeah":
                					SDK.ErrScrn("title", "subject", "error details");
                					break;
                2) Is there any plugin example of actually drawing (painting) into the Plugin area on paintevent ?

                3) What commands can be used to Suspend multimedia playback and bring the plugin up by device event and than resume and hide Parking Asistance plugin?

                I suspect that I wont be able to accomplish all those tasks without help from RR authors, so thanks for your help guys.
                Attached Files
                Last edited by novorado; 05-18-2011, 03:35 AM.
                Will contract for C++/Win-Linux/PIC jobs

                Comment


                • #9
                  you dont paint! rr paints!
                  RR manages all the skin drawing...
                  you just do reaction to buttons, fill in labels, update indicators...

                  you can send the pause commnd
                  SDK.Execute("pause");
                  that will pause the playing music/radio/xm/sirius
                  and "resume" resume it

                  u want to bring up your app in a skin...

                  make a skin file with an embedded window definition for ur window
                  and
                  SDK.Execute("load;skinname.skin;;myexe.exe;mywindo wname")

                  something like that

                  can always try commands in SKINTOOL 1st

                  baby steps
                  -Thanks
                  Mitch
                  www.rush2112.net

                  "Did you test it in carwings??"

                  Sun, Come shine my way
                  May healing waters bury all my pain
                  Wind, Carry me home
                  The fabric of reality is tearing apart
                  The piece of me that died
                  Will return To live again

                  Comment


                  • #10
                    Thanks Mitch, will try that out.
                    Will contract for C++/Win-Linux/PIC jobs

                    Comment

                    Working...
                    X