Results 1 to 8 of 8

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

  1. #1
    Newbie
    Join Date
    Sep 2005
    Posts
    51

    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. #2
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  3. #3
    Newbie
    Join Date
    Sep 2005
    Posts
    51
    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 Attached Files

  4. #4
    Newbie
    Join Date
    Sep 2005
    Posts
    51
    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?

  5. #5
    Newbie
    Join Date
    Sep 2005
    Posts
    51
    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.

  6. #6
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  7. #7
    Newbie
    Join Date
    Sep 2005
    Posts
    51
    "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.

  8. #8
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

Similar Threads

  1. Centrafuse 2.0 RC4
    By veetid in forum Centrafuse
    Replies: 0
    Last Post: 06-10-2008, 09:31 PM
  2. Centrafuse 2.0 RC3
    By smeesseman in forum Centrafuse
    Replies: 0
    Last Post: 05-21-2008, 10:29 PM
  3. GoogleEarth GPSR Tracking
    By briefnotion in forum GPS
    Replies: 117
    Last Post: 09-11-2007, 08:32 PM
  4. iGmod Beta 2 release
    By PURDooM in forum Other Cool Stuff
    Replies: 625
    Last Post: 05-12-2006, 03:52 PM
  5. Embedded Programs - Grayed Out Upon Return
    By kbreeden in forum CF Bug Reports
    Replies: 1
    Last Post: 08-25-2005, 10:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •