home *** CD-ROM | disk | FTP | other *** search
/ boe.pres.k12.wv.us / boe.pres.k12.wv.us.zip / boe.pres.k12.wv.us / Utilities / Finishlynx / FinishLynx-8.00.exe / Microtab16-9.lss < prev    next >
Text File  |  2009-01-15  |  12KB  |  314 lines

  1. ; Defaults: 1200,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-2004 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; script for microtab16, 1 line, 9 characters
  10. ; last modified by Hugues Lacroix 12 Oct 04
  11. ; added Horizontal Paging
  12. ;Modified by KH & KS January 14, 2009
  13. ;Inserted nine spaces in each transmission to clear old data from unused digit locations
  14. ;on new style Microtab displays with variable width font.
  15. ;
  16. ; Notes:
  17. ;  + Empty lines and lines that start with a semicolon are ignored.
  18. ;  + Lines that start with two semicolons indicate a section header.
  19. ;    They must be one of the following:
  20. ;      ;;Initialization
  21. ;      ;;TimeRunning
  22. ;      ;;TimeStopped
  23. ;      ;;TimeGun
  24. ;      ;;TimeBreak
  25. ;      ;;TimeUpdate
  26. ;      ;;Wind
  27. ;      ;;TimeOfDay
  28. ;      ;;ResultsHeader
  29. ;      ;;ResultsTrailer
  30. ;      ;;Result
  31. ;      ;;MessageHeader
  32. ;      ;;MessageTrailer
  33. ;      ;;Message
  34. ;    Sections may be omitted, appear in any order, and occur more than once.
  35. ;  + Format lines must begin with a value indicating which variable
  36. ;    they want to access. The special code \00 indicates that no variable
  37. ;    is being requested. If a variable is requested it will be inserted where
  38. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  39. ;    specifier in lines requesting a variable and no other printf format
  40. ;    specifiers may appear. Remember, lines requesting a variable are used as
  41. ;    a printf format string and therefore must behave as such. Lines not 
  42. ;    requesting variables (code \00) can do whatever they want as these 
  43. ;    lines are not fed to a printf statement.
  44. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  45. ;    digit. Note that h must be lowercase.
  46. ;  + Format lines can have the following commands embedded in them.
  47. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  48. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  49. ;     \Ui\hh  Set the 'U' value to register[hh].
  50. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  51. ;     \Xi\hh  Set the 'X' value to register[hh].
  52. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  53. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  54. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  55. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  56. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  57. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  58. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  59. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  60. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  61. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  62. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  63. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  64. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  65. ;             next {X|<eol>} characters.
  66. ;              \U\00  IDS checksum.
  67. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  68. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  69. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  70. ;              \U\00  Binary little-endian (Intel byte order).
  71. ;              \U\01  Binary big-endian (Motorola byte order).
  72. ;              \U\02  ASCII text right justified space padded.
  73. ;              \U\03  ASCII text right justified zero padded.
  74. ;              \U\04  ASCII text left justified space padded.
  75. ;              \U\05  ASCII text left justified zero padded.
  76. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  77. ;              \U\00  ASCII text base 10.
  78. ;              \U\01  Binary little-endian (Intel byte order).
  79. ;              \U\02  Binary big-endian (Motorola byte order).
  80. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  81. ;              \P\00  Reverse characters.
  82. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  83. ;                       is the current character position on entry and the
  84. ;                       next character position on exit.
  85. ;              \P\02  Convert characters to Daktronics AllSport format.
  86. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  87. ;             before the cursor or until the string contains X characters.
  88. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  89. ;             at the cursor or until the string contains X characters.
  90. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  91. ;             contains X characters.
  92. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  93. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  94. ;             beginning of the line if zero).
  95. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  96. ;             end of the line if zero).
  97. ;    Note that numbers 0 thru 9 can be entered directly for single character
  98. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  99. ;    '\=\01' is the same as '\=1'.
  100. ;  + Be very careful about whitespace in each format line. Characters other
  101. ;    than '%s' specifiers and embedded commands and values will be sent
  102. ;    exactly as they appear on the line. This means, for instance, that using
  103. ;    tabs to make a line 'look right' in you favorite editor will cause
  104. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  105. ;    spaces (probably not what you wanted).
  106. ;
  107. ; The format lines follow.
  108.  
  109. ;;Initialization
  110. ; This is sent once to initialize the scoreboard.
  111. ; Line codes:
  112. ;  \00 No variable
  113. ;
  114. ; Stops scrolling message and sends 9 spaces to board.
  115. \00\X0\=2\1bAS00         \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  116.  
  117. ;;TimeRunning
  118. ; This is sent approximately 10 times per second.
  119. ; Line codes:
  120. ;  \00  No variable
  121. ;  \01  Formatted time
  122. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  123. ; Setting register[0] to 1 in a format line will cause that line and
  124. ; subsequent lines to only be sent once per second (when the second's 
  125. ; digit changes) instead of approximately 10 times per second. Setting
  126. ; register[0] to 0 will resume normal operation for remaining lines.
  127. ;
  128. ; display " mm:ss.d "
  129. \01\=0\X0\=2\1bAS00 %12.12s\B2\L7\B3\R0 \03\L0\U2\F2\R0\X\7f\&2\U0\O2
  130.  
  131. ;;TimeStopped
  132. ; This is sent when the time is stopped by a beam break.
  133. ; Line codes are identical to the TimeRunning line codes.
  134. ;
  135. ; display " mm:ss.dd"
  136. \01\X0\=2\1bAS00 %12.12s\B1\L8\B3\R0\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  137.  
  138. ;;TimeGun
  139. ; This is sent when a gun signal is received.
  140. ; Line codes are identical to the TimeRunning line codes.
  141.  
  142. ;;TimeBreak
  143. ; This is sent when a beam break is recieved.
  144. ; Line codes are identical to the TimeRunning line codes.
  145.  
  146. ;;TimeUpdate
  147. ; This is sent approximately 10 times per second.
  148. ; Line codes are identical to the TimeRunning line codes.
  149.  
  150. ;;Wind
  151. ; This is sent in the time stream when a wind reading is received.
  152. ; Line codes:
  153. ;  \00  No variable
  154. ;  \01  Formatted wind (same format as ResultsHeader wind)
  155. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  156.  
  157. ;;TimeOfDay
  158. ; This is sent when the 'Send time of day' option is checked in the
  159. ; Scoreboard pull down menu.
  160. ; Line codes are identical to the TimeRunning line codes.
  161. ;
  162. ; display " hh:mm:ss"
  163. \01\=0\X0\=2\1bAS00 %12.12s\B4\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  164.  
  165. ;;ResultsHeader
  166. ; This is sent once each time the scoreboard is updated with results. It
  167. ; is sent before any result lines are sent.
  168. ; Line codes:
  169. ;  \00  No variable
  170. ;  \01  OFFICIAL/UNOFFICIAL string
  171. ;  \02  Event name
  172. ;  \03  Wind
  173. ;  \04  Event number
  174. ;  \05  Round number
  175. ;  \06  Heat number
  176. ;  \07  AUTO/MANUAL start type
  177. ;  \08  Number of participants
  178. ;
  179. \00\X0\=2\1bAS00\L0\U2\F2\R0
  180.  
  181. ;;ResultsTrailer
  182. ; This is sent once each time the scoreboard is updated with results. It
  183. ; is sent after all result lines are sent.
  184. ; Line codes are identical to the ResultsHeader line codes.
  185. ;
  186. ; trailer for results scrolling string
  187. \00\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  188.  
  189. ;;StartList[1]
  190. ; This is sent once for each result line displayed on the scoreboard.
  191. ; Line codes:
  192. ;  \00  No variable
  193. ;  \01  Place
  194. ;  \02  Lane
  195. ;  \03  Id
  196. ;  \04  Name
  197. ;  \05  Affiliation
  198. ;  \06  Time
  199. ;  \07  Delta Time
  200. ;  \08  Cumulative Split Time
  201. ;  \09  Last Split Time
  202. ;  \0a  Laps To Go
  203. ;  \0b  License
  204. ;  \0c  ReacTime
  205. ;  \0d  Speed
  206. ;  \0e  Pace
  207. ; Register[0] is initialized with the index of the current result line and
  208. ; will range from 0 through PageSize - 1.
  209. ;
  210. ; Horizontal Page 1 - Lane and Name
  211. \02%-2.2s\L0\U2\F2\R0
  212. ;\04%7.7s\L0\U2\F2\R0
  213. \04%7.7s\I9\L0\U2\F2\R0
  214.  
  215. ;StartList[2]
  216. ; This is sent once for each result line displayed on the scoreboard.
  217. ; Line codes:
  218. ;  \00  No variable
  219. ;  \01  Place
  220. ;  \02  Lane
  221. ;  \03  Id
  222. ;  \04  Name
  223. ;  \05  Affiliation
  224. ;  \06  Time
  225. ;  \07  Delta Time
  226. ;  \08  Cumulative Split Time
  227. ;  \09  Last Split Time
  228. ;  \0a  Laps To Go
  229. ;  \0b  License
  230. ;  \0c  ReacTime
  231. ;  \0d  Speed
  232. ;  \0e  Pace
  233. ; Register[0] is initialized with the index of the current result line and
  234. ; will range from 0 through PageSize - 1.
  235. ;
  236. ; Horizontal Page 2 - Affiliation
  237. ; To activate this page - Add semi-colon to Section Header and remove semi-colon from line below
  238. ;\05%9.9s\I9\R0\L0\U2\F2\R0
  239.  
  240. ;;Result[1]
  241. ; This is sent once for each result line displayed on the scoreboard.
  242. ; Line codes:
  243. ;  \00  No variable
  244. ;  \01  Place
  245. ;  \02  Lane
  246. ;  \03  Id
  247. ;  \04  Name
  248. ;  \05  Affiliation
  249. ;  \06  Time
  250. ;  \07  Delta Time
  251. ;  \08  Cumulative Split Time
  252. ;  \09  Last Split Time
  253. ;  \0a  Laps To Go
  254. ;  \0b  License
  255. ;  \0c  ReacTime
  256. ;  \0d  Speed
  257. ;  \0e  Pace
  258. ; Register[0] is initialized with the index of the current result line and
  259. ; will range from 0 through PageSize - 1.
  260. ;
  261. ; Horizontal Page 1 - Place and Name
  262. \01%-2.2s\L0\U2\F2\R0
  263. \04%7.7s\I9\L0\U2\F2\R0
  264.  
  265.  
  266. ;;Result[2]
  267. ; This is sent once for each result line displayed on the scoreboard.
  268. ; Line codes:
  269. ;  \00  No variable
  270. ;  \01  Place
  271. ;  \02  Lane
  272. ;  \03  Id
  273. ;  \04  Name
  274. ;  \05  Affiliation
  275. ;  \06  Time
  276. ;  \07  Delta Time
  277. ;  \08  Cumulative Split Time
  278. ;  \09  Last Split Time
  279. ;  \0a  Laps To Go
  280. ;  \0b  License
  281. ;  \0c  ReacTime
  282. ;  \0d  Speed
  283. ;  \0e  Pace
  284. ; Register[0] is initialized with the index of the current result line and
  285. ; will range from 0 through PageSize - 1.
  286. ;
  287. ; Horizontal Page 2 - Time
  288. \06%12.12s\B1\L8\B3 \R0\I9\L0\U2\F2\R0
  289. ;\06%12.12s\L9\B3 \R0\L0\U2\F2\R0
  290.  
  291. ;;MessageHeader
  292. ; This is sent once each time the scoreboard is updated with the message. It
  293. ; is sent before any message lines are sent.
  294. ; Line codes:
  295. ;  \00  No variable
  296. ;
  297. \00\X0\=2\1bAS00\L0\U2\F2\R0
  298.  
  299. ;;MessageTrailer
  300. ; This is sent once each time the scoreboard is updated with the message. It
  301. ; is sent after all message lines are sent.
  302. ; Line codes are identical to the MessageHeader line codes.
  303. ;
  304. \00\03\L0\U2\F2\R0\X\7f\&2\U0\O2
  305.  
  306. ;;Message
  307. ; This is sent once for each message line displayed on the scoreboard.
  308. ; Line codes:
  309. ;  \00  No variable
  310. ;  \01  Text
  311. ; Register[0] is initialized with the index of the current message line and
  312. ; will range from 0 through <number of lines> - 1.
  313. \01%9.9s\I9\L0\U2\F2\R0
  314.