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 / Example2.lss < prev    next >
Text File  |  2010-08-23  |  15KB  |  382 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script Version 2.0
  4. ;
  5. ; Copyright (c) 1995-2007 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; Notes:
  10. ;  + Empty lines and lines that start with a semicolon are ignored.
  11. ;
  12. ;  + Lines that start with two semicolons indicate a section header.
  13. ;    Sections may be omitted, appear in any order, and occur more than once.
  14. ;    The current section headers and their valid group codes are:
  15. ;      ;;Initialization
  16. ;        \10 \13 \17
  17. ;      ;;TimeArmed
  18. ;      ;;TimeRunning
  19. ;      ;;TimePaused
  20. ;      ;;TimeStopped
  21. ;      ;;TimeGun
  22. ;      ;;TimeBreak
  23. ;      ;;TimeUpdate
  24. ;      ;;TimeOfDay
  25. ;        \11 \13 \17
  26. ;      ;;Wind
  27. ;        \12 \13 \17
  28. ;      ;;StartListHeader
  29. ;      ;;StartListTrailer
  30. ;      ;;StartedHeader
  31. ;      ;;StartedTrailer
  32. ;      ;;ResultsHeader
  33. ;      ;;ResultsTrailer
  34. ;        \13 \17
  35. ;      ;;StartList
  36. ;      ;;Started
  37. ;      ;;Results (or ;;Result)
  38. ;        \13 \14 \17
  39. ;      ;;MessageHeader
  40. ;      ;;MessageTrailer
  41. ;        \13 \15 \17
  42. ;      ;;Message
  43. ;        \13 \15 \16 \17
  44. ;    The StartList*, Started*, and Results* sections may have an optional
  45. ;    page number contained in square brackets immediately following the
  46. ;    section name. If more than one page is defined for a section then each
  47. ;    page will be shown, in order, when paging is enabled. Note that page
  48. ;    numbers do not need to be contiguous; they are simply used to establish
  49. ;    the order of pages. If a page number is omitted then a 0 (zero) is
  50. ;    assumed.
  51. ;    Some sections can be omitted and they will "fall back" to other
  52. ;    sections. TimeOfDay falls back to TimeRunning. TimeArmed falls back to
  53. ;    TimeRunning. TimePaused falls back to TimeStopped. The StartList* sections
  54. ;    fall back to the Results* sections. The Started* sections fall back
  55. ;    to the StartList* sections (after the StartList* sections have fallen
  56. ;    back to the Results* sections if necessary).
  57. ;
  58. ;  + Format lines must begin with a one byte group code and a one byte
  59. ;    variable code. The special variable code \00 indicates that no variable
  60. ;    is being requested. If a variable is requested it will be inserted where
  61. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  62. ;    specifier in lines requesting a variable and no other printf format
  63. ;    specifiers may appear. Remember, lines requesting a variable are used as
  64. ;    a printf format string and therefore must behave as such. Lines not 
  65. ;    requesting a variable (variable code \00) can do whatever they want as
  66. ;    these lines are not fed to a printf statement.
  67. ;    The current group codes and their variable codes are:
  68. ;      \10  Initialize
  69. ;         \00  No variable
  70. ;      \11  Time
  71. ;         \00  No variable
  72. ;         \01  Formatted time with tenth (when running) or hundredth (when
  73. ;              stopped) precision
  74. ;         \02  Binary time in milliseconds (4 byte little endian integer)
  75. ;         \03  Formatted time with thousandth precision
  76. ;         \04  Formatted time with ten thousandth precision
  77. ;      \12  Wind
  78. ;         \00  No variable
  79. ;         \01  Formatted wind
  80. ;         \02  Binary wind in hundredths of units (4 byte little endian integer)
  81. ;      \13  Results Header/Trailer
  82. ;         \00  No variable
  83. ;         \01  OFFICIAL/UNOFFICIAL string
  84. ;         \02  Event name
  85. ;         \03  Wind
  86. ;         \04  Event number
  87. ;         \05  Round number
  88. ;         \06  Heat number
  89. ;         \07  AUTO/MANUAL start type
  90. ;         \08  Number of participants
  91. ;         \09  ARMED/RUNNING status
  92. ;      \14  Result
  93. ;         \00  No variable
  94. ;         \01  Place
  95. ;         \02  Lane
  96. ;         \03  Id
  97. ;         \04  Name
  98. ;         \05  Affiliation
  99. ;         \06  Time
  100. ;         \07  Delta Time
  101. ;         \08  Cumulative Split Time
  102. ;         \09  Last Split Time
  103. ;         \0a  Laps To Go
  104. ;         \0b  License
  105. ;         \0c  ReacTime
  106. ;         \0d  Speed
  107. ;         \0e  Pace
  108. ;         \0f  Best Split Time
  109. ;         \10  User1
  110. ;         \11  User2
  111. ;         \12  User3
  112. ;      \15  Message Header/Trailer
  113. ;         \00  No variable
  114. ;      \16  Message
  115. ;         \00  No variable
  116. ;         \01  Text
  117. ;      \17  Break Time
  118. ;         \00  No variable
  119. ;         \nn  Formatted break time nn
  120. ;
  121. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  122. ;    digit. Note that h must be lowercase.
  123. ;
  124. ;  + Format lines can have the following commands embedded in them.
  125. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  126. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  127. ;     \Ui\hh  Set the 'U' value to register[hh].
  128. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  129. ;     \Xi\hh  Set the 'X' value to register[hh].
  130. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  131. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  132. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  133. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  134. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  135. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  136. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  137. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  138. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  139. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  140. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  141. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  142. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  143. ;             next {X|<eol>} characters.
  144. ;              \U\00  IDS checksum.
  145. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  146. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  147. ;              \U\03  CRC-16. register[hh] is used as the seed value
  148. ;                       and register[hh+1] is the polynomial.
  149. ;              \U\04  CRC-32. register[hh] is used as the seed value
  150. ;                       and register[hh+1] is the polynomial.
  151. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  152. ;              \U\00  Binary little-endian (Intel byte order).
  153. ;              \U\01  Binary big-endian (Motorola byte order).
  154. ;              \U\02  ASCII text right justified space padded.
  155. ;              \U\03  ASCII text right justified zero padded.
  156. ;              \U\04  ASCII text left justified space padded.
  157. ;              \U\05  ASCII text left justified zero padded.
  158. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  159. ;              \U\00  ASCII text base 10.
  160. ;              \U\01  Binary little-endian (Intel byte order).
  161. ;              \U\02  Binary big-endian (Motorola byte order).
  162. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  163. ;              \P\00  Reverse characters.
  164. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  165. ;                       is the current character position on entry and the
  166. ;                       next character position on exit.
  167. ;              \P\02  Convert characters to Daktronics AllSport format.
  168. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  169. ;             before the cursor or until the string contains X characters.
  170. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  171. ;             at the cursor or until the string contains X characters.
  172. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  173. ;             contains X characters.
  174. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  175. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  176. ;             beginning of the line if zero).
  177. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  178. ;             end of the line if zero).
  179. ;    Note that numbers 0 thru 9 can be entered directly for single character
  180. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  181. ;    '\=\01' is the same as '\=1'.
  182. ;
  183. ;  + Be very careful about whitespace in each format line. Characters other
  184. ;    than '%s' specifiers and embedded commands and values will be sent
  185. ;    exactly as they appear on the line. This means, for instance, that using
  186. ;    tabs to make a line 'look right' in your favorite editor will cause
  187. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  188. ;    spaces (probably not what you wanted).
  189. ;
  190. ; The format lines follow.
  191.  
  192. ;;Initialization
  193. ; This is sent once to initialize the scoreboard.
  194. \10\00\0d\0a*** Initialize the scoreboard ***\0d\0a
  195.  
  196. ;;TimeRunning
  197. ; This is sent approximately 10 times per second.
  198. ; Setting register[0] to 1 in a format line will cause that line and
  199. ; subsequent lines to only be sent once per second (when the seconds
  200. ; digit changes) instead of approximately 10 times per second. Setting
  201. ; register[0] to 0 will resume normal operation for remaining lines.
  202. \11\01\0dRunning time: %12.12s
  203.  
  204. ;;TimeStopped
  205. ; This is sent when the time is stopped by a beam break.
  206. \11\01\0dStopped time: %12.12s
  207.  
  208. ;;TimeGun
  209. ; This is sent when a gun signal is received.
  210. \11\01\0d\0aGun time    : %12.12s\0d\0a
  211.  
  212. ;;TimeBreak
  213. ; This is sent when a beam break is received.
  214. \11\01\0d\0aBreak time  : %12.12s\0d\0a
  215.  
  216. ;;TimeUpdate
  217. ; This is sent approximately 10 times per second.
  218. \11\01\0dUpdate time : %12.12s
  219.  
  220. ;;TimeOfDay
  221. ; This is sent when the 'Send time of day' option is checked in the
  222. ; Scoreboard pull down menu.
  223. \11\01\=0\0dTime of day: %12.12s\B4
  224.  
  225. ;;Wind
  226. ; This is sent in the time stream when a wind reading is received.
  227. \12\01\0d\0aWind        : %12.12s\0d\0a
  228.  
  229. ;;StartListHeader
  230. ; This is sent once each time the scoreboard is updated with results. It
  231. ; is sent before any result lines are sent.
  232. \13\00*** StartListHeader ***\0d\0a
  233. \13\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  234. \13\02Event name         : %s\0d\0a
  235. \13\03Wind               : %s\0d\0a
  236. \13\04Event number       : %s\0d\0a
  237. \13\05Round number       : %s\0d\0a
  238. \13\06Heat number        : %s\0d\0a
  239. \13\00EEE-R-HH Name      : 
  240. \13\04%3.3s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\L1\X0\=2\S2\X\64\*2\U2\+1\D0\X3\U3\O1-
  241. \13\05%1.1s\L1\X0\=1\S1\D0\X1\U3\O1-
  242. \13\06%2.2s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\D0\X2\U3\O1
  243. \13\00\0d\0a
  244. \13\07AUTO/MANUAL start  : %s\0d\0a
  245. \13\08Number of results  : %s\0d\0a
  246. \13\00Ln  Id  Lic    Name       Affil     \0d\0a
  247. \13\00--- --- ------ ---------- ----------\0d\0a
  248.  
  249. ;;StartList
  250. ; This is sent once for each result line displayed on the scoreboard.
  251. \14\02%-3.3s 
  252. \14\03%-3.3s 
  253. \14\0b%-6.6s 
  254. \14\04%-10.10s 
  255. \14\05%-10.10s
  256. \14\00\0d\0a
  257.  
  258. ;;StartedHeader
  259. ; This is sent once each time the scoreboard is updated with results. It
  260. ; is sent before any result lines are sent.
  261. \13\00*** StartedHeader ***\0d\0a
  262. \13\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  263. \13\02Event name         : %s\0d\0a
  264. \13\03Wind               : %s\0d\0a
  265. \13\04Event number       : %s\0d\0a
  266. \13\05Round number       : %s\0d\0a
  267. \13\06Heat number        : %s\0d\0a
  268. \13\00EEE-R-HH Name      : 
  269. \13\04%3.3s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\L1\X0\=2\S2\X\64\*2\U2\+1\D0\X3\U3\O1-
  270. \13\05%1.1s\L1\X0\=1\S1\D0\X1\U3\O1-
  271. \13\06%2.2s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\D0\X2\U3\O1
  272. \13\00\0d\0a
  273. \13\07AUTO/MANUAL start  : %s\0d\0a
  274. \13\08Number of results  : %s\0d\0a
  275. \13\00Plc Ln  ReacTime Cum ST   Last ST  Best ST  Laps   Speed  Pace  \0d\0a
  276. \13\00--- --- -------- -------- -------- -------- ------ ------ ------\0d\0a
  277.  
  278. ;;Started
  279. ; This is sent once for each result line displayed on the scoreboard.
  280. ; Register[0] is initialized with the index of the current result line and
  281. ; will range from 0 through PageSize - 1.
  282. \14\01%-3.3s 
  283. \14\02%-3.3s 
  284. \14\0c%-8.8s 
  285. \14\08%-8.8s 
  286. \14\09%-8.8s 
  287. \14\0f%-8.8s 
  288. \14\0a%-6.6s 
  289. \14\0d%-6.6s 
  290. \14\0e%-6.6s
  291. \14\00\0d\0a
  292.  
  293. ;;ResultsHeader[1]
  294. ; This is sent once each time the scoreboard is updated with results. It
  295. ; is sent before any result lines are sent.
  296. \13\00*** ResultsHeader[1] ***\0d\0a
  297. \13\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  298. \13\02Event name         : %s\0d\0a
  299. \13\03Wind               : %s\0d\0a
  300. \13\04Event number       : %s\0d\0a
  301. \13\05Round number       : %s\0d\0a
  302. \13\06Heat number        : %s\0d\0a
  303. \13\00EEE-R-HH Name      : 
  304. \13\04%3.3s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\L1\X0\=2\S2\X\64\*2\U2\+1\D0\X3\U3\O1-
  305. \13\05%1.1s\L1\X0\=1\S1\D0\X1\U3\O1-
  306. \13\06%2.2s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\D0\X2\U3\O1
  307. \13\00\0d\0a
  308. \13\07AUTO/MANUAL start  : %s\0d\0a
  309. \13\08Number of results  : %s\0d\0a
  310. \13\00Plc Ln  Id  Lic    Name       Affil      Time     Delta    ReacTime\0d\0a
  311. \13\00--- --- --- ------ ---------- ---------- -------- -------- --------\0d\0a
  312.  
  313. ;;Results[1]
  314. ; This is sent once for each result line displayed on the scoreboard.
  315. ; Register[0] is initialized with the index of the current result line and
  316. ; will range from 0 through PageSize - 1.
  317. \14\01%-3.3s 
  318. \14\02%-3.3s 
  319. \14\03%-3.3s 
  320. \14\0b%-6.6s 
  321. \14\04%-10.10s 
  322. \14\05%-10.10s 
  323. \14\06%-8.8s 
  324. \14\07%-8.8s 
  325. \14\0c%-8.8s 
  326. \14\00\0d\0a
  327.  
  328. ;;ResultsHeader[2]
  329. ; This is sent once each time the scoreboard is updated with results. It
  330. ; is sent before any result lines are sent.
  331. \13\00*** ResultsHeader[2] ***\0d\0a
  332. \13\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  333. \13\02Event name         : %s\0d\0a
  334. \13\03Wind               : %s\0d\0a
  335. \13\04Event number       : %s\0d\0a
  336. \13\05Round number       : %s\0d\0a
  337. \13\06Heat number        : %s\0d\0a
  338. \13\00EEE-R-HH Name      : 
  339. \13\04%3.3s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\L1\X0\=2\S2\X\64\*2\U2\+1\D0\X3\U3\O1-
  340. \13\05%1.1s\L1\X0\=1\S1\D0\X1\U3\O1-
  341. \13\06%2.2s\L1\X0\=1\S1\L1\X0\=2\S2\X\0a\*2\U2\+1\D0\X2\U3\O1
  342. \13\00\0d\0a
  343. \13\07AUTO/MANUAL start  : %s\0d\0a
  344. \13\08Number of results  : %s\0d\0a
  345. \13\00Plc Ln  Cum ST   Last ST  Best ST  Laps   Speed  Pace  \0d\0a
  346. \13\00--- --- -------- -------- -------- ------ ------ ------\0d\0a
  347.  
  348. ;;Results[2]
  349. ; This is sent once for each result line displayed on the scoreboard.
  350. ; Register[0] is initialized with the index of the current result line and
  351. ; will range from 0 through PageSize - 1.
  352. \14\01%-3.3s 
  353. \14\02%-3.3s 
  354. \14\08%-8.8s 
  355. \14\09%-8.8s 
  356. \14\0f%-8.8s 
  357. \14\0a%-6.6s 
  358. \14\0d%-6.6s 
  359. \14\0e%-6.6s
  360. \14\00\0d\0a
  361.  
  362. ;;ResultsTrailer
  363. ; This is sent once each time the scoreboard is updated with results. It
  364. ; is sent after all result lines are sent.
  365. \13\00*** StartList/Started/ResultsTrailer ***\0d\0a\0d\0a
  366.  
  367. ;;MessageHeader
  368. ; This is sent once each time the scoreboard is updated with the message. It
  369. ; is sent before any message lines are sent.
  370. \15\00Message Header\0d\0a
  371.  
  372. ;;Message
  373. ; This is sent once for each message line displayed on the scoreboard.
  374. ; Register[0] is initialized with the index of the current message line and
  375. ; will range from 0 through <number of lines> - 1.
  376. \16\01%s\0d\0a
  377.  
  378. ;;MessageTrailer
  379. ; This is sent once each time the scoreboard is updated with the message. It
  380. ; is sent after all message lines are sent.
  381. \15\00Message Trailer\0d\0a
  382.