home *** CD-ROM | disk | FTP | other *** search
- //*****************************************************************************
- //* This is an example script that shows you how each command can be utilized.*
- //* Note that the execution of the script program is suspended after the RUN *
- // * command is executed. It resumes running after the strategy is stopped. *
- // ****************************************************************************
- msgbox ( "This is a Genie test script. " ) ;
-
- n1 = inputbox ( "Please enter your\nfirst name:" );
-
- n2 = inputbox ( "Please enter your\nlast name:");
-
- msgbox ( "Hello, " + n1 + " " + n2 + ".\nPress ENTER to run \"SCRTEST.GNI\" ");
-
- t0 = inputbox ( "How many time would you like to run it ?\n(Enter a number 0-99) ");
- t1 = int(t0); // convert string to integer
-
- while (t1 > 0)
- {
- // All variables set in script are available in User Programmable Block in a strategy.
- X1 = 10; // the variable X1 is used in SCRTEST.GNI to determine how many second to run.
- run ("SCRTEST.GNI");
- t1 = t1 -1;
- sleep (1000); // wait 1000 milli-second
- }
-
- msgbox ( "THE END. " ) ;
-
-