Announcement

Collapse
No announcement yet.

button to exit embedded program and return to menu, won't work

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

  • button to exit embedded program and return to menu, won't work

    Having problems with the "exit" and similar commands I'm assigning to a button in a custom skin.

    I've made a skin for Romraider and got it working acceptably.
    I'm using the Dfx2.0 skin and borrowed the buttombuttons as a template.
    Using my own buttons on the top to send commands to Romraider (like switching guage type, show/hide parameter list, and log to file).
    Anyway, I can use the existing menu button (that uses the "exit" command) in the lower left to return to main menu, works fine.
    I'd like to add another button that actually closes Romraider and returns to main menu. The reason is I want the option to shut it down completely when I don't want it running in the background using resources. I can send and alt-f4 to close and that works, but whenever I append an additional "exit", "closewindow", "esc", or "load;menu.skin" to my new button, it will return to the main menu but then riderunner returns an error "invalid...." something or other and then crashes by exiting.
    So I tried simply assigning one command to my new button, just "exit" same command that the menu button uses. Causes the same problem.
    Can't figure this one out.
    I'll post the skin file when I get home.

    Second minor issue: Romraider takes a couple seconds to start. so when RR tries to maximize it to my assigned area defined by the skin it can't because Romraider is not there yet. Romraider ends up maximizing on its own but then see the menu bar. If I go back and forth from to the main menu and back (using the menu button that works), then when I return Romraider is embedded proper no visible menu bar. Anyway to delay RR so it doesn't try to maximize romraider before it is present?

    Thanks

  • #2
    To get it to start before loading the skin, use the RUNQ CMD before the load;xx.skin cmd, this will get it started and then when the skin loads it hopefully would be ready by then. You could also use "RUNQ;xxxxx||WAIT;2||LOAD;xxx.skin;;;<window title>" as the cmd.

    As far as the exit part, the cmd you should use is "CLOSE", this does two things closes the embeded app, and then goes back to the screen that you came from.
    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


    • #3
      tried "CLOSE" command, still has the same problem:

      "Run-time error '5';
      Invalid procedure call or argument.

      Reported in a window named "Ride Runner"

      I click OK and Ride Runner exits/crashes

      I'll try the other trick you recommend
      thanks.

      Any good source of documentation on all this? Reverse engineering existing skin files is a pain. Especially when it comes to something like this, I have no idea if I'm doing it correct or just following bad examples.
      Attached Files

      Comment


      • #4
        OK, I just started eliminating all the other "code" in the skin leaving only the button in question and then it works fine. So I started adding the code back, half at a time until I found the culprit. It turns out that the label occupying the same space as the button is what is causing it. So how do I label a button with a "close" command?

        Comment


        • #5
          Well, this is ridiculous but if I remove the "Middle" formatting on the label, it works fine.
          ugh.

          So in summary: a button that uses the "close" or similar command will cause RR to crash if there is an overlapping label that has "Middle" text alignment. I'm guessing this isn't by design and is probably a bug.

          I'll just reposition the label and omit formatting.

          Comment


          • #6
            Your issue is...there is no such format as "Middle", its called "CENTER".

            And the documentation that your looking for is the "Skin Commands.txt" file and its located in the Documentation folder in your RR folder.
            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


            • #7
              "middle" is supported, it is documented in "Skin Commands.txt" in the "Documentation" folder.
              It is a different format than "center" as it aligns vertically and horizontally.

              Regardless, I am using a workaround, simply positioning the label for my exit button with x-y coordinates and no label alignment formatting.

              good enough.

              Comment


              • #8
                my bad...duh
                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

                Working...
                X