home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / n / newsflash / !FileBase / !ScrptComp / !Help < prev    next >
Encoding:
Text File  |  1996-02-22  |  18.7 KB  |  368 lines

  1. !Help file for NewsFlash script file compiler
  2. =============================================
  3.  
  4. Compiler Commands
  5. -----------------
  6.  
  7. Command:                                    Description:
  8.  
  9. Output commands:
  10.  
  11. - CLS                                       Clear the screen
  12. - PRINT <exp>                               Output to the screen (no new line
  13.                                             sent)
  14. - FG <exp>                                  Set foreground colour
  15. - BFG <exp>                                 Set bold foreground colour
  16. - BG <exp>                                  Set background colour
  17. - BOLD                                      Set bold foreground
  18. - FLASH                                     Set flashing foreground
  19. - STD                                       Set standard cols (white on black)
  20. - NL                                        Send a newline
  21. - CLL                                       Clear line
  22. - LOCATE <x>,<y>                            Set cursor xy coords
  23. - TAB <x>                                   Set cursor x coord on current line
  24. - ATTR <fg>,<bg>                            Set colour attributes
  25. - BATTR <fg>,<bg>                           Set colour attributes with bold
  26. - STARTMORE                                 Mark the start of more prompting
  27. - ENDMORE                                   Mark the end of more prompting
  28. - FORMATNUM <num>,<format>,<len> TO <dest>  Format a number and convert to a
  29.                                             string.
  30.                                             
  31.                                             Formats:
  32.                                             
  33.                                             0 - Decimal
  34.                                             1 - Hex
  35.                                             2 - Binary
  36.                                             3 - Spaced decimal
  37.                                             (length ignored)
  38.                                             4 - Risc OS file size
  39.                                             (length =0 or 1)
  40.                                             
  41. - FLUSHIN                                   Flush input
  42. - FLUSHOUT                                  Flush output
  43.  
  44. Input commands:
  45.  
  46. - INPUT <destvar>[,<maxlen>[,<mask>]]       Get input from the user
  47. - GET[D] <destvar>[,<filter>]               Get a single char from the user
  48.                                             (and use first letter of filter as
  49.                                             default)
  50. - INKEY <destvar>                           Get a char but dont wait
  51. - ANYKEY                                    Wait for keypress
  52.  
  53. IO commands:
  54.  
  55. OPENDEVICE <Device type>,<Info> TO <handle> Create a new IO device
  56. CLOSEDEVICE <handle>                        Close an IO device
  57. SETDEVICE <handle>                          Set current IO device
  58. RESETDEVICE                                 Set to default IO device
  59. OUTPUTBYTE <handle>,<byte> TO <Failed>     Output to specific IO device
  60. INPUTBYTE <handle> TO <byte>                Read from specific IO device
  61.  
  62. Flow commands:
  63.  
  64. - IF <exp> [THEN] ... [ELSE ...]            Single line IF statement
  65. - IF <exp> THEN                             Multi line IF statement
  66.   ...
  67.   [ELSE
  68.   ...]
  69.   ENDIF
  70. - LABEL <label>                             Set a label
  71. - JUMP <label>                              Jump to label
  72. - RUN <filename>                            Run a file and return
  73. - GOTO <filename>                           Run a file
  74. - REPEAT                                    Start a REPEAT UNTIL loop
  75.   ...
  76.   UNTIL <exp>
  77. - END                                       End current program.
  78. - GOSUB <label>                             Call a subroutine
  79. - SUB <label>                               Mark the start of a subroutine
  80. - ENDSUB                                    Mark the end of a subroutine
  81. - INCLUDE                                   Compile a file but don't run it
  82. - SCRIPT <name>                             Run uncompiled script
  83.  
  84. Variable commands:
  85.  
  86. - LET <variable> = <exp>                    Assign a value to a variable
  87. - LEFT <dest> FROM <variable>,<offset>      LEFT$ function
  88. - CREATEBLOCK <size> TO <dest>
  89. - RESIZEBLOCK <block>,<newsize> TO <newsize>
  90. - LOSEBLOCK <block>        
  91.  
  92. File commands:                              Description:
  93.  
  94. - SEND <filename>,<datatype>                Output a file to the screen.
  95.                                             Data types:
  96.                                             
  97.                                             0 - Raw data (no conversion)
  98.                                             1 - ASCII data (LF signals new
  99.                                                 line)
  100.                                             2 - ANSI data (filter esc codes
  101.                                                 if not supported)
  102.                                             3 - ArcBBS 'TYPE' file.
  103.                                             4 - Uncompiled script
  104.                                                 
  105. - CLEARRECORD                               Clear current serial record.
  106. - RECORDPRINT <string>                      Write a string to the record.
  107. - WRITERECORD <filename>                    Write the record to disk
  108. - OSCLI <command>                           Perform *COMMAND
  109. - LOG <string>                              Log a string to the NF log file
  110.  
  111. BBS commands:
  112.  
  113. - FINDUSER <exp>                            Search for the specified user and
  114.                                             set user number. User number is
  115.                                             set to 0 if user could not be
  116.                                             found.
  117. - CREATEUSER                                Create a new user.
  118. - HASCALLED                                 Increment number of times a user
  119.                                             has called and reset logon times
  120. - REPORT <exp>                              Set the current activity of the
  121.                                             user.
  122. - UPLOAD <filenumber>,<protocol>            Allow the user to upload a file
  123.                                             to the BBS.
  124. - DOWNLOAD <filenumber>,<protocol>          Allow the user to download a file
  125.                                             from the BBS.
  126. - SYSOPCHAT <destvar> FROM <reason>,<timeout>Request a chat with the sysop and
  127.                                             store the result.
  128. - SETCHAT <name>,<tfg>,<tbg>,<mfg>,<mbg>,<bfg>,<bbg>
  129. - LOGOFF                                    Disconnect the user
  130. - CHECKPASSWORD <dest>                      Allows the user to enter their
  131.                                             password. Returns a non-zero
  132.                                             number to indicate it was entered
  133.                                             correctly.
  134. - CHANGEPASSWORD                            Allows the user to change their
  135.                                             password
  136. - SETPASSWORD                               Allows the a new user to enter their
  137.                                             password
  138.  
  139. Filebase commands:
  140.  
  141. - OPENFILEBASE                              Open file base to allow operations.
  142. - CLOSEFILEBASE                             Close file base
  143. - READFAREA <areanumber>                    Set relevent variables.
  144. - READFILE <filenumber>                     Set relevent variables.
  145. - CLEARTAG                                  Clear users taglist
  146. - TAGFILE <filenumber>                      Add a file to tag list.
  147. - READTAG <tag> TO <dest>                   Read in the details of a tagged file.
  148. - REMOVETAG <tag>                           Remove a tagged file.
  149. - SHOWDESCRIPTION <pointer>                 Show file description
  150. - SETLONGDESCRIPTION <filenumber>           Set's the long description of a file
  151. - SETSHORTDESCRIPTION <filenumber> <exp>    Set's the short description of a file
  152. - FILESEARCH <filearea/0>,<code>,<# of files to
  153.   search>,<search string>,<filename/keyword (flag)>
  154.   TO <dst. files searched>,<result>,<next call>
  155. - FINDFILE <dest> FROM <filearea>,<filename/num>
  156. - DELETEFILE <filenum>                      Delete's a file (permenantly!!)
  157. - BATCHSTART <protocol>                     Start a batch transfer
  158. - BATCHSEND <filenum> <protocol> TO <res>   Send a file
  159. - BATCHFINISH <protocol>                    Finish a batch transfer
  160. - READFILEBASE <filebase>                   Read file base details
  161. - READMESSAGEBASE <messagebase>             Read message base details               
  162.  
  163. Door commands:
  164.  
  165. - RUNAPP <exp>                              Perform *<exp> <linenumber>
  166. - STARTDOOR <exp>                           Signal a door (already loaded) to
  167.                                             start using numeric or text ID.
  168. - STARTARCBBSDOOR <exp>                     Start an ArcBBS door.
  169. - STARTRISCBBSDOOR <exp>                    Start a RiscBBS door.
  170. - RUNTASK <exp>                             Same as RBBS's 'runtask'
  171.  
  172. Misc commands:
  173.  
  174. - READLINE <line> TO <dest1>,<dest2>,<dest3>Read the baud rate, user number
  175.                                             and action of and user online.
  176. - READUSER <usernum>,<id> TO <dest>         Read any info about any user.
  177. - READTASK <code> TO <dest1>,<dest2>,<dest3>Enumerate all wimp tasks
  178.   (also READUSERTASK and READMODULETASK).
  179. - RANDOMIZE <seed>                          Set the random number seed
  180.  
  181. - SENDFILE <filename>,<protocol>,<fname>    Send a file
  182. - SCANDIR <pathname>                        Allow user to download files
  183.  
  184. Message base commands:
  185.  
  186. - OPENMESSAGEBASE                           Open message base to allow operations.
  187. - CLOSEMESSAGEBASE                          Close message base
  188. - READMAREA <areanumber>                    Set relevent variables.
  189. - READMESSAGE <filenumber>                  Set relevent variables.
  190.  
  191. - WRITEMESSAGE <style>                      Allows the user to write a message
  192. - POSTMESSAGE <area>,<subject>,<from>,<user>,[<add>]  Posts a message
  193. - LOADMESSAGE <number>                      Loads a message into memory
  194. - SHOWMESSAGE <filter>                      Shows current message
  195. - DELETEMESSAGE <number>                    Delete a message
  196. - MESSAGEOP <number> <op>                   Performs some ops on message
  197.  
  198.   Op:
  199.   
  200.   0 - Message has been read (by anyone)
  201.   1 - Message has been read by recipient
  202.   
  203. - ATTACHFILE <message> <file>               Attach a file to a message
  204. - SETADDRESS <address>                      Set fido address of BBS.
  205. - QUOTEMESSAGE <number>                     Load in a message for quoting
  206. - CQUOTEMESSAGE <number>                    Copy and quote a message
  207. - CLEARQUOTE                                Clear the current quoted message
  208. - CLEARMESSAGE                              Clear the current message
  209. - CLEARLIST                                 Clear list of scanned messages
  210. - SCANAREA <area>,<usernumber>              Scan for messages
  211. - READSCANNED <number> TO <dest>            Read the number of a scanned
  212.                                             message
  213. - CLEARSCANNED <number>                     Clear a message from the list
  214.  
  215. Temporary commands:
  216.  
  217. - FREETYPE                                  Echo text to screen (to allow a chat)
  218. - ONLINEUSERLIST                            List all users online.
  219.  
  220. System variables:
  221.  
  222. - USERNAME                                  User name of user logged on.
  223. - USERNUMBER                                User number of user logged on.
  224. - PASSWORD                                  Password of user logged on.
  225. - AREANAME                                  Current action/area of user (can
  226.                                             be set with REPORT command).
  227. - BAUDRATE                                  DCE rate of user logged on.
  228. - LINE                                      Line number
  229. - USERLEVEL                                 User level of user logged on.
  230. - LOGONTIME                                 Max logon time of user logged on.
  231.                                             (in mins)
  232. - TERMINAL                                  Terminal type of user logged on.
  233. - CLEARING                                  User has screen clearing?
  234. - MORE                                      User has more prompting?
  235. - REGISTERED                                User is registered?
  236. - CALLED                                    Number of times user has called
  237. - TIMELEFT                                  Number of cs left
  238. - TIMEONLINE                                Amount of time user has been on
  239.                                             this call. (in cs)
  240. - LASTCALLED                                Date user last called.
  241. - MSGAREA                                   Current message area
  242. - MESSAGEBASE                               Current message base number
  243. - FILEBASE                                  Current file base number
  244. - FILEAREA                                  Current file area
  245. - TRUE                                      Non-zero integer (-1)
  246. - FALSE                                     Zero integer (0)
  247. - DLINES                                    Number of display lines.
  248. - ULOADF                                    Number of files uploaded
  249. - ULOADK                                    Number of K's uploaded.
  250. - DLOADF                                    Number of file downloaded.
  251. - DLOADK                                    Number of K's downloaded.
  252. - ULOADR                                    Number of files user can upload
  253.                                             for every...
  254. - DLOADR                                    ...files downloaded.
  255. - ADDLINE1                                  Address of user..
  256. - ADDLINE2
  257. - ADDLINE3
  258. - POSTCODE                                  Postcode of user.
  259. - VOICEPHONE                                Voice phone number of user.
  260. - DATAPHONE                                 Data phone number of user.
  261. - RND                                       Random number (limit set by
  262.                                             RND=limit)
  263. - TASKLOAD                                  Number of tasks running
  264. - FREEMEM                                   Amount of free memory
  265. - USEDMEM                                   Amount of used memory
  266.  
  267. - TIMER                                     100Hz timer
  268. - TIME                                      System time
  269. - DATE                                      System date
  270. - XPOS                                      Current x position of cursor
  271. - STYLE                                     Menu style (0-15)
  272. - RATING                                    User rating (0-15)
  273.  
  274. - NFVERSION                                 Version of NewsFlash
  275. - ASSMDATE                                  Date of assembly
  276. - OSVERSION                                 Version of OS
  277. - FEVERSION                                 Version of NF front end
  278. - RBHAND                                    Risc BBS Task Handle
  279. - PAGER                                     Sysop chat pager
  280. - SYSOPNAME                                 Sysops name
  281. - FNAME                                     Users first name
  282. - LNAME                                     Users last name
  283. - INITIALS                                  Users initials
  284.  
  285. - CANKNOW                                   Constant (2^0)
  286. - CANVIEW                                   Constant (2^1)
  287. - CANWRITE                                  Constant (2^2)
  288. - CANREAD                                   Constant (2^3)
  289.  
  290. - SYSOP                                     User is a sysop
  291. - LOCAL                                     Indicates a local logon
  292.  
  293. File base variables:
  294.  
  295. - FILEAREAS                                 Number of file areas
  296. - CURRENTFILEBASE                           Flag for current file area
  297. - FILEBASEACCESS                            File base access flags
  298. - FILEBASENAME
  299.  
  300. - FILEAREANAME                              Name of current filearea
  301. - FILEAREAFILES                             Number of files in this filearea
  302. - FILEAREASIZE                              Size (in bytes) of this filearea
  303. - FILEAREAACCESS                            Access rights for user
  304. - FILEAREABASES                             File bases area belongs to
  305.  
  306. - FILEBASENAME                              Name of current file
  307. - FILEBASESIZE                              Size of current file (K)
  308. - FILEBASEUSER                              User number of who uploaded
  309. - FILEBASETIMES                             Number of times downloaded
  310. - FILEBASEDATE                              Date file was uploaded on
  311. - FILEBASEFLAGS                             Flags for file
  312. - FILEBASEAREA                              File area of file
  313.  
  314. - FIRSTFILE                                 First file in current file area
  315. - LASTFILE                                  Last file in current file area
  316. - NEXTFILE                                  Next file in current file area
  317. - PREVFILE                                  Previous file in current file area
  318. - SHORTD                                    Pointer to short description
  319. - LONGD                                     Pointer to long description
  320.  
  321. - TAGGEDFILES                               Number of tagged files.
  322.  
  323. Message base variables:
  324.  
  325. - MESSAGEAREAS                              Number of message areas
  326. - CURRENTMESSAGEBASE                        Flag for current message base
  327.  
  328. - MESSAGEBASEACCESS                         Message base access flags 
  329. - MESSAGEBASENAME
  330.  
  331. - MESSAGEAREANAME                           Name of current messagearea
  332. - MESSAGEAREAMAIL                           Number of messages in this message area
  333. - MESSAGEAREASIZE                           Size (in bytes) of this message area
  334. - MESSAGEAREAACCESS                         Access rights for user
  335. - MESSAGEAREABASES                          Message bases area belongs to
  336.  
  337. - MESSAGESIZE                               Size of current message
  338. - MESSAGETYPE                               Type of current message
  339. - MESSAGEFILE                               File attached to current message
  340.                                             (0 for none)
  341.  
  342. - MESSAGEAUTHORNUM                          Author number of current message
  343.                                             (local only)
  344. - MESSAGERECIPIENTNUM                       User number of recipient
  345.                                             (local only)
  346.  
  347. - MESSAGEAUTHOR                             Author name of current message
  348. - MESSAGERECIPIENT                          Name of recipient
  349.  
  350. - MESSAGEREAD                               Non-zero if read by recipient
  351. - MESSAGEDOWNLOADED                         Non-zero if downloaded by recipient
  352. - MESSAGETIMESREAD                          Number of times message has been read
  353.  
  354. - MESSAGEDATE                               Date message was written on
  355.  
  356. - NEXTMESSAGE                               Next message in this area
  357. - PREVMESSAGE                               Previous message in this area
  358.  
  359. - MESSAGEFROM                               Address of message
  360. - MESSAGETO                                 Dest. address
  361. - MESSAGEFROMAREA                           Message area of this message
  362.  
  363. - BBSADDRESS                                Address of this BBS
  364.  
  365. - SCANNEDMESSAGES                           Number of messages scanned
  366.  
  367.  
  368.