home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / gohom10a.zip / GOSCRIPT.HLP < prev    next >
Text File  |  1994-04-30  |  37KB  |  933 lines

  1. Help file for GoScript.
  2.  
  3. @@Contents
  4. HelpOnHelp   : `1Help on Help`0   How to use the help facility.
  5. Overview     : `1Overview`0       Describes what the script editor is used for.
  6. Variables    : `1Variables`0      Describes the variables used in scripts.
  7. @@SectionHdr :
  8. @@SectionHdr :                    `2Menu Items`0
  9. @@SectionHdr :
  10. File         : `1File`0 menu contains of the following menu items:
  11. New          :   `1New`0          Create a new script file.
  12. Open...      :   `1Open`0         Open an existing script file for editing.
  13. Save         :   `1Save`0         Save the current script to a file.
  14. SaveAs...    :   `1Save As`0      Save the script to a different file.
  15. Insert File  :   `1Insert File`0  Insert a script file at the current line.
  16. Print...     :   `1Print`0        Print the script file.
  17. Exit         :   `1Exit`0         Quit the script editor.
  18. @@SectionHdr :
  19. Edit         : `1Edit`0 menu contains the following menu items
  20. Cut          :   `1Cut`0          Move the current command to the clipboard.
  21. Copy         :   `1Copy`0         Copy the current command to the clipboard.
  22. Paste        :   `1Paste`0        Insert clipboard's script command.
  23. Delete Line  :   `1Delete Line`0  Remove the command from the script.
  24. Labels...    :   `1Labels`0       Display the `1Label Maintenance`0 dialog
  25. @@SectionHdr :
  26. Add          : `1Add`0            Menu used to add a script command to script.
  27. @@SectionHdr :
  28. Detail       : `1Detail`0         Display the script command's detail dialog box.
  29. @@SectionHdr :
  30. Help         : `1Help`0           Menu to get help for using `1GoScript`0.
  31. Topics       :   `1Topics`0        Displays help's table of contents.
  32. Help On Help :   `1Help On Help`0 Expains how to use the help facility.
  33. About        :   `1About`0        Displays information about `1GoScript`0.
  34. @@SectionHdr :
  35. @@SectionHdr :                   `2Script Commands`0
  36. Beeper       : `1Beeper`0         Sound the computer's internal speaker.
  37. BlankScreen  : `1BlankScreen`0    Cause the screen to blank.
  38. Chain        : `1ChainTo`0        Start executing another scriptfile.
  39. KeySpeed     : `1KeySpeed`0       Change the speed at which keys are played back.
  40. Comment      : `1Comment`0        Add a text description.
  41. CopyTo       : `1Copy`0           Copy a script variable or string.
  42. Date         : `1DateStamp`0      Insert a date stamp.
  43. Delay        : `1Delay`0          Pause execution of script for a specified period of time.
  44. DoMenu       : `1DoMenu`0         Create a pop-up menu.
  45. GetArg       : `1GetArgument`0    Get an argument from the command line or prompt.
  46. GetKey       : `1GetKey`0         Wait for a key to be pressed.
  47. Goto         : `1Goto`0           Always transfer execution the the label specified.
  48. IfGoto       : `1IfGoto`0         Execute a conditional branch.
  49. Keystrokes   : `1Keys`0           Type the specified keys.
  50. LabelScript  : `1Label`0          Insert a marker that can be jumped to.
  51. MessageBox   : `1MessageBox`0     Display a message box.
  52. PrintScrn    : `1PrintScreen`0    Print the contents of the screen.
  53. PutSnapShot  : `1PutSnapShot`0    Display a snapshot file.
  54. Reboot       : `1Reboot`0         Reboot the computer.
  55. RunTask      : `1RunTask`0        Run a scheduled task.
  56. Debug        : `1ScriptDebug`0    Turn on/off script debugging.
  57. SetStuff     : `1StuffMethod`0    Modify the method used to stuff keys.
  58. TakeSnapShot : `1TakeSnapSht`0    Save a portion of the display to file.
  59. Time         : `1TimeStamp`0      Insert a time stamp.
  60. ToggleKeys   : `1ToggleKeys`0     Toggle Caps, NumLock, and Ins keys.
  61. WaitPrompt   : `1WtDOSPrompt`0    Wait until returned to DOS prompt.
  62. WaitAt       : `1WaitAtPos`0      Wait for text to appear in a region on the screen.
  63. WaitRel      : `1WaitRelCrs`0     Wait for text to appear relative to the cursor.
  64. EmptyBuff    : `1WaitKeyBuff`0    Wait until all keys have been accepted.
  65. @@EndContents
  66.  
  67. KeyFile      : `1KeyFile`0        Playback keys stored in a file.
  68.  
  69.  
  70. @@Help
  71. [HelpOnHelp]
  72. To use help, select the topic you want help on from the topics
  73. list (enter 'T' to get back to the topics list). Use the
  74. cursor and page keys to scroll through the text. The `2 Next`0
  75. and `2 Previous `0 buttons move to the next and previous
  76. topic, respectively.
  77.  
  78. All of the buttons in `1GoHelp`0 can be executed by simply
  79. pressing the key that is highlighted on the button. You can
  80. also TAB to the button or press it's accelerator key (press
  81. <ALT> + key hightlighted on button label).
  82.  
  83. To get help on a particular program, run `1GoHelp`0 with the
  84. first argument on the command line set: `1GoHome`0,
  85. `1GoScript`0, `1GoSched`0, or `1GoEd`0. You can also run
  86. `1GoHelp`0 with no arguments, in which case you will be
  87. presented with a menu to select the program you want help on.
  88.  
  89.  
  90.  
  91. [Overview]
  92. `1GoScript`0 is used to modify or create scripts that
  93. `1GoHome`0 can play back. `1GoHome`0 allows you to create new
  94. scripts and to record keystrokes, add `2WaitAtPos`0 and
  95. `2WaitRelCrs`0 commands, and a number of other commands while
  96. running the program you want to automate. 
  97.  
  98. `1GoScript`0 makes modifying and adding commands simple
  99. because it doesn't require you to remember all the commands
  100. and the parameters they require. Instead, `1GoScript`0 uses
  101. menus and dialog boxes that prompt you for the needed data. In
  102. addition, `1GoScript`0 doesn't require a seperate "compile"
  103. phase that other script languages need - scripts are compiled
  104. automatically.  
  105.  
  106.  
  107. [Variables]
  108. GoHome uses five program variables. A program variable is used
  109. to store a specific piece of data. Depending on the variable,
  110. the data may be numeric or a text string. Two of the variables
  111. contain numeric values that are set and maintained by GoHome,
  112. the other three variables contain text strings that can be
  113. modified by the script in any manner it sees fit to. The
  114. following table lists the names and purposes of these
  115. variables.
  116.  
  117.   Variable Name     Purpose
  118. ----------------------------------------------------------------------
  119.  
  120.   `2Result`0      : Set to "OK", "Not OK", or "timed-out" depending
  121.                 on whether the last script command was 
  122.                 successful, not successful, or timed-out, 
  123.                 respectively.
  124.  
  125.   `2MenuItemSel`0 : Contains the last menu item selected from a 
  126.                 `1DoMenu`0 script command. Valid values are 
  127.                 'None' if user canceled menu (ie. hit ESC key),
  128.                 and 1, 2, ..., 9.
  129.  
  130.   `2StringA`0     
  131.   `2StringB`0     
  132.   `2StringC`0     : These are general purpose string variables. 
  133.                 Each may contain up to 80 characters. Any 
  134.                 strings that are copied to these variables
  135.                 may contain two of GoHome's embeded macros.
  136.                 An embeded macro is either another string
  137.                 variable or an environment varialbe. These
  138.                 macros are denoted by prefacing them with
  139.                 percent signs ('%'). For example, if
  140.                 StringA contains the string "Hello", and
  141.                 there's an environment variable 'COMSPEC' 
  142.                 that contains "C:\command.com" then:
  143.                     
  144.         "%StringA, World!"    => "Hello, World!" 
  145.         "Say %StringA to all" => "Say Hello to all"
  146.         "Comspec is %comspec  => "Comspec is C:\command.com"
  147.  
  148. GoHome also allows the following macro characters to be used
  149. within strings:
  150.   `2%CR`0    : Carriage return character
  151.   `2%NL`0    : New-line character
  152.   `2%CN`0    : Both a carriage return and new-line characters
  153.   `2%FF`0    : Form-feed character
  154.   `2%TB`0    : tab character
  155.   `2%#n`0    : character represented by ASCII number, 'n'
  156.  
  157. These macros are especially useful when writing strings to the
  158. printer or a file. For example, the following could be used to
  159. send the value of variable StringA to the printer:
  160.  
  161.   `1"%stringa%CN"`0
  162.  
  163. All the variables and macro characters are case insensitive.
  164.  
  165. [RunTask]
  166. `1RunTask`0 will run the specified task that is in GoSched's
  167. Task List. Before running the specified task, GoHome 
  168. terminates the current script file (when the specified task 
  169. finishes, the script does NOT continue).
  170.  
  171.  
  172. [Comment]
  173. The `1Comment`0 statement has no effect during playback of the 
  174. script. It can be used to document what the script does, how it 
  175. works, or anything else you feel is important.
  176.  
  177. [Keystrokes]
  178. The keystrokes entered will be played back just as if you 
  179. where typing them in manually.  To enter an edit key (ie. 
  180. '─', '', <Enter>) press the <Shift><Ins> keys simultaneously.
  181. From this point on, `2all`0 keys pressed will be entered
  182. into the script.  When you're done, press <Shift><Ins> to 
  183. return to normal edit mode.
  184.  
  185. To modify the time interval between keystrokes, bring up the
  186. detail dialog for `1Keys`0 by pressing <Alt><D>. Position
  187. the cursor over the key whose interval you want to change.
  188. Tab to the "Delay Interval" field and modify the interval.
  189. The interval entered is expressed in `1timer ticks`0 where
  190. 1 timer tick is 1/18 secs.
  191.  
  192. The keyboard `1status/toggle`0 keys are entered using the 
  193. `2<F10>`0 key. Before pressing the <F10> key, hold down all
  194. status/toggle keys. For example, if you want to enter the
  195. <Alt> key, press and hold the <Alt> key, then press <F10>, and
  196. release both keys. 
  197.  
  198. The keyboard `1status/toggle`0 keys are displayed as "<Flags:?>" 
  199. where '?' is a hexadecimal number indicated by the following
  200. table:
  201.  
  202.       8 4 2 1 8 4 2 1
  203.       x . . . . . . .   Lock <Ins>
  204.       . x . . . . . .   Lock <Caps Lock>
  205.       . . x . . . . .   Lock <Num Lock>
  206.       . . . x . . . .   Lock <Scroll Lock>
  207.       . . . . x . . .   <Alt> key is pressed
  208.       . . . . . x . .   <Ctrl> key is pressed
  209.       . . . . . . x .   <Left Shift> key is pressed
  210.       . . . . . . . x   <Right Shift> key is pressed
  211.  
  212.  
  213. For example, `2Keys`0 might display the following:
  214.     `1<Flags:8>`0  : The <Alt> is pressed
  215.     `1<Flags:84>`0 : The <Ctrl> is down and the <Ins> key
  216.                      is locked (enabled)
  217.     `1<Flags:a8>`0 : The <Ins> key is locked, the <Num Lock>
  218.                      key is locked, and the <Alt> key is 
  219.                      pressed.
  220.     `1<Flags:a0>`0 : Same as above but with <Alt> key 
  221.                      released.
  222.  
  223.  
  224. When `1GoHome`0 is used to record keystrokes, it will record
  225. all <Alt> key presses and releases. Some applications don't
  226. care if the <Alt> key flags are set but other do. If the 
  227. keystrokes were not recorded, you may have to enter the 
  228. Alt key flag before and Alt key is pressed and then enter
  229. the Alt key release after the Alt Key. For example, if you
  230. press <Alt><F>, it may be necessary to record the Alt key
  231. flags such as: <Flags:8><Alt-F><Flags:0>
  232.  
  233. It if VERY `1Important`0 that the Flag keys are entered 
  234. and removed in pairs. If this is not done, the application
  235. may get confused and not work properly.
  236.  
  237. Note: `1GoScript`0 will break up long keystroke sequences 
  238. into multiple lines.
  239.  
  240. [SetStuff]
  241. The `1StuffMethod`0 is used to modify the way that 
  242. keystrokes are played back. It should only be used if a
  243. program doesn't seem to accept the keystrokes played back
  244. by GoHome. 
  245.  
  246. Technically, this method will generate an interrupt 9 
  247. whenever a keystroke is stuffed into the keyboard's 
  248. type-ahead buffer.
  249.  
  250.  
  251. [WaitAt]
  252. Use `1WaitAtPos`0 when you want to pause execution of the script
  253. until a specific pattern of characters appears on the screen. 
  254. You define a region of the screen to 'look' at by specifying
  255. the top-left row and column, width, and height of the region.
  256. You also must specify the pattern of characters that you
  257. want GoHome to wait for.  When the script is played back, GoHome
  258. will search for the text in the region specified twice 
  259. a second until either the text is found to match or a
  260. timeout occurs.
  261.  
  262. The search string may be up to 40 characters.
  263.  
  264. `1Result`0 variable is set to: 
  265.         `3OK`0       : if match was found
  266.         `3TimedOut`0 : if a match wasn't found within the given 
  267.                    timeout period.
  268.                              
  269. Note: The search string may be one of the three GoHome 
  270.       internal strings (ie. %StringA), an environment 
  271.       variable (ie. %SHELL) or any of the 'macro'
  272.       characters (see `2Script Variables`0).
  273.  
  274. [WaitRel]
  275. Use `1WaitRelCrs`0 when you want to pause execution of the script
  276. until a specific pattern of characters appears on the screen. 
  277. `1WaitRelCrs`0 is similar to `1WaitAtPos`0 except the region that
  278. is searched is `2relative`0 to the current cursor position.
  279.  
  280. The search string may be up to 40 characters.
  281.  
  282. `1Result`0 variable is set to: 
  283.         `3OK`0       : if match was found
  284.         `3TimedOut`0 : if a match wasn't found within the given 
  285.                    timeout period.
  286.                             
  287. Note: The search string may be one of the three GoHome 
  288.       internal strings (ie. %StringA), an environment 
  289.       variable (ie. %SHELL) or any of the 'macro'
  290.       characters (see `2Script Variables`0).
  291.  
  292. [Delay]
  293. `1Delay`0 will pause the execution of the script for the 
  294. specified number of minutes and seconds. The maximum number 
  295. of minutes that can be delayed is 1,092 (18.2 hours). If for
  296. some reason you need a longer delay, use multiple delay 
  297. statements.
  298.  
  299. [DoMenu]
  300. `1DoMenu`0 will pop-up a menu and allow the user to make a
  301. selection. The menu is defined by selecting `2Detail...`0 from
  302. the menu bar (<Alt>D). You can give the menu a title and up
  303. to 10 menu items. The item selected by the user is stored in
  304. the variable `2Menu Item Sel`0. This variable can be used in
  305. an `2IfGoto`0 statement to determine which item was selected 
  306. and perform whatever is necessary.  If the user hit the `3ESC`0
  307. key to abort the menu, `2Menu Item Sel`0 will contain a 0.
  308.  
  309. `1Result`0 variable is set to: 
  310.         `3OK`0       : if user selected a menu item.
  311.         `3Not OK`0   : if user canceled menu.
  312.         `3TimedOut`0 : if a menu selection wasn't entered within
  313.                    the given timeout period.
  314.  
  315.  
  316. Note: Set the `1Timeout`0 value to `10`0 to keep the menu
  317.       from timing-out (i.e. an <Enter> MUST be pressed).
  318.       
  319.  
  320.            ╔════════════ DoMenu Edit ═══════════╗
  321.            ║                                    ║
  322.            ║       ╒════   Macro Menu·· ══╕     ║
  323.            ║     1 │ N  Name              │     ║
  324.            ║     2 │ A  Address           │     ║
  325.            ║     3 │ D  Today's Date      │     ║
  326.            ║     4 │ W  Start Word Proc   │     ║
  327.            ║     5 │ R  Run Task 1        │     ║
  328.            ║     6 │ T  Date/Time Stamp   │     ║
  329.            ║     7 │                      │     ║
  330.            ║     8 │                      │     ║
  331.            ║     9 │                      │     ║
  332.            ║       └──────────────────────┘     ║
  333.            ║         ^── Enter HotKey char      ║
  334.            ║                                    ║
  335.            ║           Timeout  0     ▄         ║
  336.            ║           ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀         ║
  337.            ║           OK    ▄    Cancel  ▄     ║
  338.            ║        ▀▀▀▀▀▀▀▀▀▀   ▀▀▀▀▀▀▀▀▀▀     ║
  339.            ╚════════════════════════════════════╝
  340.  
  341.  
  342. [IfGoto]
  343. `1IfGoto`0 allows conditional processing of script commands. If
  344. the test condition is true, then the next script command to be 
  345. executed will be the statement at the specified label. 
  346.  
  347.   ╔══════════════════════════ If Goto ════════════════════════╗
  348.   ║                                                           ║
  349.   ║    Variable:            Test Condition:    Value:         ║
  350.   ║ If Result           ▄   Not Equal      ▄   Timed out▄     ║
  351.   ║    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀   ▀▀▀▀▀▀▀▀▀▀     ║
  352.   ║    then goto Label   END             ▄    Labels... ▄     ║
  353.   ║                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀▀     ║
  354.   ║                                                           ║
  355.   ║                   OK    ▄     Cancel  ▄                   ║
  356.   ║                ▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀                   ║
  357.   ╚═══════════════════════════════════════════════════════════╝
  358.  
  359.  
  360. [Goto]
  361. `1Goto`0 will transfer execution to the script command which 
  362. immediately follows the label specified.
  363.  
  364. [LabelScript]
  365. A `1Label`0 acts as a marker in the script to which a `1Goto`0
  366. or `1IfGoto`0 statement can jump to. The detail dialog for 
  367. `1Label`0s, allows for a label to be selected from a list
  368. of all labels referenced by `1IfGoto`0 and `1Goto`0 commands
  369. that have not yet been entered.
  370.  
  371. If a label is modified, all `1IfGoto`0 and `1Goto`0 commands
  372. that reference it will be updated to use the modified label.
  373.  
  374.  
  375.      ╔════════════ Label Maintenance ═══════════╗
  376.      ║                                          ║
  377.      ║  ┌────── Label ──────┐                   ║
  378.      ║  │- END              ▓        Add... ▄   ║
  379.      ║  │                   ▓      ▀▀▀▀▀▀▀▀▀▀   ║
  380.      ║  │                   ▓       Remove  ▄   ║
  381.      ║  │                   ▓      ▀▀▀▀▀▀▀▀▀▀   ║
  382.      ║  │                   ▓        Use    ▄   ║
  383.      ║  │                   ▓      ▀▀▀▀▀▀▀▀▀▀   ║
  384.      ║  │                   ▓        Done   ▄   ║
  385.      ║  └──────────────────        ▀▀▀▀▀▀▀▀▀▀   ║
  386.      ║   -: label not in script                 ║
  387.      ╚══════════════════════════════════════════╝
  388.  
  389.  
  390. [CopyTo]
  391. The `1Copy`0 command is very versatile. It allows for the
  392. values of script variables, text strings, and environment
  393. variables to be copied to a script variable, typed
  394. automatically at the keyboard, copied to an environment
  395. variable, copied to a file, displayed on the screen, or sent
  396. to a printer.  
  397.  
  398. You indicate what to copy "From" and "To" by selecting the
  399. proper radio button in the Copy dialog box.  
  400.  
  401. Options for `1From`0
  402.   `1Variable`0   : The contents of any of the three String
  403.                variables.
  404.   `1String`0     : Can be any text. Macro characters and
  405.                strings may also be used. For example,
  406.                "Contents of StringA is %StringA"
  407.                see `2Variables`0 for macro characters.
  408.   `1Env Var`0    : Enter the name of the environment variable
  409.                to be copied (i.e. "PATH").
  410.                The string is retrieved from the current 
  411.                program's enviroment table.
  412.  
  413. Options for `1To`0 
  414.   `1Variable`0   : The contents of any of the three String
  415.                variables.
  416.   `1Keyboard`0   : Copy from field to the keyboard buffer.
  417.   `1Environment Table`0 : The `1From`0 field MUST contain
  418.                a properly formated environment variable
  419.                and value (i.e. "HOME=C:\DOS"). The
  420.                string is NOT checked for validity.
  421.                The string is inserted into the current 
  422.                program's envirionment table.
  423.   `1File`0       : Appends the string to the file specified.
  424.   `1Display`0    : Writes the string to the display screen.
  425.   `1Printer`0    : Sends the string out to a parellel printer
  426.                port.
  427.  
  428. Examples:
  429.   To set a new environment variable, 'NEWVAR' to 'ADDED', 
  430.   select `1String`0 in the `2From`0 box and type in the field
  431.   to its right, "NEWVAR=ADDED". Then select `1Environment Table`0
  432.   in the `2To`0 box.
  433.  
  434.   To retrieve the value of environment variable 'NEWVAR' into
  435.   variable `1StringA`0, select `1Env Var`0 in the `2From`0 box
  436.   and select `1Variable StringA`0 in the `2 To`0 box.
  437.  
  438.   To copy the string "Downloaded files:" to file "newfiles.txt",
  439.   select `1String`0 in `2From`0 box and enter 
  440.   "Downloaded files:%CN" in the field beside it (note that %CN 
  441.   is used to write a carriage-return/newline pair to the file).
  442.   In the `2To`0 box, select the `1File`0 radio button and enter
  443.   "c:\new\newfiles.txt" in the field beside it.
  444.  
  445.   TIP: You can use the copy command to display text on the
  446.        screen. This may be useful when debugging a script.
  447.  
  448.  
  449.  see also: `4Variables`0
  450.  
  451.    ╔═════════════════════ Copy ════════════════════════╗
  452.    ║                                                   ║
  453.    ║      ┌ From ───────────────────────────────┐▄     ║
  454.    ║      │( ) Variable   String A             │█     ║
  455.    ║      │() String     Stock Quotes current  │█     ║
  456.    ║      │( ) Env Var                          │█     ║
  457.    ║      └─────────────────────────────────────┘█     ║
  458.    ║       ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀     ║
  459.    ║      ┌ To ─────────────────────────────────┐▄     ║
  460.    ║      │( ) Variable   String A             │█     ║
  461.    ║      │( ) Keyboard                         │█     ║
  462.    ║      │( ) Environment Table                │█     ║
  463.    ║      │() File       c:\stckqtes.txt·····  │█     ║
  464.    ║      │( ) Display   row=      col=         │█     ║
  465.    ║      │( ) Printer                         │█     ║
  466.    ║      └─────────────────────────────────────┘█     ║
  467.    ║       ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀     ║
  468.    ║                OK   ▄       Cancel  ▄           ║
  469.    ║              ▀▀▀▀▀▀▀▀▀▀      ▀▀▀▀▀▀▀▀▀▀           ║
  470.    ╚═══════════════════════════════════════════════════╝
  471.  
  472.  
  473. [GetKey]
  474. The `1GetKey`0 command is used to wait until the user presses
  475. a key before continuing with the next script command. The
  476. `1GetKey`0 command will halt any program that is running. 
  477.  
  478. A timeout value may be specified. It the timeout is non-zero,
  479. `1GetKey`0 will wait until either a key is hit or the 
  480. specified timeout value is reached.
  481.  
  482. `1Result`0 variable is set to: 
  483.         `3OK`0       : if user hit a key.
  484.         `3TimedOut`0 : if user didn't hit a key within the 
  485.                    given timeout period.
  486.  
  487. [EmptyBuff]
  488. `1WaitKeyBuff`0 will wait until all keys in the keyboard's
  489. type ahead buffer have been retrieved by the running program.
  490.  
  491. [WaitPrompt]
  492. `1WtDOSPrompt`0 will pause execution of the script until it
  493. returns to the DOS prompt.
  494.  
  495.  
  496. [MessageBox]
  497. `1MessageBox`0 is used to display up to four lines of text
  498. in a window. The message box can be positioned at any row 
  499. and column. The default is to center the window on the screen.
  500.  
  501. A timeout value may also be specified.
  502.  
  503. `1Result`0 variable is set to: 
  504.     `3OK`0       : if user acknowledged the message box by
  505.                    pressing ENTER.
  506.     `3Not OK`0   : if user canceled (hit ESC) message box.
  507.     `3TimedOut`0 : if message box wasn't acknowledged within
  508.                the given timeout period.
  509.  
  510. [Beeper]
  511. `1Beeper`0 will beep the computer's internal speaker.  The 
  512. sound heard depends on which type of beep is selected:
  513.  
  514.         Alarm
  515.         Peep
  516.         Whoop
  517.         Phasor
  518.         Error
  519.  
  520. [Reboot]
  521. `1Reboot`0 will cause the computer to reboot itself.
  522. A message box will appear and state that the computer
  523. is about to be rebooted. Pressing <Esc> will abort
  524. the reboot, pressing <Enter> will continue the reboot
  525. process. If a key is not pressed within 60 seconds,
  526. the `1GoHome`0 will go ahead and reboot the PC.
  527.  
  528. [PrintScrn]
  529. `1PrintScreen`0 will execute the computers print screen
  530. command. This will, usually, print the screen to the LPT1
  531. printer port.
  532.  
  533. `1Result`0 variable is set to: 
  534.         `3OK`0     : if screen printed succesfully
  535.         `3Not OK`0 : if a printer error was detected.
  536.  
  537. [Date]
  538. The `1DateStamp`0 command allows for a number of different date
  539. formats. The first edit field, "Enter the date format string",
  540. is used to specify how the date should be displayed. The text
  541. below the edit fields show what characters to use when
  542. specifying the date format.  The formatted date can be copied
  543. to any of the `1Script Variables`0 or the keyboard.
  544.  
  545. For example, say we want the date to appear in mm/dd/yy format
  546. (i.e.  03/19/94). Therefore, we would enter "M/D/y" in the
  547. date format field.  When GoHome plays this script, it will
  548. substitute the actual month, day, and year in place of the "M"
  549. "D" and, "y" characters.  Note that any characters other than
  550. "W" "m" "M" "D" "Y" and "y" will be displayed normally.  If
  551. you prefer the date to use dashes instead of slashes, type in
  552. "M-D-y".
  553.  
  554.      ╔═══════════════════ Date Edit ═════════════════════╗
  555.      ║                                                   ║
  556.      ║  Enter the date format string  W m D, Y        ▄  ║
  557.      ║  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ║
  558.      ║  Copy to  Keyboard  ▄      OK    ▄   Cancel  ▄    ║
  559.      ║  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀   ▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀    ║
  560.      ║  The following characters have special meaning    ║
  561.      ║  W  -> Week day (ie sun, mon, etc.)               ║
  562.      ║  M  -> Month as digits                            ║
  563.      ║  m  -> Month as 3 letter abrev.                   ║
  564.      ║  D  -> Day as digits.                             ║
  565.      ║  Y  -> Year as 4 digits                           ║
  566.      ║  y  -> Year as 2 digits                           ║
  567.      ║  $  -> To print the special characters above.     ║
  568.      ║  any other char is passed through.                ║
  569.      ║  For example,                                     ║
  570.      ║  W m D, y     =>  Tue Mar 19, 1993                ║
  571.      ║  M-D-y        =>  03-19-93                        ║
  572.      ║  Toda$y is m D, Y =>  Today is Mar 19, 1994       ║
  573.      ╚═══════════════════════════════════════════════════╝
  574.  
  575. [Time]
  576. The `1TimeStamp`0 command will copy a formatted time string to any 
  577. of the `1Script Variables`0 or the keyboard. The format for
  578. the time is specified by selecting the appropriate radio
  579. buttons in the `1TimeStamp`0 dialog box.
  580.  
  581.      ╔═══════════════════ Time Edit ════════════════════╗
  582.      ║                                                  ║
  583.      ║   ┌ Time Format ──┐▄   ┌ Time Modifier ──────┐▄  ║
  584.      ║   │  ( ) HH       │█   │  ( ) 12 hour        │█  ║
  585.      ║   │  (.) HH:MM    │█   │  (.) 12 hour AM/PM  │█  ║
  586.      ║   │  ( ) HH:MM:SS │█   │  ( ) 24 hour        │█  ║
  587.      ║   └───────────────┘█   └─────────────────────┘█  ║
  588.      ║    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ║
  589.      ║               Copy to  Keyboard  ▄               ║
  590.      ║               ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀               ║
  591.      ║                                                  ║
  592.      ║               OK    ▄       Cancel  ▄            ║
  593.      ║            ▀▀▀▀▀▀▀▀▀▀      ▀▀▀▀▀▀▀▀▀▀            ║
  594.      ╚══════════════════════════════════════════════════╝
  595.  
  596. [KeySpeed]
  597. The `1KeySpeed`0 command affects the rate at which keys are
  598. played back. If the value for `1KeySpeed`0 is -1, then the
  599. keys are played back at the same rate as they were recorded or
  600. entered. A value of 0 will play the keys back as fast as a
  601. program will accept them. Any other value indicates the number
  602. of timer ticks (1/18 of a second) to wait between keys. Note
  603. that for values other than -1, the recorded rate is ignored.
  604.  
  605.  
  606. [TakeSnapShot]
  607. The `1TakeSnapsht`0 command is used to save a portion of the 
  608. screen to a file.
  609.  
  610. `1TakeSnapsht`0 requires seven parameters.  You specify the
  611. top-most row, left-most column, width, and height for the
  612. section of the screen that should be saved, whether to save the
  613. video attributes (i.e. colors), allow the section of the
  614. screen to be selected interactively, and the name of the file
  615. to save the screen to. 
  616.  
  617. `1TakeSnapsht`0 doesn't have a detail dialog box because the
  618. parameters can be entered next to the command.  Rows (r) range
  619. from 1 to the number of lines on the screen, typically 25. 
  620. Columns (c) range from 1 to the number of columns that can be
  621. displayed, usually 80.  The width and height are denoted on
  622. the edit line by a "w" and "h" respectively.  If attributes
  623. are to be saved, enter a 1 the attrs field; to save just the
  624. text, enter 0.  Similarly, enter a 1 in the "i" (or
  625. interactive) field to allow the user to designate the portion
  626. of the screen interactively.  Finally, the file field is for
  627. the file name which accepts a string variable or a specific
  628. file name.
  629.  
  630. `1Result`0 variable is set to: 
  631.         `3OK`0       : if snapshot sucessfully taken.
  632.         `3Not OK`0   : if snapshot was unsucessful. This may
  633.                    be due to a disk error while attempting
  634.                    to save the screen or the user canceled an
  635.                    interactive snapshot by pressing ESC.
  636.  
  637. [PutSnapShot]
  638. The `1PutSnapShot`0 command is used to restore or display a 
  639. previous snapshot. 
  640.  
  641. `1Result`0 variable is set to: 
  642.         `3OK`0       : if snapshot sucessfully restored.
  643.         `3Not OK`0   : if snapshot was unsucessful in trying to
  644.                    restore the screen image. This may be 
  645.                    due to a corrupt snapshot file or the
  646.                    snapshot file wasn't found.
  647.  
  648.  
  649. [BlankScreen]
  650. The `1BlankScreen`0 command is used to set the number of 
  651. minutes of keyboard inactivity before the screen is blanked.
  652. A value of `10`0 for the minutes will disable screen 
  653. blanking.
  654.  
  655.  
  656. [Debug]
  657. The `1ScriptDebug`0 command will either turn off or on GoHome's
  658. debug display. If `1ScriptDebug`0 is on, GoHome will display the 
  659. current script command on the first row of the screen. It
  660. will also display the screen region selected for the 
  661. `1WaitAtPos`0 and `1WaitRelCrs`0 commands.
  662.  
  663. To turn `1ScriptDebug`0 on, enter a `21`0, else enter a `20`0.
  664.  
  665.  
  666. [Chain]
  667. `1ChainTo`0 to script allows you to run another script while playing
  668. back the current script.  As an example, you may have a simple
  669. script that just pop-ups a menu and depending on what menu item
  670. was selected, it will chain to another script file.
  671.  
  672. It is possible to pass parameters with the chain command just
  673. like you can do when initially starting a script. You can also
  674. pass data to the new script file throught the script strings.
  675.  
  676. Control does NOT return to the script that executed the chain.
  677. If the script file cannot be found, then the current script is
  678. aborted. 
  679.  
  680. `1Result`0 variable is set to: 
  681.         `3Not OK`0   : if file to chain to wasn't found or was
  682.                    not a valid GoHome script file.
  683.  
  684.  
  685. [ToggleKeys]
  686. The `1ToggleKeys`0 command is used to change the status of the
  687. `2Caps Lock`0, `2Num Lock`0, and `2Insert`0 keys.
  688.  
  689.  
  690.  
  691. [GetArg]
  692. `1GetArgument`0 gets a specified argument from the command line. 
  693. If an argument wasn't provided, then you will be prompted
  694. for the argument.  A timeout value may be specified in which
  695. if an argument isn't provided within 'timeout' seconds, the
  696. prompt dialog box is brought down and the script continues
  697. with the next script statement. 
  698.  
  699. Arguments may be specifed when prompted for the script file 
  700. to run or within `1GoSched`0 on the file name line. Arguments
  701. are separated by `1commas`0 (,).  The 0-th argument is the
  702. name of the script file.  Argument 1 is the value entered
  703. after the script file name.  For example, if you specify the
  704. following:
  705.  
  706.   `1backup.scr  c: d: e:, incremental`0
  707.  
  708. then
  709.   Argument 0 =>  backup.scr
  710.   Argument 1 =>  c: d: e:
  711.   Argument 2 =>  incremental
  712.   any other number will result in a dialog box being 
  713.   displayed and prompting the user for the argument.
  714.  
  715. If prompted and timeout occurs or ESC if entered, the
  716. argument will be assigned the `2Empty Str`0 value.
  717.  
  718. The maximum number of characters that can be entered for the
  719. script file name and all of its arguments is 80 from GoSched
  720. and 60 if the Playback script command is selected from
  721. `1GoHome's`0 main menu.
  722.  
  723. It is possible to use `1script macros`0 within arguments.
  724.  
  725. `1Result`0 variable is set to: 
  726.         `3OK`0       : if argument gotten from command line or
  727.                        from user.
  728.         `3Not OK`0   : if user canceled prompt dialog box
  729.         `3TimedOut`0 : if data wasn't entered at the prompt 
  730.                    dialog within the given timeout period
  731.  
  732.         ╔═══════════ Get Argument ═════════════╗
  733.         ║                                      ║
  734.         ║    Argument Number  1· ▄             ║
  735.         ║    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀             ║
  736.         ║    Prompt   Save to file         ▄   ║
  737.         ║    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀   ║
  738.         ║    Copy to  String A  ▄              ║
  739.         ║    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀              ║
  740.         ║    Timeout  0     ▄                  ║
  741.         ║    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀                  ║
  742.         ║                                      ║
  743.         ║           OK    ▄     Cancel  ▄      ║
  744.         ║        ▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀      ║
  745.         ╚══════════════════════════════════════╝
  746.  
  747.  
  748. [File]
  749. The `1File`0 menu is used to execute all script file related
  750. commands.  Script files can be created, opened, saved, saved
  751. to another file, inserted into the current script, or
  752. printed to a printer.
  753.  
  754.  
  755. [New]
  756. The `1New`0 menu item in the `1File`0 menu is used to create 
  757. a new script file. You will be prompted for a file name when
  758. the file is saved.
  759.  
  760. [Open...]
  761. The `1Open`0 menu item in the `1File`0 menu is used to edit
  762. a script file that already exists. The current script file
  763. will be saved to disk, if necessary.
  764.  
  765.  
  766. [Save]
  767. The `1Save`0 menu item in the `1File`0 menu is used to save
  768. changes that were made to the script.
  769.  
  770. [SaveAs...]
  771. The `1SaveAs...`0 menu item in the `1File`0 menu is used to save
  772. the current script to a file with a different name.
  773.  
  774. [Insert File]
  775. The `1Insert File`0 menu item in the `1File`0 menu is used to 
  776. insert the contents of another script file into the current
  777. script. The contents are added into the current script at the
  778. row that is currently highlighted.
  779.  
  780. `1GoScript`0 will attempt to merge all labels and label 
  781. references of the script being inserted with those of the
  782. script currently being edited. If the same label is defined
  783. by both scripts, `1GoScript`0 will notify you of the
  784. situation. It will not attempt to rename the labels, it is
  785. up to you to do so.  
  786.  
  787.  
  788. [Print...]
  789. The `1Print...`0 menu item in the `1File`0 menu is used to print
  790. the script to a file. When selected, you will be prompted to 
  791. select the printer port that you printer is using.
  792.  
  793. [Exit]
  794. The `1Exit`0 menu item in the `1File`0 menu is used to quit
  795. `1GoScript`0. If the script was modified, `1GoScript`0 will 
  796. prompt to save the file before exiting. 
  797.  
  798. [Edit]
  799. The `1Edit`0 menu is used to cut/paste script items to/from
  800. the Clipboard, delete the current script item, and to add
  801. and delete labels used in the script.
  802.  
  803. [Cut]
  804. The `1Cut`0 menu item in the `1Edit`0 menu will delete the
  805. current script item from the script and copy it to the 
  806. Clipboard. Once it is in the Clipboard, use `1Paste`0 to
  807. copy it to the current location in the script.
  808.  
  809. [Copy]
  810. The `1Copy`0 menu item in the `1Edit`0 menu will copy the
  811. current script item from the script and copy it to the 
  812. Clipboard. Once it is in the Clipboard, use `1Paste`0 to
  813. copy it to the current location in the script. Note this 
  814. `1Copy`0 is different from `1Cut`0 in that it does not delete
  815. the script item from the script.
  816.  
  817. [Paste]
  818. The `1Paste`0 menu item in the `1Edit`0 menu is used to insert
  819. copy the contents of the Clipboard into the script at the 
  820. current location.
  821.  
  822. [Delete Line]
  823. The `1Delete`0 menu item in the `1Edit`0 menu is used to remove
  824. the current script item from the script. The script item is 
  825. not saved in the Clipboard.
  826.  
  827. see also `4Cut`0, `4Copy`0, and `4Paste`0
  828.  
  829. [Labels...]
  830. The `1Labels...`0 menu item in the `1Edit`0 menu is used to edit
  831. the list of labels used in the script. The `1Labels Maintenance`0
  832. dialog box will be presented so that labels may be added or 
  833. deleted.
  834.  
  835.      ╔════════════ Label Maintenance ═══════════╗
  836.      ║                                          ║
  837.      ║  ┌────── Label ──────┐                   ║
  838.      ║  │- END              ▓        Add... ▄   ║
  839.      ║  │                   ▓      ▀▀▀▀▀▀▀▀▀▀   ║
  840.      ║  │                   ▓       Remove  ▄   ║
  841.      ║  │                   ▓      ▀▀▀▀▀▀▀▀▀▀   ║
  842.      ║  │                   ▓        Use    ▄   ║
  843.      ║  │                   ▓      ▀▀▀▀▀▀▀▀▀▀   ║
  844.      ║  │                   ▓        Done   ▄   ║
  845.      ║  └──────────────────        ▀▀▀▀▀▀▀▀▀▀   ║
  846.      ║   -: label not in script                 ║
  847.      ╚══════════════════════════════════════════╝
  848.  
  849.  
  850.  
  851. [Add]
  852. The `1Add`0 menu is used to add script commands.
  853.  
  854. [Detail]
  855. The `1Detail`0 menu is used to modify a script command. Not
  856. all script commands have a detail dialog box. A `2+`0 sign
  857. will be displayed to the right of the current script command
  858. if it has a detail dialog box.
  859.  
  860.  
  861. [Help]
  862. The `1Help`0 menu consists of commands to invoke the help 
  863. system or to display program information.
  864.  
  865. [Topics]
  866. The `1Topics`0 menu item will display the `1Help`0 topics for
  867. `1GoScript`0.
  868.  
  869. [Help On Help]
  870. The `1Help On Help`0 menu item will display help for the
  871. current script command. Pressing `2F1`0 will also do the same.
  872.  
  873.  
  874.  
  875. [About]
  876. The `1About`0 menu item displays information about `1GoScript`0
  877. and the number of lines in the script and how much memory is
  878. left for the script.
  879.  
  880. @@EndHelp
  881.