Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5

Thread: Halting Actions

  1. #1
    Join Date
    Feb 2001
    Location
    Washington State
    Posts
    120

    Huh? Halting Actions

    I must admit I'm having difficulty wrapping my brain around the scripting in AMS5... More practice will hopefully solve that.

    Meanwhile, this: Version 4 has a handy "RETURN" command that halts any further actions, as in

    IF (whatever)
    RETURN
    END IF

    After having read the manuals and viewed most of the topics in the training CDs, I think this action in AMS5 needs to be accomplished with IF script, but no RETURN command? My example:
    I have a Dialog.Folder Browse action, and if the user clicks the CANCEL button naturally the ensuing actions should not take place. I've tried various permutations of this script, to no avail:

    If My_Variable ~= CANCEL then
    -- a bunch of actions here
    End

    Thanks in advance for helping out a (once again) newbie.
    Pete

  2. #2
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    pjborg,
    AMS5 comes with a pretty handy help file, complete with examples of each action. In the script editor, pick the action Dialog.Folder Browse. Near the top of the window you will see a blue underlined link that says, “Click here to learn more about this action”. Click it.

    When the Help file opens, you see an overview and description of the action. Near the top you will see an “Examples” tab, click it. You will find 3 separate examples for this action. If I understand your question correctly, then at least one of those examples will give you what you are after.

    If that doesn’t get it for you, post back and we’ll go from there. Good luck.

  3. #3
    Join Date
    Feb 2001
    Location
    Washington State
    Posts
    120
    Thanks, JimS, believe it or not, you have pointed me to an area of the help file I completely overlooked: the EXAMPLES! Yikes! How helpful is that!?!? I'm feeling a little sheepish now...

  4. #4
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Pete,
    That’s sort of what I figured. It took me a while to notice the EXAMPLES also. No need to feel sheepish, we’ve all been where you are. Here soon, you’ll be over the hump, and able to help the next newbie along.

    I’m glad it helped.

  5. #5
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Quote Originally Posted by pjborg
    I must admit I'm having difficulty wrapping my brain around the scripting in AMS5... More practice will hopefully solve that.

    Meanwhile, this: Version 4 has a handy "RETURN" command that halts any further actions, as in

    IF (whatever)
    RETURN
    END IF

    After having read the manuals and viewed most of the topics in the training CDs, I think this action in AMS5 needs to be accomplished with IF script, but no RETURN command? My example:
    I have a Dialog.Folder Browse action, and if the user clicks the CANCEL button naturally the ensuing actions should not take place. I've tried various permutations of this script, to no avail:

    If My_Variable ~= CANCEL then
    -- a bunch of actions here
    End

    Thanks in advance for helping out a (once again) newbie.
    Pete
    I'm not sure what you are trying to do but your code should get the job done. Here you have one example;
    --------------------------------------------------------------------------
    strPath = Dialog.FolderBrowse("Please select a folder:", "AutoPlay\\Docs");

    if (strPath == "CANCEL") then
    result = Dialog.Message("Notice", "You clicked CANCEL", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    elseif (strPath == "") then
    result = Dialog.Message("Notice", "Error", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    elseif (strPath ~= "CANCEL") and (strPath ~= "") then
    result = Dialog.Message("Notice", "Here we GO", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    --------------------------------------------------------------------------


    Sside

Similar Threads

  1. Example: Using Zip Actions
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 03:07 PM
  2. Spotlight: XML Actions Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-15-2004, 03:56 PM
  3. feedback on existing actions
    By yosik in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 11-08-2002, 05:24 AM
  4. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  5. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 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