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 / ResulTV.lss < prev    next >
Text File  |  2007-11-30  |  13KB  |  376 lines

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