home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / autos2.zip / autos2.INF (.txt) < prev    next >
OS/2 Help File  |  1997-11-05  |  41KB  |  1,481 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Product Information ΓòÉΓòÉΓòÉ
  3.  
  4. AUTOS2 is available on a 30 day demonstration basis at which point the program 
  5. will expire. If you are satisfied by the product's performance and usefulness, 
  6. you may become a registered user by completing the Registration form. 
  7.  
  8. This form can then be forwarded as per the instructions therein and 
  9. subsequently receive product enhancements and any required support. 
  10.  
  11. Squiredeck can not be responsible for any data loss or system damage during the 
  12. usage of AUTOS2. However by correctly following the Usage Guidelines you should 
  13. receive benefits in productivity while running repetative programmable tasks. 
  14.  
  15.  
  16. ΓòÉΓòÉΓòÉ 1.1. Who should use AUTOS2 ΓòÉΓòÉΓòÉ
  17.  
  18. AUTOS2 can be used by any person with a reasonable knowledge of the OS2 
  19. operating system. 
  20.  
  21. This product should be seen as an productivity enhancer to the operating of the 
  22. PM Desktop rather than as an application. 
  23.  
  24. Most likely the automation tasks will be set up by the desktop or network 
  25. supervisor during product installation. 
  26.  
  27.  
  28. ΓòÉΓòÉΓòÉ 1.2. Product Overview ΓòÉΓòÉΓòÉ
  29.  
  30. AUTOS2 has been written to perform automation on the OS2 PM Desktop. 
  31.  
  32. This automation can only be performed on PM framed window objects and sub 
  33. classes. 
  34.  
  35. Once a framed window has been identified (or not) AUTOS2 can be used to 
  36. navigate to a sub class (i.e. an EntryField) and perform actions on it, such as 
  37. issue keystrokes. Further these activities can be Scheduled to occur at a 
  38. preset Date/Time/Interval to enable hands off automation. 
  39.  
  40. This means a task or set of tasks may be performed overnight ready for the next 
  41. days production activities. Further a monitoring task can be set up to check 
  42. the existence of a PM window and then take appropriate action. 
  43.  
  44. These tasks could be the nightly backup or data download. There are two main 
  45. entities within which to store these required tasks. 
  46.  
  47. Schedules 
  48.  
  49. A Schedule consists of a set of commands that are to be executed on a 
  50. pre-determined Date or within a Date range, also the Time of execution may be 
  51. preset. 
  52.  
  53. The same task may be set to execute at regular intervals for the preset 
  54. Date/Time. 
  55.  
  56. To facilitate non productive periods then non automation dates may be selected, 
  57. as can particular months. 
  58.  
  59. Schedules can run Scripts to enable re-use of fully tested scripts in a 
  60. scheduled manner. 
  61.  
  62. Scripts 
  63.  
  64. Each script will normally contain the actions required to conduct a dialogue 
  65. with a particular window. 
  66.  
  67. They can be used to divide up lengthy complex dialogues to allow for easier 
  68. testing. 
  69.  
  70. A Script can be embedded within a Script to facilitate nesting should it be 
  71. required. 
  72.  
  73.  
  74. ΓòÉΓòÉΓòÉ 2. Main Window ΓòÉΓòÉΓòÉ
  75.  
  76. This window is the window that first appears when AUTOS2 is invoked. 
  77.  
  78. Continued 
  79.  
  80.  
  81. ΓòÉΓòÉΓòÉ 2.1. Main Menu Items ΓòÉΓòÉΓòÉ
  82.  
  83. Most of these options can be performed using the GUI interface via the Picture 
  84. Push Buttons. 
  85.  
  86. Files 
  87.  
  88. The Files option allow for the manipulation of the Schedules and Scripts. 
  89.  
  90.    Schedules 
  91.  
  92.    Schedules will contain the automation task required on a specific date at a 
  93.    specific time. 
  94.  
  95.       Select 
  96.  
  97.       The Select option allows for the selection of a Schedule which is 
  98.       required to be automated or edited. 
  99.  
  100.       Edit 
  101.  
  102.       The Edit option will invoke the User's editor of choice to manipulate the 
  103.       Schedule. The format of which is: 
  104.  
  105.       field1,field2,field3,field4,field5,field6,field7,field8,field9,field10,field11 
  106.  
  107.       this is commonly known as a comma delimited line where: 
  108.  
  109.          field1 is the From Date with a format of YYYY-MM-DD 
  110.  
  111.          field2 is the To Date with a format of YYYY-MM-DD 
  112.  
  113.          field3 is the From Time with a format of HH:MM:SS 
  114.  
  115.          field4 is the To Time with a format of HH:MM:SS 
  116.  
  117.          field5 is the Interval Time with a format of HH:MM:SS 
  118.  
  119.          field6 contains 5 indicators representing the week within the month. A 
  120.          1 will indicate a week that is to be automated on, a 0 that it is not. 
  121.          The first indicator is the first week and so on. 
  122.  
  123.          field7 contains 7 indicators representing the days of the week. A 1 
  124.          will indicate that the day is to be automated on, a 0 that it is not. 
  125.          The first indicator represents Sunday and so on. 
  126.  
  127.          field8 contains 12 indicators representing the months of the year. A 1 
  128.          will indicate that the month is to be automated on, a 0 that it is 
  129.          not. The first indicator represents January and so on. 
  130.  
  131.          field9 contains the name of a DateGroup file. If the extension is 
  132.          missing then *.DTG is assumed. This file should contain a list of 
  133.          dates in the format YYYY-MM-DD and represent dates on which automation 
  134.          should not take place, for example holidays. 
  135.  
  136.          field10 contains the name of a DateGroup file. If the extension is 
  137.          missing then *.DTG is assumed. This file should contain a list of 
  138.          dates in the format YYYY-MM-DD and represent dates on which automation 
  139.          will only take place, for example backups on the last day of the 
  140.          month. 
  141.  
  142.          field11 contains the command to be issued. 
  143.  
  144.    Recycle 
  145.  
  146.    The Recycle option will halt automation and immediately start it again but 
  147.    with the currently selected Schedule. 
  148.  
  149.    Scripts 
  150.  
  151.    Scripts will contain a set of commands that will conduct a particular PM 
  152.    window dialogue. 
  153.  
  154.    The format of each line is simply a single field containing the command to 
  155.    be executed, as per field11 for a Schedule. 
  156.  
  157.       Select 
  158.  
  159.       The Select option allows for the selection of a Script which is required 
  160.       to be run or edited. 
  161.  
  162.       Edit 
  163.  
  164.       The Edit option will invoke the User's editor of choice to manipulate the 
  165.       Script. 
  166.  
  167.       Run 
  168.  
  169.       The Run option will load the currently selected Script. 
  170.  
  171.       Halt 
  172.  
  173.       The Halt option will stop the currently runnning Script. 
  174.  
  175.    Date Groups 
  176.  
  177.    The Date Groups option will allow for the selection of, and invoke, the 
  178.    User's editor of choice to manipulate a Date Group File. Dates are held in 
  179.    the format "YYYY-MM-DD" for use on the day page of the Schedule Settings 
  180.    Notebook. Date Group Files should have an extension of ".DTG". 
  181.  
  182.    Parameters 
  183.  
  184.    The Parameters option will allow for the selection of, and invoke, the 
  185.    User's editor of choice to manipulate a Parameter File. Parameters can be 
  186.    held one per line in one of two formats. 
  187.  
  188.       Value Format 
  189.  
  190.       This is where only the value of the parameter is defined, that is it is 
  191.       not prefixed with "PARMn=" where n is a parameter number. The value of n 
  192.       is automatically assigned from the beginning of the parameter file, 
  193.       starting at one, and incremented after each Value formatted line. 
  194.  
  195.       Assignment Format 
  196.  
  197.       This line is of the format "PARMn=Value" where n is the assigned 
  198.       parameter number. This line does not effect the automatic numbering of 
  199.       the Value only format. 
  200.  
  201.    These parameters can be loaded using the "Load Parameter" internal command 
  202.    and used for sending to Multi Line Entry Fields or pasting to a DOS/OS2 
  203.    window. As an example you could load parameter file ABC.PRM with SQL being 
  204.    carefull to leave values to be substituted on a seperate line. These values 
  205.    will be assigned a PARM value depending on the line on which they appear. In 
  206.    a second parameter file XYZ.PRM you would assign these parameters a value 
  207.    for this run (i.e. a WHERE clause). Then by using the "Output Parameter" 
  208.    internal command the substituted SQL could be sent to a Query MLE window. 
  209.  
  210.    Exit 
  211.  
  212.    The Exit option will stop Automation and halt AUTOS2. 
  213.  
  214. Options 
  215.  
  216. The Options Menu item will allow for User settings. 
  217.  
  218.    Editor 
  219.  
  220.    Here the User can enter a command that will invoke an Editor of choice. 
  221.  
  222.    By imbedding the word "EdName" the User can specify where the member to be 
  223.    edited must be placed on the command line. 
  224.  
  225.    For example: 
  226.  
  227.       Start E.EXE EdName
  228.  
  229.    Automation 
  230.  
  231.    The Automation option will allow for Automation to be switched on if it is 
  232.    off, or switched off if it is on. 
  233.  
  234.       On 
  235.  
  236.       The On option will switch on automation. 
  237.  
  238.       Off 
  239.  
  240.       The Off option will switch off automation. 
  241.  
  242.    Log 
  243.  
  244.    The Log option will allow for the Logging to be switched on if it is off, or 
  245.    switched off if it is on. 
  246.  
  247.       On 
  248.  
  249.       The On option will switch on logging. 
  250.  
  251.       Off 
  252.  
  253.       The Off option will switch off logging. 
  254.  
  255.    Show Hints 
  256.  
  257.    The Show Hints option will allow for the Showing of a window's hint text to 
  258.    be switched on if it is off, or switched off if it is on. 
  259.  
  260.       On 
  261.  
  262.       The On option will switch on Hint text. 
  263.  
  264.       Off 
  265.  
  266.       The Off option will switch off Hint text. 
  267.  
  268. Setup 
  269.  
  270. The Setup option allows for the entry of INI file type entries. 
  271.  
  272. Allowable entries are: 
  273.  
  274.    Editor=entry1 
  275.  
  276.    Where entry1 is the startup command for an Editor. 
  277.  
  278.    Auto=entry2 
  279.  
  280.    Where entry2 can be Y or N being to required setting for Automation at 
  281.    startup. 
  282.  
  283.    Log=entry3 
  284.  
  285.    Where entry3 can be Y or N being the required setting for Logging at 
  286.    startup. 
  287.  
  288.    Startup_Schedule=entry4 
  289.  
  290.    Where entry4 is a preselected Schedule pathname. 
  291.  
  292.    Startup_Script=entry5 
  293.  
  294.    Where entry5 is a preselected Script pathname. 
  295.  
  296. Help 
  297.  
  298. Help Information. 
  299.  
  300.    Online... 
  301.  
  302.    Online Help document for the Main Window. 
  303.  
  304.    About... 
  305.  
  306.    Product Information. 
  307.  
  308.  
  309. ΓòÉΓòÉΓòÉ 2.1.1. Picture Push Buttons ΓòÉΓòÉΓòÉ
  310.  
  311. The two Picture Push Buttons represent Schedules and Scripts with the Alarm 
  312. Clock and Scroll respectively. 
  313.  
  314. These buttons also represent the entry into the GUI side of AUTOS2. Where most 
  315. of the cumbersome Main Menu Items are replaced by mouse clicks. 
  316.  
  317. By LMB clicking on either one you will be presented with a new window showing 
  318. all of the currently available entries, where each represents a file. Each 
  319. Alarm Clock represents a Schedule (*.SCD) file and the Scroll represents a 
  320. Script (*.SCR) file. 
  321.  
  322.  
  323. ΓòÉΓòÉΓòÉ 3. Iconised Schedules/Scripts Window ΓòÉΓòÉΓòÉ
  324.  
  325. This window holds an icon representing the relevant entity, Schedule or Script. 
  326.  
  327. By pressing the RMB you can reveal a context sensitive menu. The Menu Items 
  328. will depend on if you RMB on an icon or on white space (the background to the 
  329. icons). 
  330.  
  331. Continued 
  332.  
  333.  
  334. ΓòÉΓòÉΓòÉ 3.1. Context Menu Items ΓòÉΓòÉΓòÉ
  335.  
  336. The context menu shown depends on if the icon or white space received the RMB. 
  337.  
  338. Icon Context Menu Items 
  339.  
  340. This menu is shown if the icon has received the RMB. 
  341.  
  342. These Items consist of: 
  343.  
  344.    Automation On 
  345.  
  346.    Only available for Schedules and the fact that Automation is currently off. 
  347.    This is the default action for a LMB Double Click on a Schedule icon. 
  348.  
  349.    Run 
  350.  
  351.    Only available for Scripts. This is the default action for a LMB Double 
  352.    Click on a Script icon. 
  353.  
  354.    Expand 
  355.  
  356.    This option will present the Iconised Expanded View window for the 
  357.    Schedule/Script selected. 
  358.  
  359.    Update 
  360.  
  361.    This option will present the Iconised Update View window for the 
  362.    Schedule/Script selected. 
  363.  
  364.    Copy 
  365.  
  366.    This option will allow for the copying of the Schedule/Script selected. 
  367.  
  368.    Delete 
  369.  
  370.    This option will allow for the deletion of the Schedule/Script selected. 
  371.  
  372. White Space Context Menu Items 
  373.  
  374. This menu is shown if the window background (White Space) has received the RMB. 
  375.  
  376. These Items consist of: 
  377.  
  378.    Add 
  379.  
  380.    This option allows for the addition of a new Script/Schedule. This is the 
  381.    default action for a LMB Double Click on white space. 
  382.  
  383.    Sort 
  384.  
  385.    This option will sort the window contents in ascending caption sequence. 
  386.  
  387.    Arrange 
  388.  
  389.    This option allows the window contents to be arranged neatly within the 
  390.    available window space. 
  391.  
  392.  
  393. ΓòÉΓòÉΓòÉ 4. Iconised Expanded/Update View Window ΓòÉΓòÉΓòÉ
  394.  
  395. This window holds an icon representing the relevant entity, depending on the 
  396. command to be invoked. 
  397.  
  398. By pressing the RMB on an icon you can reveal a context sensitive menu. 
  399.  
  400. Continued 
  401.  
  402.  
  403. ΓòÉΓòÉΓòÉ 4.1. Context Menu Items ΓòÉΓòÉΓòÉ
  404.  
  405. Icon Context Menu Items 
  406.  
  407. This menu is shown if the icon has received the RMB. 
  408.  
  409. These Items consist of: 
  410.  
  411.    Update 
  412.  
  413.    This option will allow for an Update View window to be opened for the 
  414.    selected entity. 
  415.  
  416.    Only available to Schedule or Script invoking icons. 
  417.  
  418.    Insert 
  419.  
  420.    This option will allow for an insertion of a command to be made into a 
  421.    Schedule or Script. 
  422.  
  423.    Only available to icons in Update View windows, and the inserted entry will 
  424.    follow the icon that received the RMB. 
  425.  
  426.    Delete 
  427.  
  428.    This option will allow for a deletion of a command to be made from a 
  429.    Schedule or Script. 
  430.  
  431.    Only available to command icons in Update View windows, and the deleted 
  432.    entry is represented by the icon that received the RMB. 
  433.  
  434.    Settings 
  435.  
  436.    This option will allow for a command to have it's settings altered. 
  437.  
  438.    This is achieved by the use of a Notebook style dialogue. 
  439.  
  440.    Only available to command icons in Update View windows, and the settings 
  441.    represent those of the icon that received the RMB. 
  442.  
  443.  
  444. ΓòÉΓòÉΓòÉ 5. Notebook ΓòÉΓòÉΓòÉ
  445.  
  446. The Settings Notebook can only be accessed via the Update View Window, by RMB 
  447. on a command icon and selecting Settings from the context menu. 
  448.  
  449. Continued 
  450.  
  451.  
  452. ΓòÉΓòÉΓòÉ 5.1. Notebook Settings ΓòÉΓòÉΓòÉ
  453.  
  454. There are four Tabs attached to the Settings Notebook: 
  455.  
  456. Command 
  457.  
  458. Dates 
  459.  
  460. Times 
  461.  
  462. Days 
  463.  
  464. Only the Command Tab is shown if the RMB was on a Script command otherwise all 
  465. four are available. 
  466.  
  467. Command 
  468.  
  469. For this page the following entries may be made: 
  470.  
  471.    Internal Command 
  472.  
  473.    If an internal command is required to be executed (non OS2 command line 
  474.    entry) then a drop down list can be obtained to be selected from by clicking 
  475.    on the right side down arrow. Select the option required by clicking on it. 
  476.    To jump to the entry required then type in the first few letters into the 
  477.    protected entry field until the correct entry is shown. 
  478.  
  479.    Repeat 
  480.  
  481.    An entry can be made here, between 1 and 99, to represent a repetition 
  482.    factor if an internal command had been selected. For instance if Send 
  483.    Control String had been selected then whatever Control is sent will be done 
  484.    so n times depending on the repeat value. 
  485.  
  486.    If the Wait Period internal command was selected then this would represent 
  487.    the number of seconds to wait. 
  488.  
  489.    External Command or Internal Parameter 
  490.  
  491.    This Entry Field will contain either an External OS2 command to be executed 
  492.    or if an Internal command had been selected then this entry will be treated 
  493.    as the parameter. Say for instance the Send Control String internal command 
  494.    had been selected then this could be set to {down} to emulate a down arrow 
  495.    key depression. 
  496.  
  497. Dates 
  498.  
  499. For this page the following entries may be made: 
  500.  
  501.    From Date 
  502.  
  503.    For this entry three fields are provided to contain the Year, Month and Day 
  504.    that the automation for the command is to begin. 
  505.  
  506.    To Date 
  507.  
  508.    For this entry three fields are provided to contain the Year, Month and Day 
  509.    that the automation for the command is to end. 
  510.  
  511. Times 
  512.  
  513. For this page the following entries may be made: 
  514.  
  515.    From Time 
  516.  
  517.    For this entry three fields are provided to contain the Hour, Minute and 
  518.    Second that the automation for the command is to begin. 
  519.  
  520.    To Time 
  521.  
  522.    For this entry three fields are provided to contain the Hour, Minute and 
  523.    Second that the automation for the command is to end. 
  524.  
  525.    Interval Time 
  526.  
  527.    For this entry three fields are provided to contain the Hour, Minute and 
  528.    Second for the interval that is allowed to elapse before the command is 
  529.    repeated. This is handy for monitoring type commands that need to be 
  530.    executed on a regular interval type basis. 
  531.  
  532. Days 
  533.  
  534. For this page the following entries may be made: 
  535.  
  536.    Every 
  537.  
  538.    Within this group are 5 check boxes for the week in the month. If it is 
  539.    checked then the command will be executed this week. 
  540.  
  541.    Also there a 7 check boxes for the days of the week. If it is checked then 
  542.    the command will be executed on that particular day. 
  543.  
  544.    In 
  545.  
  546.    Within this group are 12 check boxes for the months of the year. If it is 
  547.    checked then the command will be executed this month. 
  548.  
  549.    Date Groups 
  550.  
  551.    Within this group are two entries: 
  552.  
  553.       Not On 
  554.  
  555.       Using the drop down list box a previously created Date group file can be 
  556.       selected to represent the dates that automation is not to take place. 
  557.  
  558.       Only On 
  559.  
  560.       Using the drop down list box a previously created Date group file can be 
  561.       selected to represent the dates that automation is only to take place on. 
  562.  
  563.  
  564. ΓòÉΓòÉΓòÉ 6. External Command ΓòÉΓòÉΓòÉ
  565.  
  566. This is a Command that can be selected from the Settings Notebook. 
  567.  
  568.  
  569. ΓòÉΓòÉΓòÉ 6.1. Command Line ΓòÉΓòÉΓòÉ
  570.  
  571. This can be any command that could be entered on an OS2 command line. In order 
  572. to get the correct settings for a program to run it may be better to use the 
  573. Run Tasks Internal Command. 
  574.  
  575.  
  576. ΓòÉΓòÉΓòÉ 7. Internal Commands ΓòÉΓòÉΓòÉ
  577.  
  578. These are a list of all the Internal Commands that can be selected from the 
  579. Settings Notebook. 
  580.  
  581. For each one an example is given as how to code it if manually editing a 
  582. command as per field11 in the comma delimited line. 
  583.  
  584. Any Internal Command parameter entry may contain parm1 parm2 etc. These may be 
  585. entered in order to pick up values previously set by an earlier Parameter 
  586. Internal command. 
  587.  
  588.  
  589. ΓòÉΓòÉΓòÉ 7.1. Parameters ΓòÉΓòÉΓòÉ
  590.  
  591. These commands are used to manipulate parameters. 
  592.  
  593.  
  594. ΓòÉΓòÉΓòÉ 7.1.1. Add Parameters ΓòÉΓòÉΓòÉ
  595.  
  596. This command will perform a bulk parameter load. 
  597.  
  598. The Internal parameter is a Path name of a text file containing parameters. 
  599. Record one contains the value of the next available PARM variable since the 
  600. previous Add/Load parameter. If the extension is missing then ".PRM" is added 
  601. to the Path name. These parameters are held internally using the variables 
  602. PARM1, PARM2 etc. A parameter assignment such as, PARM6=abc, may be included in 
  603. the parameter file. Parameter records with an "*" in column 1 or blank records 
  604. or assignment records do not count when assigning a parameter number. 
  605.  
  606. Example: 
  607.  
  608. [AP]PathName
  609.  
  610.  
  611. ΓòÉΓòÉΓòÉ 7.1.2. Input Parameter ΓòÉΓòÉΓòÉ
  612.  
  613. This command will prompt for a parameter value. 
  614.  
  615. The Internal parameter is optionally a Caption name to best describe this 
  616. parameter. 
  617.  
  618. Example: 
  619.  
  620. [GP](n)CaptionName
  621.  
  622. Where n represents the parameter number, set by the Repeat factor in the 
  623. Notebook Command Page. 
  624.  
  625.  
  626. ΓòÉΓòÉΓòÉ 7.1.3. Load Parameters ΓòÉΓòÉΓòÉ
  627.  
  628. This command will perform a bulk parameter load. 
  629.  
  630. The Internal parameter is a Path name of a text file containing parameters. 
  631. Record one contains the value of parameter 1 and so forth. If the extension is 
  632. missing then ".PRM" is added to the Path name. These parameters are held 
  633. internally using the variables PARM1, PARM2 etc. A parameter assignment such 
  634. as, PARM6=abc, may be included in the parameter file. If this record is 
  635. encountered after to the 6th record then it will take precedence. Parameter 
  636. records with an "*" in column 1 or blank records or assignment records do not 
  637. count when assigning a parameter number. 
  638.  
  639. Example: 
  640.  
  641. [LP]PathName
  642.  
  643.  
  644. ΓòÉΓòÉΓòÉ 7.1.4. Paste Parameter ΓòÉΓòÉΓòÉ
  645.  
  646. This command will paste a parameter to an identified Window. This has the same 
  647. effect as copying to the clipboard and then selecting the menu paste command. 
  648.  
  649. The Internal parameter is optionally an asterisk which signifies output many 
  650. parameters. 
  651.  
  652. Example: 
  653.  
  654. [PP](n)*
  655.  
  656. Where n represents the parameter number, set by the Repeat factor in the 
  657. Notebook Command Page. Or if the asterisk is added then n parameters will be 
  658. pasted. 
  659.  
  660.  
  661. ΓòÉΓòÉΓòÉ 7.1.5. Output Parameter ΓòÉΓòÉΓòÉ
  662.  
  663. This command will output a parameter value as a keystring. 
  664.  
  665. The Internal parameter is optionally an asterisk which signifies output many 
  666. parameters. 
  667.  
  668. Example: 
  669.  
  670. [SP](n)*
  671.  
  672. Where n represents the parameter number, set by the Repeat factor in the 
  673. Notebook Command Page. Or if the asterisk is added then n parameters will be 
  674. output, normally to a Multi Line EntryField (MLE). 
  675.  
  676.  
  677. ΓòÉΓòÉΓòÉ 7.1.6. Write Parameters ΓòÉΓòÉΓòÉ
  678.  
  679. This command will perform a bulk parameter write. 
  680.  
  681. The Internal parameter is a Path name of a text file to contain the parameters. 
  682. Record one contains the value of parameter 1 and so forth. If the extension is 
  683. missing then ".PRM" is added to the Path name. These parameters are held 
  684. internally using the variables PARM1, PARM2 etc. 
  685.  
  686. Example: 
  687.  
  688. [WP](n)PathName
  689.  
  690. Where n represents the number of parameters to write, set by the Repeat factor 
  691. in the Notebook Command Page. 
  692.  
  693.  
  694. ΓòÉΓòÉΓòÉ 7.2. Files ΓòÉΓòÉΓòÉ
  695.  
  696. These commands are used to manipulate files. 
  697.  
  698.  
  699. ΓòÉΓòÉΓòÉ 7.2.1. Add File ΓòÉΓòÉΓòÉ
  700.  
  701. This command will add a file to the work file. 
  702.  
  703. The Internal parameter is a Path name of a text file. 
  704.  
  705. Example: 
  706.  
  707. [AF]PathName
  708.  
  709.  
  710. ΓòÉΓòÉΓòÉ 7.2.2. Load File ΓòÉΓòÉΓòÉ
  711.  
  712. This command will perform a file load of the work file. 
  713.  
  714. The Internal parameter is a Path name of a text file. The file load will 
  715. initialise the work file before loading it. 
  716.  
  717. Example: 
  718.  
  719. [LF]PathName
  720.  
  721.  
  722. ΓòÉΓòÉΓòÉ 7.2.3. Write File ΓòÉΓòÉΓòÉ
  723.  
  724. This command will perform a file write. 
  725.  
  726. The Internal parameter is a Path name of a text file. This file will be 
  727. initialised and copied to from the work file. 
  728.  
  729. Example: 
  730.  
  731. [WF]PathName
  732.  
  733.  
  734. ΓòÉΓòÉΓòÉ 7.2.4. File Exist? ΓòÉΓòÉΓòÉ
  735.  
  736. This command will run a script if a File was found for the Load or Add File 
  737. commands. 
  738.  
  739. The Internal parameter is the Script name and is required. 
  740.  
  741. Example: 
  742.  
  743. [FE]ScriptName
  744.  
  745. This command is similar to the Run Script command, but the Script is only run 
  746. if a file has been loaded or added. 
  747.  
  748. This command will detect if a file has been found, the check is against the 
  749. last attempt to load or add a file. So if nesting this command within scripts 
  750. it may be safer to precede each check with a Load File Internal command to make 
  751. sure the test is for the correct file. 
  752.  
  753.  
  754. ΓòÉΓòÉΓòÉ 7.2.5. File Not Exist? ΓòÉΓòÉΓòÉ
  755.  
  756. This command will run a script if a File has not been found for the Load or Add 
  757. File command. 
  758.  
  759. The Internal parameter is the Script name and is required. 
  760.  
  761. Example: 
  762.  
  763. [FN]ScriptName
  764.  
  765. This command is similar to the Run Script command, but the Script is only run 
  766. if a file has not been loaded or added. 
  767.  
  768. This command will detect if a file has not been found, the check is against the 
  769. last attempt to loaad or add a file. So if nesting this command within scripts 
  770. it may be safer to precede each check with a Load File Internal command to make 
  771. sure the test is for the correct file. 
  772.  
  773.  
  774. ΓòÉΓòÉΓòÉ 7.3. Windows ΓòÉΓòÉΓòÉ
  775.  
  776. These commands are used to manipulate windows. 
  777.  
  778.  
  779. ΓòÉΓòÉΓòÉ 7.3.1. Highlight Window ΓòÉΓòÉΓòÉ
  780.  
  781. This command will give focus to a currently identified Window. 
  782.  
  783. The Internal parameter is optionally a Window name. 
  784.  
  785. Example: 
  786.  
  787. [HW](n)WindowName
  788.  
  789. Where n represents the number of attempts to be made to identify the Window, 
  790. set by the Repeat factor in the Notebook Command Page. 
  791.  
  792.  
  793. ΓòÉΓòÉΓòÉ 7.3.2. Identify Window ΓòÉΓòÉΓòÉ
  794.  
  795. This command will attempt to Identify a Window. 
  796.  
  797. The Internal parameter is a Window name (or "?") and is required. 
  798.  
  799. Example: 
  800.  
  801. [IW](n)WindowName
  802.  
  803. Where n represents the number of attempts to be made to identify the Window, 
  804. set by the Repeat factor in the Notebook Command Page. If the window required 
  805. is focused and the title Window name unknown then a "?" may be used to identify 
  806. the window. 
  807.  
  808.  
  809. ΓòÉΓòÉΓòÉ 7.3.3. Log Window Class List ΓòÉΓòÉΓòÉ
  810.  
  811. This command will log the Window Class structure starting from an identified 
  812. Window. If the log is not visible it may be in the Minimised Window Viewer 
  813. window. 
  814.  
  815. The Internal parameter is optionally a Window name. 
  816.  
  817. Example: 
  818.  
  819. [WL](n)WindowName
  820.  
  821. Where n represents the number of attempts to be made to identify the Window, 
  822. set by the Repeat factor in the Notebook Command Page. 
  823.  
  824.  
  825. ΓòÉΓòÉΓòÉ 7.3.4. Maximise Window ΓòÉΓòÉΓòÉ
  826.  
  827. This command will maximise an identified Window. 
  828.  
  829. The Internal parameter is optionally a Window name. 
  830.  
  831. Example: 
  832.  
  833. [MX](n)WindowName
  834.  
  835. Where n represents the number of attempts to be made to identify the Window, 
  836. set by the Repeat factor in the Notebook Command Page. 
  837.  
  838.  
  839. ΓòÉΓòÉΓòÉ 7.3.5. Minimise Window ΓòÉΓòÉΓòÉ
  840.  
  841. This command will minimise an identified Window. 
  842.  
  843. The Internal parameter is optionally a Window name. 
  844.  
  845. Example: 
  846.  
  847. [MN](n)WindowName
  848.  
  849. Where n represents the number of attempts to be made to identify the Window, 
  850. set by the Repeat factor in the Notebook Command Page. 
  851.  
  852.  
  853. ΓòÉΓòÉΓòÉ 7.3.6. Next Entry Field ΓòÉΓòÉΓòÉ
  854.  
  855. This positions at the next Entry Field class within an identified Window. 
  856.  
  857. The Internal parameter is optionally a Window name. 
  858.  
  859. Example: 
  860.  
  861. [NE](n)WindowName
  862.  
  863. Where n represents the Entry Field number, set by the Repeat factor in the 
  864. Notebook Command Page. 
  865.  
  866.  
  867. ΓòÉΓòÉΓòÉ 7.3.7. Next Frame ΓòÉΓòÉΓòÉ
  868.  
  869. This positions at the next Frame class within an identified Window. 
  870.  
  871. The Internal parameter is optionally a Window name. 
  872.  
  873. Example: 
  874.  
  875. [NF](n)WindowName
  876.  
  877. Where n represents the Frame number, set by the Repeat factor in the Notebook 
  878. Command Page. 
  879.  
  880.  
  881. ΓòÉΓòÉΓòÉ 7.3.8. Next ListBox ΓòÉΓòÉΓòÉ
  882.  
  883. This positions at the next ListBox class within an identified Window. 
  884.  
  885. The Internal parameter is optionally a Window name. 
  886.  
  887. Example: 
  888.  
  889. [NL](n)WindowName
  890.  
  891. Where n represents the ListBox number, set by the Repeat factor in the Notebook 
  892. Command Page. 
  893.  
  894.  
  895. ΓòÉΓòÉΓòÉ 7.3.9. Next Menu ΓòÉΓòÉΓòÉ
  896.  
  897. This positions at the next Menu class within an identified Window. 
  898.  
  899. The Internal parameter is optionally a Window name. 
  900.  
  901. Example: 
  902.  
  903. [MU](n)WindowName
  904.  
  905. Where n represents the Menu number, set by the Repeat factor in the Notebook 
  906. Command Page. 
  907.  
  908.  
  909. ΓòÉΓòÉΓòÉ 7.3.10. Next WindowClass ΓòÉΓòÉΓòÉ
  910.  
  911. This positions at the next specified Window class within an identified Window. 
  912.  
  913. The Internal parameter is a Window Class name and is required. The Window 
  914. classes for a particular Framed Window can be extracted using the Log Window 
  915. Class List command. 
  916.  
  917. Example: 
  918.  
  919. [NW](n)WindowClassName
  920.  
  921. Where n represents the specified Window class number, set by the Repeat factor 
  922. in the Notebook Command Page. 
  923.  
  924.  
  925. ΓòÉΓòÉΓòÉ 7.3.11. Restore Window ΓòÉΓòÉΓòÉ
  926.  
  927. This command will restore an identified Window. 
  928.  
  929. The Internal parameter is optionally a Window name. 
  930.  
  931. Example: 
  932.  
  933. [RW](n)WindowName
  934.  
  935. Where n represents the number of attempts to be made to identify the Window, 
  936. set by the Repeat factor in the Notebook Command Page. 
  937.  
  938.  
  939. ΓòÉΓòÉΓòÉ 7.3.12. Window Exist? ΓòÉΓòÉΓòÉ
  940.  
  941. This command will run a script if a Window has been identified. 
  942.  
  943. The Internal parameter is the Script name and is required. 
  944.  
  945. Example: 
  946.  
  947. [IF]ScriptName
  948.  
  949. This command is similar to the Run Script command, but the Script is only run 
  950. if a window has been identified either explicitly or implicitly. 
  951.  
  952. This command will detect if a window has been identified, the check is against 
  953. the last attempt to identify a window. So if nesting this command within 
  954. scripts it may be safer to precede each check with an Identify Window Internal 
  955. command to make sure the test is for the correct window. 
  956.  
  957.  
  958. ΓòÉΓòÉΓòÉ 7.3.13. Window Not Exist? ΓòÉΓòÉΓòÉ
  959.  
  960. This command will run a script if a Window has not been identified. 
  961.  
  962. The Internal parameter is the Script name and is required. 
  963.  
  964. Example: 
  965.  
  966. [LS]ScriptName
  967.  
  968. This command is similar to the Run Script command, but the Script is only run 
  969. if a window has not been identified either explicitly or implicitly. 
  970.  
  971. This command will detect if a window has not been identified, the check is 
  972. against the last attempt to identify a window. So if nesting this command 
  973. within scripts it may be safer to precede each check with an Identify Window 
  974. Internal command to make sure the test is for the correct window. 
  975.  
  976.  
  977. ΓòÉΓòÉΓòÉ 7.4. Task Control ΓòÉΓòÉΓòÉ
  978.  
  979. These commands are used to manipulate tasks. 
  980.  
  981.  
  982. ΓòÉΓòÉΓòÉ 7.4.1. Open Tasks Folder ΓòÉΓòÉΓòÉ
  983.  
  984. This command will open a TaskGroup folder. 
  985.  
  986. The Internal parameter is the Task Group Name. 
  987.  
  988. Example: 
  989.  
  990. [OF](n)TaskGroupName
  991.  
  992. Where n represents a delay in seconds before an attempt is made to identify it, 
  993. set by the Repeat factor in the Notebook Command Page. 
  994.  
  995. TaskGroupName is derived from the File information shown on the File page of 
  996. the folder's Settings Notebook. After clicking on the File Tab concatenate the 
  997. Path and Name entries together, inserting a "\" between the two fields. 
  998.  
  999.  
  1000. ΓòÉΓòÉΓòÉ 7.4.2. Run Tasks ΓòÉΓòÉΓòÉ
  1001.  
  1002. This command will open a TaskGroup folder and run the specified number of 
  1003. tasks. 
  1004.  
  1005. The Internal parameter is the Task Group Name and is required. 
  1006.  
  1007. Example: 
  1008.  
  1009. [RT](n)TaskGroupName
  1010.  
  1011. Where n represents the number of tasks to run, set by the Repeat factor in the 
  1012. Notebook Command Page. 
  1013.  
  1014. TaskGroupName is derived from the File information shown on the File page of 
  1015. the folder's Settings Notebook. After clicking on the File Tab concatenate the 
  1016. Path and Name entries together, inserting a "\" between the two fields. 
  1017.  
  1018. The folder representing the Task Group should have a view setting of Icon View 
  1019. Flowed, to ensure the tasks are executed in the correct sequence. The execution 
  1020. sequence always starts with the first icon in the Task Group. 
  1021.  
  1022.  
  1023. ΓòÉΓòÉΓòÉ 7.5. Keyboard ΓòÉΓòÉΓòÉ
  1024.  
  1025. These commands are used to manipulate keystrokes. 
  1026.  
  1027.  
  1028. ΓòÉΓòÉΓòÉ 7.5.1. Paste Control String ΓòÉΓòÉΓòÉ
  1029.  
  1030. This command will paste the Control String to an identified Window. This has 
  1031. the same effect as copying to the clipboard and then selecting the menu paste 
  1032. command. 
  1033.  
  1034. The Internal parameter is a Control String and is required. 
  1035.  
  1036. Example: 
  1037.  
  1038. [PC](n)ControlString
  1039.  
  1040. Where n represents the number of times to send the Control String, set by the 
  1041. Repeat factor in the Notebook Command Page. 
  1042.  
  1043.  
  1044. ΓòÉΓòÉΓòÉ 7.5.2. Paste Key String ΓòÉΓòÉΓòÉ
  1045.  
  1046. This command will paste a key string to an identified Window. This has the same 
  1047. effect as copying to the clipboard and then selecting the menu paste command. 
  1048.  
  1049. The Internal parameter is the Key String and is required. 
  1050.  
  1051. Example: 
  1052.  
  1053. [PK](n)KeyString
  1054.  
  1055. Where n represents the number of times to send the Key String, set by the 
  1056. Repeat factor in the Notebook Command Page. 
  1057.  
  1058.  
  1059. ΓòÉΓòÉΓòÉ 7.5.3. Send Control String ΓòÉΓòÉΓòÉ
  1060.  
  1061. This command will enter the Control String into an identified Window. 
  1062.  
  1063. The Internal parameter is a Control String and is required. 
  1064.  
  1065. Example: 
  1066.  
  1067. [SC](n)ControlString
  1068.  
  1069. Where n represents the number of times to send the Control String, set by the 
  1070. Repeat factor in the Notebook Command Page. 
  1071.  
  1072.  
  1073. ΓòÉΓòÉΓòÉ 7.5.4. Send Key String ΓòÉΓòÉΓòÉ
  1074.  
  1075. This command will enter the key string into an identified Window. 
  1076.  
  1077. The Internal parameter is a Key String and is required. 
  1078.  
  1079. Example: 
  1080.  
  1081. [SK](n)KeyString
  1082.  
  1083. Where n represents the number of times to send the Key String, set by the 
  1084. Repeat factor in the Notebook Command Page. 
  1085.  
  1086.  
  1087. ΓòÉΓòÉΓòÉ 7.6. Automation ΓòÉΓòÉΓòÉ
  1088.  
  1089. These commands are used to manipulate AUTOS/2. 
  1090.  
  1091.  
  1092. ΓòÉΓòÉΓòÉ 7.6.1. Automation Off ΓòÉΓòÉΓòÉ
  1093.  
  1094. This command will terminate Automation if it is On. 
  1095.  
  1096. Example: 
  1097.  
  1098. [AO]
  1099.  
  1100. There are no parameters. 
  1101.  
  1102.  
  1103. ΓòÉΓòÉΓòÉ 7.6.2. Recycle ΓòÉΓòÉΓòÉ
  1104.  
  1105. This command will recycle Automation. This has the same effect as Automation 
  1106. Off followed by Automation On. 
  1107.  
  1108. The Internal parameter is optionally a Schedule Name. 
  1109.  
  1110. Example: 
  1111.  
  1112. [RC]ScheduleName
  1113.  
  1114.  
  1115. ΓòÉΓòÉΓòÉ 7.6.3. Run Script ΓòÉΓòÉΓòÉ
  1116.  
  1117. This command will run the specified Script. 
  1118.  
  1119. The Internal parameter is the Script name and is required. 
  1120.  
  1121. Example: 
  1122.  
  1123. [RS]ScriptName
  1124.  
  1125.  
  1126. ΓòÉΓòÉΓòÉ 7.6.4. Sleep Interval ΓòÉΓòÉΓòÉ
  1127.  
  1128. This command will allow for the setting of the number of seconds to elapse 
  1129. before the Task Manager should poll for more work. This setting will increase 
  1130. timing accuracy at the expense of higher CPU requirement. The default setting 
  1131. is 5 seconds. 
  1132.  
  1133. There is no Internal parameter. 
  1134.  
  1135. Example: 
  1136.  
  1137. [SI](n)
  1138.  
  1139. Where n represents the number of seconds to sleep, set by the Repeat factor in 
  1140. the Notebook Command Page. 
  1141.  
  1142.  
  1143. ΓòÉΓòÉΓòÉ 7.6.5. User Exit ΓòÉΓòÉΓòÉ
  1144.  
  1145. This command will execute an external program synchronously. 
  1146.  
  1147. The Internal parameter is a program name which is required, plus optional 
  1148. parameters. 
  1149.  
  1150. This Internal command will allow for the synchronous execution of any program. 
  1151. It will be treated as an external routine as per the REXX information online 
  1152. material. Any required parameters should be included in the command as if it 
  1153. were issued from the OS/2 command prompt. No syntax checking is performed on 
  1154. this command before presenting it to the command processor. Likewise the 
  1155. external comand will cause AUTOS/2 to possibly fail should the user exit not 
  1156. execute correctly. 
  1157.  
  1158. Example: 
  1159.  
  1160. [UE]ProgName Arg1 Arg2....Argn
  1161.  
  1162.  
  1163. ΓòÉΓòÉΓòÉ 7.6.6. Wait Period ΓòÉΓòÉΓòÉ
  1164.  
  1165. This command will allow for a number of seconds to elapse before processing the 
  1166. next command. 
  1167.  
  1168. There is no Internal parameter. 
  1169.  
  1170. Example: 
  1171.  
  1172. [WT](n)
  1173.  
  1174. Where n represents the number of seconds to sleep, set by the Repeat factor in 
  1175. the Notebook Command Page. 
  1176.  
  1177.  
  1178. ΓòÉΓòÉΓòÉ 8. Control Strings ΓòÉΓòÉΓòÉ
  1179.  
  1180. The following names can be used, enclosed in {} to represent a ControlString: 
  1181.  
  1182. Enter
  1183. Alt
  1184. Ctrl
  1185. Shift
  1186. Tab
  1187. BackTab
  1188. BackSpace
  1189. Home
  1190. Ins
  1191. Del
  1192. End
  1193. Esc
  1194. NewLine
  1195. PgUp
  1196. PgDown
  1197. Right
  1198. Left
  1199. Up
  1200. Down
  1201. Fn where n=1 to 12
  1202.  
  1203. Example: 
  1204.  
  1205. [SC](2){Down}
  1206.  
  1207. This would depress the Down arrow twice. 
  1208.  
  1209. It would be good practice to have a single ControlString per Send Control 
  1210. command, although multiple entries are supported. The Paste Control command 
  1211. only supports one entry per command. 
  1212.  
  1213.  
  1214. ΓòÉΓòÉΓòÉ 9. Hints and Tips ΓòÉΓòÉΓòÉ
  1215.  
  1216. Before embarking on a window dialogue, it would be wise to become familiar with 
  1217. the class structure of that window. The Log Window Class List command is 
  1218. available for this and will create an entry in the log similar to: 
  1219.  
  1220. FRAME 
  1221.  
  1222.    TITLEBAR 
  1223.  
  1224.    MENU 
  1225.  
  1226.    MENU 
  1227.  
  1228.    FRAME 
  1229.  
  1230.       STATIC 
  1231.  
  1232.       STATIC 
  1233.  
  1234.       BUTTON 
  1235.  
  1236.       BUTTON 
  1237.  
  1238.    MENU 
  1239.  
  1240. Normally the Menu Bar is the Menu class at the end of the log, where the first 
  1241. Menu is the Icon Menu. 
  1242.  
  1243. To depress the second button a hand edited script might look like: 
  1244.  
  1245. [IW]WindowName
  1246. [NF]
  1247. [HW]
  1248. [SC]{Down}
  1249. [SC}{Enter}
  1250.  
  1251. The GUI equivelant Internal Commands would be: 
  1252.  
  1253. Identify Window
  1254. Next Frame
  1255. Highlight Window
  1256. Send Control String
  1257. Send Control String
  1258.  
  1259. With the appropriate Internal Parameters of course. Note that the keys are 
  1260. being sent to the Frame Class window as the down arrow does not switch focus, 
  1261. only moves the cursor. 
  1262.  
  1263. If you are trying to navigate a group of radio buttons then the method is 
  1264. slightly different. First we need to get to the BUTTON Window Class. Normally 
  1265. the button has an associated STATIC description with an underlined letter to 
  1266. attract the cursor. So if we had two buttons in a group and one was "Yes" and 
  1267. the other "No" and you wanted to select "No" then the following edited commands 
  1268. should work: 
  1269.  
  1270. [HW]WindowName
  1271. [NW]BUTTON
  1272. [SK]Y
  1273. [SC]{Down}
  1274.  
  1275. To run a program that requires VIO support you must redirect the output 
  1276. otherwise you may get a REXX error SYS0436. For PSTAT you would enter: 
  1277.  
  1278. /win pstat <con >con
  1279.  
  1280. For programs that write to Standard Error you should add the 2>con as follows: 
  1281.  
  1282. /win pstat <con >con 2>con
  1283.  
  1284. AUTOS2 main intent is to conduct the scheduling of tasks and support the 
  1285. initiation of events. If an application has it's own internal macro/scripting 
  1286. language, this should be used in preference. Simply use AUTOS2 to kick off the 
  1287. process at a pre-determined Date/Time. 
  1288.  
  1289. Particularly OS2/DOS windows can be pasted into but excessive use of this 
  1290. method can prove unreliable. 
  1291.  
  1292.  
  1293. ΓòÉΓòÉΓòÉ 10. Examples ΓòÉΓòÉΓòÉ
  1294.  
  1295. The following examples are shown as if created using the hand edited method. 
  1296.  
  1297.  
  1298. ΓòÉΓòÉΓòÉ 10.1. Process Monitoring ΓòÉΓòÉΓòÉ
  1299.  
  1300. To monitor a process you would enter a schedule something like: 
  1301.  
  1302. *,*,*,*,00:00:10,11111,1111111,111111111111,<None>,<None>,[IW]E.EXE - FilePathName
  1303. *,*,*,*,00:00:10,11111,1111111,111111111111,<None>,<None>,[LS]StartEd
  1304.  
  1305. These entries are all defaults except the Interval value of every 10 seconds. A 
  1306. Script called StartEd.SCR would need to be created to invoke the Editor on file 
  1307. FilePathName. This Schedule will: 
  1308.  
  1309.    Attempt to Identify the editor window for FilePathName. 
  1310.  
  1311.    If not found then run Script StartEd.SCR. 
  1312.  
  1313. This will be repeated every 10 seconds so that if for some reason the editor 
  1314. session fails it will get restarted again automatically. 
  1315.  
  1316. Schedule CHKWIN.SCD and Scripts EDA.SCR, EDB.SCR, DOEDA.SCR, DOEDB.SCR and 
  1317. DOEDC.SCR have been included to demonstrate monitoring. 
  1318.  
  1319. Editor sessions have been used for this example, as most systems should be able 
  1320. to cater for this scenario. 
  1321.  
  1322. First start AUTOS2 and LMB on the Schedule Icon 
  1323.  
  1324. RMB on the CHKWIN.SCD icon to expose the Context Sensitive Menu 
  1325.  
  1326. LMB on the Expand option to expand the Schedule, the expanded view works 
  1327. similar to the Tree View option on any Folder 
  1328.  
  1329. Keep expanding the branches, by LMB on the + signs, to get a full picture of 
  1330. the Schedule 
  1331.  
  1332. This Schedule will: 
  1333.  
  1334.    Check to see if there is an edit session for file C 
  1335.  
  1336.    If there is not: 
  1337.  
  1338.       Check to see if there is an edit session for file B 
  1339.  
  1340.       If there is not then start an edit session for file B 
  1341.  
  1342.    If there is an edit session for file C then: 
  1343.  
  1344.       Check to see if there is an edit session for file A 
  1345.  
  1346.       If there is not then start an edit session for file A 
  1347.  
  1348. To start Schedule CHKWIN.SCD then LMB double click on it's icon. Initially 
  1349. there should be no edit session for file C so a check will be made for an edit 
  1350. session on file B. There should not be one found so one will be started. 
  1351. Another check is made for a file C edit session but this time a branch will 
  1352. only be taken if it exists, but it does not yet. 
  1353.  
  1354. These checks are set to be repeated every 10 seconds, this can be confirmed by 
  1355. Restoring the Log window which can be found in the Minimised Window Viewer. 
  1356. This will log all failed attempts at recognising a Window, or edit sesson. 
  1357.  
  1358. You can now change the Schedules behaviour by dropping and invoking different 
  1359. editor sessions. If you close edit session B, while there is no edit session C, 
  1360. then edit session B will be reinvoked. This is the monitoring effect. Edit 
  1361. session B could quite easily be a LAN session at which point you could invoke 
  1362. the LAN startup process. 
  1363.  
  1364. To create an edit sesson for C Script DOEDC.SCR is provided. This can be 
  1365. invoked by going back to the Main AUTOS2 window, it will need restoring if 
  1366. minimised. LMB on the Script icon to bring up the Scripts Window. LMB double 
  1367. click on the DOEDC.SCR icon to invoke an edit session for file C. 
  1368.  
  1369. You should now notice an edit session for file A appear, as well as file C, as 
  1370. we have switched monitoring from file B to file A. This can be checked by 
  1371. closing the edit sessions for both file A and B and only edit session on file A 
  1372. should re-appear. 
  1373.  
  1374. Note that you are still able to run Scripts while a Schedule is running (i.e. 
  1375. Automation is On). To swith Off Automation use the Main Window Menu - 
  1376. Options/Automation/Off and the Task Manager thread will be halted. 
  1377.  
  1378.  
  1379. ΓòÉΓòÉΓòÉ 10.2. OS2/DOS Window Session ΓòÉΓòÉΓòÉ
  1380.  
  1381. [IW]DOS Window
  1382. [MU]
  1383. [PK]cd\
  1384. [PC]{Enter}
  1385. [PK]dir
  1386. [PC]{Enter}
  1387.  
  1388. The above hand edited script will: 
  1389.  
  1390. Identify the DOS window 
  1391.  
  1392. Locate the Icon Menu 
  1393.  
  1394. Paste the keys to change to the root directory 
  1395.  
  1396. Press the Enter key 
  1397.  
  1398. Paste the keys to issue the directory list command 
  1399.  
  1400. Press the Enter key 
  1401.  
  1402. The Script DOS.SCR has been included to demonstrate this. A Dos Window session 
  1403. should be current for the example to work. Simply open the Scripts window by 
  1404. LMB on the Script Icon. Then LMB Double Click on the DOS.SCR icon. 
  1405.  
  1406.  
  1407. ΓòÉΓòÉΓòÉ 10.3. Task Group ΓòÉΓòÉΓòÉ
  1408.  
  1409. To utilise the Run Tasks facility the following steps should be taken: 
  1410.  
  1411.    Create a folder of choice 
  1412.  
  1413.    Identify the TaskGroupName from the File information shown on the File page 
  1414.    of the folder's Settings Notebook. After clicking on the File Tab 
  1415.    concatenate the Path and Name entries together, inserting a "\" between the 
  1416.    two fields. 
  1417.  
  1418.    Set the Icon View setting to Flowed. 
  1419.  
  1420.    For each task required to be performed create the required shadow inside the 
  1421.    Task Group Folder. 
  1422.  
  1423. It is now possible to create the following hand edited Script: 
  1424.  
  1425. [RT](4)TaskGroupName
  1426.  
  1427. This will run the first 4 Tasks within the Task Group. 
  1428.  
  1429. Sometimes a little experimentatioin is required to aachieve the required 
  1430. results. For instance a hand edited script to close an OS/2 command session 
  1431. window might look like: 
  1432.  
  1433. [HW]CMD.EXE
  1434. [MU]
  1435. [SK]c
  1436. [WT](2)
  1437. [HW]CMD.EXE
  1438. [SC]{Down}
  1439. [SC}{Enter}
  1440.  
  1441. The GUI equivelant Internal Commands would be: 
  1442.  
  1443. Highlight Window
  1444. Next Menu
  1445. Send Key String
  1446. Wait
  1447. Highlight Window
  1448. Send Control String
  1449. Send Control String
  1450.  
  1451. Here you would have expected a simple {Left} Control String to be sufficient, 
  1452. but a button that has the focus is not neccessarily the one that receives the 
  1453. keystroke. 
  1454.  
  1455. Some applications use unusual window classes hence the Next Window Internal 
  1456. Command. You may find a keystroke, or Control String, needs to be sent to the 
  1457. most unlikely Window Class. For instance {Alt}{F4} does not always work on the 
  1458. first Menu Window Class, you may need to try them all to succeed. This is 
  1459. another good reason to divide up any lengthy dialogues to ease testing. 
  1460.  
  1461.  
  1462. ΓòÉΓòÉΓòÉ 11. Troubleshooting ΓòÉΓòÉΓòÉ
  1463.  
  1464. If for some reason AUTOS2 isn't giving the results you expect the first place 
  1465. to look is the log. On startup the log is minimised, so most likely you will 
  1466. find it in the Minimised Window Viewer. Check through the messages for a clue 
  1467. as to what may have caused the problem. If you are still unable to resolve it 
  1468. please contact Squiredeck using the information on the Help About panel. 
  1469.  
  1470.  
  1471. ΓòÉΓòÉΓòÉ 12. Registration ΓòÉΓòÉΓòÉ
  1472.  
  1473. To become a registered user and receive upgrades, fixes, support etc., please 
  1474. fill in your details in the form provided in the distributed REGO.TXT text 
  1475. file. This information may change from time to time so please check it's 
  1476. contents for instructions. Any problems then please do not hesitate to contact 
  1477. Squiredeck via our email address on the Help About window. 
  1478.  
  1479. All comments, positive or negative, will be gratefully received. 
  1480.  
  1481. Thank you for looking at AUTOS2.