ISAWHIM
29-09-2008, 05:01
Is there a way to use a script inside a script? (Yes, I am looking to add more confusion.)
This is what I am trying to do.
I have one script which I call "MAIN", it uses only UI, INET, and INI. (Just to keep it simple.)
This part of the program uses the UI to provide quick feedback about the connections and available files. (File1, File2, File3)
The file-list was originally downloaded with the simple INET_UrlDownload(), and read as an INI file, with the list of links to the other available files.
What I now want to do... Is allow the MAIN program to pull text from another downloaded file, and include that script as if it were part of this same script. (EG, without opening another UI.) It would be fine if it opened a child-window inside the main window, or if it created another window with the new options. But I do want to keep this all in one window, if possible.
The "Included" script would not be part of the main program, as it would change often. The UI would remain the same, as the new scripts would contain the required code/modules required to run them.
What I have to do now, is create a separate program for each item, or create one large program, with all possible variations available, even if they are not used. Some of these files are just direct file downloads, others require input prior to activation, such as passwords to unlock/decrypt, install paths, choice selections.
The closest thing I can think-of, would be a scripted-include. (Unlike a "USES" which is loaded prior to operation, an include would not load until called, and the script/text inside, would function as if it were originally part of the code, but could have its own "USES".)
If this is not a feature, or ability... Can you move this to the suggestions area?
This is what I am trying to do.
I have one script which I call "MAIN", it uses only UI, INET, and INI. (Just to keep it simple.)
This part of the program uses the UI to provide quick feedback about the connections and available files. (File1, File2, File3)
The file-list was originally downloaded with the simple INET_UrlDownload(), and read as an INI file, with the list of links to the other available files.
What I now want to do... Is allow the MAIN program to pull text from another downloaded file, and include that script as if it were part of this same script. (EG, without opening another UI.) It would be fine if it opened a child-window inside the main window, or if it created another window with the new options. But I do want to keep this all in one window, if possible.
The "Included" script would not be part of the main program, as it would change often. The UI would remain the same, as the new scripts would contain the required code/modules required to run them.
What I have to do now, is create a separate program for each item, or create one large program, with all possible variations available, even if they are not used. Some of these files are just direct file downloads, others require input prior to activation, such as passwords to unlock/decrypt, install paths, choice selections.
The closest thing I can think-of, would be a scripted-include. (Unlike a "USES" which is loaded prior to operation, an include would not load until called, and the script/text inside, would function as if it were originally part of the code, but could have its own "USES".)
If this is not a feature, or ability... Can you move this to the suggestions area?