Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Posts
    49

    Pass control back to button script from a listbox

    I have created a project where the majority of the script is executed from a button. Part way through the script, the user will be asked to make a single selection from a list box. So far this works fine, however, Is it possible to pass the chosen information back from the listbox to the button script, to carry on from where it left off. I'm trying to avoid having a duplicate script running from the On Select or On Double-click function of the list box.

    Anyone have any ideas please?

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    You could get the original script from the Button and then when the user interacts with the ListBox gather that information and then inject it into the Button's script, on the fly.

    You can get and set the script for objects via the Action
    Code:
    Page.GetObjectScript()
    .
    Intrigued

  3. #3
    Join Date
    May 2005
    Posts
    1,115
    Are you sure this command works in the APMS5?
    Never know what life is gonna throw at you.
    (Based on a true story.)

  4. #4
    Join Date
    Jan 2007
    Posts
    49

    Re:Pass control back to button script from a listbox

    Thanks for a quick response guys and thanks Intrigued, but it looks like Bule is right - AMSP5 doesn't seem to support that command - any other ideas?

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137

    Peekaboo!

    Sorry there... use to responding in the AMS 6 forum.
    Intrigued

  6. #6
    Join Date
    Aug 2003
    Posts
    2,427
    I'd be thinking aong the lines of initially setting a variable and then re-assigning a value as a result of the selection. You can test whether the value has changed or not and use a while loop until it's changed - or whatever or is that not practicable.

  7. #7
    Join Date
    Jan 2007
    Posts
    49
    Hi Guys
    Thanks for the responses, but I've now re-thought the project and decided to do away with the buttons altogether and run the script totally from the listbox. So far it seems to be working well.

    Thanks again for your thoughts guys

Similar Threads

  1. Button control statements
    By stevequest in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 09-25-2006, 01:00 AM
  2. How can I know the FS Command name of a movie???
    By yoske in forum AutoPlay Media Studio 5.0
    Replies: 27
    Last Post: 01-01-2005, 10:39 PM
  3. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  4. back button history solution
    By kansas in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 02-01-2004, 02:25 PM
  5. Can the BACK button have a history?
    By jsdunlap in forum AutoPlay Menu Studio 3.0
    Replies: 2
    Last Post: 08-07-2001, 04:00 PM

Posting Permissions

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