Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 32
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Yes, No? Make up your mind!

    Simple dialog with yes or no if they press yes (should be 1)... then do whatever. else get the heqq out of here. What am I doing wrong?

    result = Dialog.Message("Notice", "Java will now be loaded onto your system.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
    if (result == 1) then
    File.Run("AutoPlay\\Docs\\java.exe", "", "", SW_SHOWNORMAL, false);
    else
    Application.Exit();
    end

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Application.Exit() ... seems to not like to work inside of If..thens.

    One option would be to have the application minimize then change to a blank page with Application.Exit() on preload.
    Intrigued

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Naw, it works fine. If you have an example where it doesn't work right, I'd be happy to fix it for you anytime. Anyhow here's an example attached Bruce. Check in the docs. Yes = 6, No = 7. Or if you don't like docs, use a Dialog.Message() action to test the value of a given in put at runtime.

    Corey Milner
    Creative Director, Indigo Rose Software
    Attached Files

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Here's the same example file attachment in .apt format for users of AutoPlay Media Studio Standard Edition.

    Corey Milner
    Creative Director, Indigo Rose Software
    Attached Files

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    To make it simple to read, I like to use the built in constants.

    IDABORT
    IDCANCEL
    IDIGNORE
    IDNO
    IDOK
    IDRETRY
    IDYES

    Code:
    result = Dialog.Message("Notice", "Java will now be loaded onto your system.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); 
    if (result == IDYES) then 
    File.Run("AutoPlay\\Docs\\java.exe", "", "", SW_SHOWNORMAL, false); 
    else 
    Application.Exit(); 
    end

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Yes, asbolutely Worm is right. I was just trying to relate to Bruce's existing file here, but absolutely it's better to use the more readable constants as a habit.

    Corey Milner
    Creative Director, Indigo Rose Software

  7. #7
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    You guys are the bomb! Thanks! Hey Worm, Vent is waiting... he he he

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    http://www.indigorose.com/forums/sho...plication.exit

    I was thinking of this thread when this post came up.

    Sincerely,
    Intrigued

  9. #9
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Seems like I got his project working OK... Anyhow if you ever have a file with an Application.Exit() which doesn't work, let me know and I'll see if I can shine some light on it.

    Corey Milner
    Creative Director, Indigo Rose Software

  10. #10
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by Corey
    Seems like I got his project working OK... Anyhow if you ever have a file with an Application.Exit() which doesn't work, let me know and I'll see if I can shine some light on it.
    Ah, it was a user in another post (that one I shared previously). He does seem to have found a solution, I did not catch how he handled such though.

    I can't say I have had a problem with Applicaton.Exit() myself.

    The offer is appreciated. At times we all need a little help. (grin)
    Intrigued

  11. #11
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hugh Betcha.

    Corey Milner
    Creative Director, Indigo Rose Software

  12. #12
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by Corey
    Hugh Betcha.
    Ok, I am grabbing my Klingon translator! Ha!

    Oh, I take that back, Corey, when's your SQLite CD Volume 4 coming out again? (grin)
    Intrigued

  13. #13
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    I'm not sure where I'm at on the whole "video training" thing right now. So, probably not soon. Not trying to sound aloof but it's just something I guess I have to sort out for myself. I'll keep you posted.

    Corey Milner
    Creative Director, Indigo Rose Software

  14. #14
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939

    Sun-shine?

    Quote Originally Posted by Corey
    Anyhow if you ever have a file with an Application.Exit() which doesn't work, let me know and I'll see if I can shine some light on it.
    As a result of longedge’s post (07-26-2004) I created this test project. Application.Exit() is ignored three times.

    Page1.On Preload calls Global Script with App.Exit (ignored),
    returns to On Preload with App.Exit (ignored).
    Continues with Page1.On Show with App.Exit (ignored)
    Button.Exit = App.Exit: YEAH

    The clue is the return statements.
    Attached Files

  15. #15
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Screen res width is always less than 9999 so I don't see anything being ignored. Honestly I believe it's the script here and not the action itself. What exactly are you trying to achieve in this sample, let me know and I'll post a working example.

    Corey Milner
    Creative Director, Indigo Rose Software

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  2. HOWTO: Make a Batch File Close Automatically
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 10:17 AM
  3. HOWTO: Make a Batch File Close Automatically
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 10:17 AM
  4. HOWTO: Make an AutoPlay Application Expire
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-09-2002, 10:10 AM
  5. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 AM

Posting Permissions

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