Announcement

Collapse
No announcement yet.

OnResume/OnSuspend Commands in ExecTbl.ini not working...

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

  • OnResume/OnSuspend Commands in ExecTbl.ini not working...

    I am not sure whats going on here but I am using the SerialSwitch plugin to get the DTRON and DTROFF commands (to turn on and off my amplifiers) unfortunately however when i stick the commands into OnSuspend/OnResume in the ExecTbl.ini they dont do anything.

    I have mapped dtroff/on to buttons in a skin and have confirmed that they work from there, so the commands themselves work, however Ride Runner just isn't sending them when hibernation is triggered/ends. Any ideas?

  • #2
    u should look at debug.txt log, to see if RR even knows the system is going into hibernation


    like

    10/18/2009 1:06:21 AM: WM_POWERBROADCAST: wParam=PBT_APMSUSPEND
    10/18/2009 1:06:21 AM: PrepareForHibernate: (Start)
    10/18/2009 1:06:21 AM: Enter Exec: False, sirius.skin, "ONSUSPEND", False
    -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


    • #3
      Please note that the MSCOMM control from Micro$oft does not play well during Suspend/Resume...SerialSwitch uses this.
      For some it does and some it doesn't. Although it sounds like you have a differen't issue. Debug as Mitch suggested.
      ...JJG

      Comment


      • #4
        Here is what shows up in the debug from the initiation of hibernate:

        Code:
        25.10.2009 21:30:15: PrepareForHibernate: (Start)
        25.10.2009 21:30:15: Enter Exec: False, shutdown.skin, "ONSUSPEND", False
        25.10.2009 21:30:15: Que Exec: True, shutdown.skin, "ONSUSPEND", False
        25.10.2009 21:30:15: Executing: DTROFF
        25.10.2009 21:30:15: Command not executed: DTROFF
        25.10.2009 21:30:15: Que Exec: True, shutdown.skin, "ONCOMMANDINVALID", False
        25.10.2009 21:30:15: Executing: ONCOMMANDINVALID
        25.10.2009 21:30:15: Leave Exec: False, shutdown.skin, ONCOMMANDINVALID, False
        25.10.2009 21:30:15: PrepareForHibernate: (After radio power's)
        25.10.2009 21:30:15: PrepareForHibernate: Event/File Flush (end sub)
        25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=0
        25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=0
        25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=PBT_APMSUSPEND
        25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=PBT_APMSUSPEND
        25.10.2009 21:31:06: Leave Exec: False, shutdown.skin, HIBERNATE, False
        25.10.2009 21:31:06: WM_POWERBROADCAST: wParam=PBT_APMRESUMEAUTOMATIC
        25.10.2009 21:31:06: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
        25.10.2009 21:31:06: ---------------------------->
        attached is the complete debug.txt and exectbl...
        Thanks in advance
        Attached Files

        Comment


        • #5
          I don't know why the exectbl didn't attach hopefully this time it will
          Attached Files

          Comment


          • #6
            Any ideas guys?

            Comment


            • #7
              This is a really easy fix. The reason its happening is that when you translate a cmd the translated cmd has to be BELOW the orig cmd calling the new one. You can either move your "DTROFF" line below the "ONxxx" events or you can change your "DRTXX" cmds to this:
              "ONSUSPEND","||DTROFF"

              By putting an empty cmd before it, forces RR to start back at the top when it tries to translate the cmd and b/c its starting at the top, it will find the new cmd....
              RideRunner...The #1 FE, PERIOD.

              Current Project: DFXVoice [v1.0 Released]
              Next in line: RRMedia v2.0

              DFX 5.1.1 Skin
              Appstore Link

              My RideRunner Plugins
              RRMedia
              RRExtended
              DFXVoice

              "There are no bugs - only undocumented features."

              Comment


              • #8
                I'm going to try this when i get in the car, but that makes perfect sense. A little bit unintuitive but it makes sense.

                I'll report back.

                Comment


                • #9
                  Should work, is something that new skinners always run into and either figure it out by themselves or they search/ask.

                  I have now also added extra notes to the main rr exectbl.ini file so that others don't have same hard time trying to figure out why their cmds are not working.
                  RideRunner...The #1 FE, PERIOD.

                  Current Project: DFXVoice [v1.0 Released]
                  Next in line: RRMedia v2.0

                  DFX 5.1.1 Skin
                  Appstore Link

                  My RideRunner Plugins
                  RRMedia
                  RRExtended
                  DFXVoice

                  "There are no bugs - only undocumented features."

                  Comment


                  • #10
                    It works!... Kind of :/ The onsuspend command (dtroff) works just fine, but on resume it will not run dtron. I'm kind of confused.

                    Comment


                    • #11
                      What of the two changes did you do? Moving the lines or adding "||" before the cmds?
                      RideRunner...The #1 FE, PERIOD.

                      Current Project: DFXVoice [v1.0 Released]
                      Next in line: RRMedia v2.0

                      DFX 5.1.1 Skin
                      Appstore Link

                      My RideRunner Plugins
                      RRMedia
                      RRExtended
                      DFXVoice

                      "There are no bugs - only undocumented features."

                      Comment


                      • #12
                        Originally posted by Blue ZX3 View Post
                        This is a really easy fix. The reason its happening is that when you translate a cmd the translated cmd has to be BELOW the orig cmd calling the new one. You can either move your "DTROFF" line below the "ONxxx" events or you can change your "DRTXX" cmds to this:
                        "ONSUSPEND","||DTROFF"

                        By putting an empty cmd before it, forces RR to start back at the top when it tries to translate the cmd and b/c its starting at the top, it will find the new cmd....

                        Now Shirley, RR should go back to the beginning of the translation list by default whenever it comes across a translation. (Danger here is I suppose that an endless loop could be caused. But that could also happen with your suggested solution )

                        Comment


                        • #13
                          Originally posted by Blue ZX3 View Post
                          What of the two changes did you do? Moving the lines or adding "||" before the cmds?
                          Moving the lines.

                          Comment


                          • #14
                            is your "DTRON" command being translated into something else as well ? cause if it is, then you again need to verify that "DTRON" is being translated BELOW the ONRESUME line ...

                            I think it maybe very helpful to post a zip of your exectbl.ini for us to look/propose a solution.
                            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


                            • #15
                              Originally posted by Keem View Post
                              It works!... Kind of :/ The onsuspend command (dtroff) works just fine, but on resume it will not run dtron. I'm kind of confused.
                              Originally posted by Blue ZX3 View Post
                              What of the two changes did you do? Moving the lines or adding "||" before the cmds?
                              Originally posted by Keem View Post
                              Moving the lines.

                              Well looking at the exectbl.ini you posted, if you just moved the two lines down then it won't work as you have not used DTRON in the ONRESUME command, or anywhere in fact.

                              Comment

                              Working...
                              X