Scripts editing (in the ready application)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • AlexSugar
    New Member
    • Sep 2006
    • 71

    Scripts editing (in the ready application)

    I need everyone who can help me with this difficult task:

    I created a Movie Autoplay application, that allows to show you the movie list that contains on the DVD. Seems to be very easy, but now, I don't want to rewrite everytime the Titles (of the movies) in the listbox, DVD Titles (as Label), Movie Informations (as Paragraph) and some other things like copy buttons for every movie IN AMS.

    I want to make the application independent of the AMP to take any changes like this in the already built program


    Every project contains up to 6 movies. Often there're only 4-5.


    TASK:
    How to create a special Page in the project, that can edit all these points. So that I just put in the "Names" and "File paths" of the movies + edit the paragraphs?
    IMPORTANT: The most difficult thing is, How to save every change?
    __________________________________________________ ______________

    Please help me come to an end!
    Last edited by AlexSugar; 01-15-2007, 09:19 AM.
  • bobbie
    Forum Member
    • Feb 2005
    • 770

    #2
    Store in a ini file maybe?

    Comment

    • AlexSugar
      New Member
      • Sep 2006
      • 71

      #3
      bobbie,
      I would like to know some more...

      Maybe you've got a sample?

      Comment

      • TristanD
        Forum Member
        • Oct 2006
        • 314

        #4
        so you want to edit and rewrite some stuff at runtime? should the change be saved or is it just for the current run...?

        Comment

        • bobbie
          Forum Member
          • Feb 2005
          • 770

          #5
          Button:
          Code:
          EnterData = Input.GetText("Input1");
          
          
          --EnterData = Dialog.Input("Enter Data", "Your answer:", "", MB_ICONQUESTION);
          
          INIFile.SetValue("Autoplay\\Docs\\settings.ini", "Columns", "Name", EnterData);
          
          -- Get the error code of the last action.
          error = Application.GetLastError();
          
          -- If an error occurred, display an error message.
          if (error ~= 0) then
              Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
          end
          
          
          --result1 = INIFile.GetSectionNames("AutoPlay\\Docs\\settings.ini");
          result1 = INIFile.GetValue("AutoPlay\\Docs\\settings.ini", "Columns", "Name");
          Paragraph.SetText("Paragraph1", result1);
          Button2:
          Quick Action
          Code:
          AutoPlay\\Docs\\settings.ini

          Comment

          Working...
          X