home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / multimed.zip / LD-V2200.TBK (.txt) < prev    next >
Asymetrix ToolBook File  |  1990-06-04  |  139KB  |  3,002 lines

  1. videodisc(status player)
  2. videodisc(status playerType)
  3. videodisc(still)
  4. ound color
  5. videodisc(set background color
  6. videodisc(reject)
  7. videodisc("reject")
  8. If the the player is in any play mode or in pause, stops the rotation of the disc.  If the disc is already stopped or there is no disc, opens the door.
  9. To stop the disc without risk of ejecting it, use video("stop")
  10. Example
  11.     -- stop then eject the disc
  12.     get videodisc("reject")
  13.     get videodisc("reject") 
  14. videodisc(Step)
  15. videodisc(status time)
  16. videodisc("status time")
  17. videodisc("status chapter")
  18. Returns the current chapter or elapsed time for CLV discs.  
  19. Note:  
  20. videodisc(reject)
  21. videodisc(step)
  22. ideodisc(Step re
  23. videodisc("step")
  24. videodisc("step reverse")
  25. Steps by one frame from the current frame and leaves the player in still mode.
  26. videodisc(stop)
  27. ideodisc(reject)
  28. videodisc("stop")
  29. videodisc("reject")
  30. Both forms of this function call have the same effect.
  31. Stops the spinning of the disc.  On most players, the video picture is replaced by a blank background.  
  32. On Pioneer players, calling this function when the disc is already stopped also ejects the disc.  You might want to check the player status with videodisc("status player") before calling videodisc("stop") to avoid unexpected opening of the player's door. 
  33. videodisc(pause)
  34. videodisc("pause")
  35. Stops the playing, but leaves the laser arm at the current frame position.  The picture disappears (except on LD-V8000).
  36. videodisc(status keydata)
  37. videodisc("status keydata")
  38. Returns the key (user) data embedded on the disc, if any.  Does not work on the LD-V2200.
  39. If no data is available, returns null.""""""""not availabe, 
  40. videodisc(open)
  41. videodisc(status  <status item>)
  42. videodisc(play [from <spec>] [to
  43. c(Scan)
  44. videodisc(Scan R
  45. videodisc(Scan)videodisc(Scan Re
  46. videodisc(status frame)
  47. videodisc(set key lock
  48. videodisc(stop)
  49. videodisc(set port
  50. videodisc(set speed
  51. videodisc(status time)
  52. videodisc(select audio
  53. videodisc(set stop [frame|chapte
  54. videodisc(status disc)
  55. videodisc(stop)videodisc(reject)
  56. videodisc(initialize)
  57. videodisc(status keydata)
  58. videodisc(play [from <spec>] [to
  59. Starts playing from the current position.  If the disc is stopped, starts playing from frame 1.  The playing stops when a stop mark is encountered.
  60. The <spec> for the optional from and to arguments is either a frame number, or the word chapter followed by a number.
  61. The optional speed parameter is a number from 1 to 255.  If it is omitted, normal play speed is assumed.
  62. Examples:
  63.     get videodisc("play")
  64.     get videodisc("play, 240")      -- at 6 times normal speed
  65.     get videodisc("play reverse")    -- at normal speed, but in reverse
  66.     get videodisc("play from 2345 to 2378", 10) -- at 1/6th normal speed
  67.     get videodisc("play to chapter 2")
  68. videodisc("play [from <spec>] [to <spec>] [reverse], [<speed>])
  69. disable 
  70. "Previous" 
  71. enable 
  72. adjust x --**
  73. -- reset proportions 
  74. moved
  75. objs 
  76. -15, 
  77. -15, 
  78. -15,\
  79. -15, 
  80. -15, 
  81. -15, 
  82. - 15,\
  83. defBounds 
  84. setCaption what
  85. 0,50.1875,0
  86. nterpage
  87. adjust
  88. setCaption
  89. previous
  90. disable
  91. enterpage
  92. enable
  93. enterpage
  94. ox%disable
  95. Previous
  96. enable
  97. Previous
  98. previous
  99. adjust
  100. defBounds
  101. setCaption
  102. disable
  103. enable
  104. 0,0,0
  105. title
  106. odefBounds
  107. adjust 
  108. buttonUp
  109. buttonDown
  110. buttonUp
  111. buttonDown
  112. defBounds
  113. adjust
  114. 6    defBounds
  115. 5670,4680,6885,5085
  116. Go Back 
  117. default
  118. odefBounds
  119. adjust 
  120. buttonUp
  121. buttonDown
  122. buttonUp
  123. default
  124. buttonDown
  125. defBounds
  126. adjust
  127. defBounds
  128. 30,4650,1395,5085
  129. Demo 
  130. Previous
  131. odefBounds
  132. adjust 
  133. buttonUp
  134. buttonDown
  135. buttonUp
  136. previous
  137. buttonDown
  138. defBounds
  139. adjust
  140. defBounds
  141. 3090,4680,4305,5085
  142. Previous 
  143. odefBounds
  144. adjust 
  145. buttonUp
  146. buttonDown
  147. buttonUp
  148. buttonDown
  149. defBounds
  150. adjust
  151. defBounds
  152. 4410,4680,5580,5085
  153. Next 
  154. Reference
  155. /"reference"
  156. odefBounds
  157. adjust 
  158. buttonUp
  159. buttonDown
  160. buttonUp
  161. reference
  162. buttonDown
  163. defBounds
  164. adjust
  165. defBounds
  166. 1485,4665,2715,5085
  167. Reference 
  168. The script of this book contains a general purpose function to control a videodisc player.  This specific book is dedicated to the Pioneer LD-V2200 player; it also works with the LD-V4200 and the LD-V8000.  Another book with the same function could control another board.  The script, controls and features of the first page are included as examples of the kinds of things you can do by calling the function in the script of this book.
  169. Typically, the way to use this book is by including it in the system variable sysBooks to make its functions available to your application. For instance, the enterBook handler in the script of your application book could contain the statement "push LD-V2200.TBK onto sysBooks".  You can use more than one system book at the same time; for instance, another system book could contain the functions to control a videodisc player, and yet another one could contain handlers and functions for a test scoring system.
  170. ions for a test scoring system.
  171. How to use this book with your application
  172. All video control is through one function, videodisc ,  which you call with different arguments.
  173. A typical call to video is in the form
  174.     get videodisc<command>[, <parameter>])
  175. Some of the calls require the parameter; a few don't.  See the reference section of this book for details.
  176. Function calls to videodisc   return 1 if successfull or a negative number if they failed.  Typical causes of errors would be that videodisc("open") was not called successfully earlier in the session, or that one of the arguments to the function was illegal or out of range.  This function also uses an auxiliary DLL, TBK-COMM.DLL which is available on the Asymetrix BBS.
  177. Videodisc Control
  178. videodisc(select audio
  179. <channel 
  180. Selects the audio channel(s) to be played from the disc. .
  181. The <channel spec> parameter is 0 for no audio, 1 for channel 1, 2 for channel 2, and 3 for stereo. 
  182. evel   is set to the current audio level. 
  183. video("fade in")   sets it to 255 , and video("fade out")   sets it to 0 .
  184. videodisc("select audio",<channel spec>)
  185. videodisc(status playerType)
  186. videodisc("status playerType"))>")
  187. Returns information on the player type.  If the function recognizes the player's code, it returns a manufacturer and model number as well as the code, otherwise it returns only the code.
  188. Example:
  189.     get videodisc("status playertype")
  190.     if it contains "Pioneer LD-V2200"
  191.         return true
  192.     else
  193.         request "Oops.  That's not a LD-V2200!"
  194.         return false
  195. -- Script 
  196. demo 
  197. -- Last rev. 6/4/90 
  198. HC.O.
  199. ooldBSize 
  200. defSize 
  201. 5805,840
  202. 5805,840
  203. enable 
  204. "help"
  205. odefBounds <> 
  206. videodisc("Open", defcomport 
  207. 8) < 0
  208. "Cannot initialize the 
  209. =. Video controls will have"\
  210. && "no effect."
  211. default
  212. 4s_inHelp
  213. s_videodisc_init <> 
  214. Stop")
  215. Close")
  216. "frame" 
  217. "chapter" 
  218. exitHelp
  219. "5805,840"
  220. defsize 
  221. setControls
  222. 4s_discType, s_discControls
  223. "CLV"
  224. "Time"
  225. "CAV callouts"
  226. "Frame"
  227. 4s_suspend_fr, s_suspend_ch, s_videoDisc_init, 
  228.  <> "
  229.  <> "CAV"
  230. status 
  231. c":" 
  232. isNumber(
  233. "No response"
  234. "Videodisc player off 
  235. disconnected."\
  236. && "Closing driver.
  237. doHelp
  238. disable 
  239. defbounds 
  240. ExitHelp
  241. activateInstance
  242. Manother instance 
  243. same 
  244.  mode
  245. -- but we are activating 
  246. 5which 
  247. -- Special stuff 
  248. maintain correct proportions, etc. 
  249. buttons
  250. -- on 
  251. cauthoring
  252. adjust x --**
  253. -- reset 
  254. moved
  255. objs 
  256. -15, 
  257. -15, 
  258. -15,\
  259. -15, 
  260. -15, 
  261. -15, 
  262. - 15,\
  263. setCaption what
  264. 0,50.1875,0
  265. z    cpT
  266. vePage
  267. doHelp
  268. ExitHelp
  269. enterPage
  270. activateInstance
  271. setControls
  272. adjust
  273. setCaption
  274. disable
  275. leavePage
  276. enable
  277. enterPage
  278. oldBSize
  279. defSize
  280. enable
  281. reader
  282. defBounds
  283. defBounds
  284. sizeToPage
  285. defcomport
  286. videodisc
  287. Cannot initialize the videodisc. Video controls will have
  288. no effect.
  289. default
  290. leavePage
  291. Close
  292. videodisc
  293. frame
  294. chapter
  295. cpexitHelp
  296. 5805,840
  297. defBounds
  298. defsize
  299. sizetopage
  300. s_inHelp
  301. setControls
  302. frame or time
  303. help frame or time
  304. CLV controls
  305. CAV callouts
  306. CLV callouts
  307. frame or time
  308. Frame
  309. help frame or time
  310. Frame
  311. CLV controls
  312. CLV callouts
  313. CAV callouts
  314. s_discType
  315. s_discControls
  316. chapter
  317. frame
  318. chapter
  319. frame
  320. status disc
  321. videodisc
  322. status time
  323. videodisc
  324. frame
  325. status frame
  326. videodisc
  327. isNumber
  328. frame
  329. setControls
  330. No response
  331. Videodisc player off or disconnected.
  332. Closing driver.  Videodisc controls will have no effect.
  333. Close
  334. videodisc
  335. status chapter
  336. videodisc
  337. isNumber
  338. chapter
  339. default
  340. s_suspend_fr
  341. s_suspend_ch
  342. s_videoDisc_init
  343. s_discType
  344. doHelp
  345. ox%disable
  346. defbounds
  347. defSize
  348. sizeToPage
  349. default
  350. s_inHelp
  351. ExitHelp
  352. defSize
  353. defbounds
  354. enable
  355. default
  356. s_inHelp
  357. activateInstance
  358. defSize
  359. cpExitHelp
  360. s_inHelp
  361. adjust
  362. defBounds
  363. setCaption
  364. disable
  365. enable
  366. 0,0,0
  367. 8b9j:f;`<V=
  368. jxm&n|n
  369. vDvjv
  370. w(wNwtw
  371. defsize
  372. 5805,840
  373. defBounds
  374. 122,198,517,281
  375. oldBSize
  376. 5805,840
  377. This sample page exercises the videodisc control function in the script of this book.  For more information about this function and its parameters, and how to use it with your own application, click "How to Use This Book".
  378.  Use This Book".
  379. Sweep Track
  380. GHitPos, a, b
  381. =+ 105
  382. =- 105
  383. x > x2 
  384. x < x1 
  385. B"speed thumb"
  386. "keypad" 
  387. buttonup
  388. buttondoubleclick
  389. buttonup
  390. buttonDown
  391. speed thumb
  392. buttonStillDown
  393. speed thumb
  394. buttonUp
  395. speed thumb
  396. HitPos
  397. buttondoubleclick
  398. :PHYSSIZE
  399. speed thumb
  400. "slider" 
  401. -- stores a bunch 
  402. dimensions 
  403. %private 
  404. receives the "Calibrate" message
  405. -- Can 
  406. itself a "
  407. detects 
  408. error
  409. PaintObject "Sweep Track" <> 
  410. otBounds 
  411. otrack 
  412. -- I will never 
  413. oWidth 
  414. oxOffset 
  415. "glide 
  416. minTrack 
  417. + 135
  418. maxTrack 
  419. - 150
  420. omaxX 
  421. ominX 
  422. -- there are 9 "zones" on 
  423. zoneWidth 
  424. ) / 17
  425. 2* i) + 
  426. 65000 
  427. ) /2) + 
  428. goPosition x
  429. x = "play"
  430. + 15) / 17
  431. * (x-1)) + 
  432. p= 1 
  433. oLastZone 
  434. ,x)), 
  435.  = 1 
  436.  = 17
  437.  = 2 
  438.  = 16
  439.  = 3 
  440.  = 15
  441.  = 4 
  442.  = 14
  443.  = 5 
  444.  = 13
  445. "1/2"
  446.  = 6 
  447.  = 12
  448. "1/3"
  449.  = 7 
  450.  = 11
  451. "1/4"
  452.  = 8 
  453.  = 10
  454. "1/6"
  455.  = 1 
  456.  = 17
  457.  = 2 
  458.  = 16
  459.  = 3 
  460.  = 15
  461.  = 4 
  462.  = 14
  463.  = 5 
  464.  = 13
  465.  = 6 
  466.  = 12
  467.  = 7 
  468.  = 11
  469.  = 8 
  470.  = 10
  471. videodisc("still")
  472.  < 9 
  473.  reverse", 
  474. librate
  475. buttonDown
  476. goPosition
  477. buttonstilldown
  478. Calibrate
  479. buttonUp
  480. buttonDown
  481. Sweep Track
  482. tBounds
  483. track
  484. Sweep Track
  485. }Calibrate
  486. Calibrate
  487. Width
  488. xOffset
  489. Width
  490. tBounds
  491. track
  492. tBounds
  493. tBounds
  494. xOffset
  495. xOffset
  496. zones
  497. zones
  498. zones
  499. zoneWidth
  500. maxTrack
  501. minTrack
  502. goPosition
  503. xOffset
  504. zoneWidth
  505. buttonstilldown
  506. zones
  507. LastZone
  508. xOffset
  509. buttonUp
  510. LastZone
  511. still
  512. videodisc
  513. videodisc
  514. videodisc
  515. play reverse
  516. videodisc
  517. -.-zones
  518. 65000,4729,4614,4498,4383,4267,4151,4036,3920,3805,3689,3574,3458,3342,3227,3111,2996
  519. -LastZone
  520. -minX
  521. 2842.5
  522. -maxX
  523. 4807.5
  524. -tBounds
  525. 2745,60,4995,345
  526. .xOffset
  527. 8...Width
  528. L.B.y
  529. Z.track
  530. paintobject id 28 of page id 17
  531. /:PHYSSIZE
  532. speakers
  533. "stereo" 
  534. right
  535. stereo
  536. *3:PHYSSIZE
  537. 4:PHYSSIZE
  538. 4:PHYSSIZE
  539. v5:PHYSSIZE
  540. goPosition "still" 
  541. B"Speed Thumb"
  542. videodisc("reject")
  543. door")
  544. buttonUp
  545. buttonUp
  546. goPosition
  547. still
  548. Speed Thumb
  549. reject
  550. videodisc
  551. open door
  552. videodisc
  553. videodisc("Init")
  554. goPosition "still" 
  555. B"Speed Thumb"
  556. buttonUp
  557. buttonUp
  558. videodisc
  559. goPosition
  560. still
  561. Speed Thumb
  562. videodisc("scan reverse")
  563. buttonStillDown
  564. buttonStillDown
  565. scan reverse
  566. videodisc
  567. videodisc("play reverse")
  568. buttonUp
  569. buttonUp
  570. play reverse
  571. videodisc
  572. videodisc("
  573. reverse")
  574. goPosition "still" 
  575. B"Speed Thumb"
  576. buttonUp
  577. buttonUp
  578. step reverse
  579. videodisc
  580. goPosition
  581. still
  582. Speed Thumb
  583. videodisc("stop")
  584. goPosition "still" 
  585. B"Speed Thumb"
  586. buttonUp
  587. buttonUp
  588. videodisc
  589. goPosition
  590. still
  591. Speed Thumb
  592. videodisc("
  593. goPosition "still" 
  594. B"Speed Thumb"
  595. buttonUp
  596. buttonUp
  597. videodisc
  598. goPosition
  599. still
  600. Speed Thumb
  601. videodisc("play")
  602. goPosition "
  603. B"Speed Thumb"
  604. buttonUp
  605. buttonUp
  606. videodisc
  607. goPosition
  608. Speed Thumb
  609. 3,7\o
  610. videodisc("scan 
  611. buttonStillDown
  612. buttonStillDown
  613. scan forward
  614. videodisc
  615. How to
  616. odefBounds
  617. adjust 
  618. buttonUp
  619. buttonDown
  620. buttonUp
  621. buttonDown
  622. defBounds
  623. adjust
  624. |?defBounds
  625. 3585,435,5730,780
  626. J@"@G@
  627. How To Use This Book 
  628. field-1
  629. reset --**
  630. proportions 
  631. moved
  632. - 15, 
  633. - 15,\
  634. - 15, 
  635. -15, 
  636. reset
  637. reset
  638. chapter
  639. 4s_suspend_ch
  640. videodisc("seek chapter",
  641. enterfield
  642. keydown
  643. leavefield
  644. keydown
  645. seek chapter
  646. videodisc
  647. s_suspend_ch
  648. enterfield
  649. s_suspend_ch
  650. leavefield
  651. s_suspend_ch
  652. HEalignment
  653. centered
  654. field-1
  655. reset --**
  656. proportions 
  657. moved
  658. - 15, 
  659. - 15,\
  660. - 15, 
  661. -15, 
  662. reset
  663. reset
  664. frame
  665. 4s_suspend_fr, s_discType
  666. "CLV"
  667. videodisc("seek 
  668. frame",
  669. enterfield
  670. keydown
  671. leavefield
  672. keydown
  673. seek time
  674. videodisc
  675. seek frame
  676. videodisc
  677. s_suspend_fr
  678. s_discType
  679. enterfield
  680. s_suspend_fr
  681. leavefield
  682. s_suspend_fr
  683. Jalignment
  684. centered
  685. 30000
  686. Chapter:
  687. Frame or Time
  688. 4s_lastRange, s_disctype
  689. "CLV"
  690. ("Play which range? Example:" \
  691. 0:12:00 
  692. 0:12:45" & 
  693. frame 7560 
  694. chapter 2" & 
  695. videodisc("
  696. " && 
  697. buttonDoubleClick
  698. buttonDoubleClick
  699. Play which range? Example:
  700. from 0:12:00 to 0:12:45
  701. Play which range? Example:
  702. from frame 7560 to chapter 2
  703. cancel
  704. videodisc
  705. s_lastRange
  706. s_disctype
  707. Frame
  708. videodisc("
  709. audio",3)
  710. "Speakers"
  711. buttonDown
  712. buttonDown
  713. select audio
  714. videodisc
  715. Speakers
  716. videodisc("
  717. audio",1)
  718. "Speakers"
  719. buttonDown
  720. buttonDown
  721. select audio
  722. videodisc
  723. Speakers
  724. videodisc("
  725. audio",2)
  726. "Speakers"
  727. buttonDown
  728. buttonDown
  729. select audio
  730. videodisc
  731. Speakers
  732. videodisc("
  733. audio",0)
  734. "speakers"
  735. buttonDown
  736. buttonDown
  737. select audio
  738. videodisc
  739. speakers
  740. doHelp
  741. odefBounds
  742. adjust 
  743. buttonUp
  744. buttonDown
  745. buttonUp
  746. doHelp
  747. buttonDown
  748. defBounds
  749. adjust
  750. SdefBounds
  751. 2745,435,3540,780
  752. RT*TOT
  753. Help 
  754. Exit Help
  755. exitHelp
  756. odefBounds
  757. adjust 
  758. buttonUp
  759. buttonDown
  760. buttonUp
  761. cpexitHelp
  762. buttonDown
  763. defBounds
  764. adjust
  765. UdefBounds
  766. 2925,4800,3825,5100
  767. Open Door
  768.  #(#B
  769.  #(#C
  770.  #(#D
  771.  #(#E
  772.  #(#F
  773.  #(2G
  774.  #( H
  775. >Z:PHYSSIZE
  776.  #- I
  777. \,\zones
  778. 65000,4729,4614,4498,4383,4267,4151,4036,3920,3805,3689,3574,3458,3342,3227,3111,2996
  779. \LastZone
  780. \minX
  781. 2842.5
  782. \maxX
  783. 4807.5
  784. \tBounds
  785. 2745,60,4995,345
  786. ]xOffset
  787. 6],]Width
  788. J]@]y
  789. X]track
  790. paintobject id 28 of page id 17
  791.  #- J
  792.  #- K
  793. t^:PHYSSIZE
  794.  #- L
  795. "a:PHYSSIZE
  796. b:PHYSSIZE
  797. b:PHYSSIZE
  798. nc:PHYSSIZE
  799.  #- M
  800.  #- N
  801.  #- O
  802.  #3 P
  803.  #3 Q
  804.  #3 R
  805.  #3 S
  806.  #3 T
  807.  #3 U
  808.  #8 W
  809. chapter
  810. 4s_suspend_ch
  811. videodisc("seek chapter",
  812. enterfield
  813. keydown
  814. leavefield
  815. keydown
  816. seek chapter
  817. videodisc
  818. s_suspend_ch
  819. enterfield
  820. s_suspend_ch
  821. leavefield
  822. s_suspend_ch
  823. ialignment
  824. centered
  825.  #8 X
  826. frame
  827. 4s_suspend_fr
  828. videodisc("seek chapter",
  829. enterfield
  830. keydown
  831. leavefield
  832. keydown
  833. seek chapter
  834. videodisc
  835. s_suspend_fr
  836. enterfield
  837. s_suspend_fr
  838. leavefield
  839. s_suspend_fr
  840. 8malignment
  841. centered
  842. 12345
  843. help Frame or Time
  844.  #8 Y
  845. Frame
  846.  #8 Z
  847.  #8 [
  848.  #8 \
  849.  #8 ]
  850. Chapter:
  851. Audio Select
  852. Channel 1
  853.   Stereo
  854.      Channel 2
  855.         Off
  856. Current Chapter and Frame numbers.  To go to a chapter or frame number directly, simply type it into one of these fields and press Enter.  Press Esc to have numbers update automatically again.    r
  857. Stop Disc
  858. Reset Disc
  859. Scan Reverse
  860. Variable Speed Play
  861. for CAV discs only
  862. (Drag the thumb or click)
  863. Reverse       Still       Forward
  864. Other neat trick:
  865. Right-click the mouse to show/hide chapter and frame numbers in the video picture.
  866. field-1
  867. reset --**
  868. proportions 
  869. moved
  870. - 15, 
  871. - 15,\
  872. - 15, 
  873. -15, 
  874. reset
  875. reset
  876. phone number
  877. dial (
  878. keydown
  879. keydown
  880. zalignment
  881. centered
  882. C.0. 6/4/900
  883. Copyright 
  884.  1990 Asymetrix Corporation
  885. Exit Help
  886. 4s_inHelp
  887. defComPort 
  888. "Default COM port 
  889. videodisc control 
  890. && ". Choose the 
  891. use."
  892. f"COM1" 
  893. "COM2" 
  894. "COM3"
  895. "123" 
  896. dummy 
  897. (Close)
  898. (Open)
  899. default
  900. odefBounds
  901. adjust 
  902. buttonUp
  903. buttonDown
  904. buttonUp
  905. defComPort
  906. Default COM port for videodisc control is now COM
  907. defComPort
  908. . Choose the port to use.
  909. defComPort
  910. videodisc
  911. defComPort
  912. videodisc
  913. default
  914. Close
  915. dummy
  916. s_inHelp
  917. buttonDown
  918. defBounds
  919. 2925,4800,3825,5100
  920. Set COM Port 
  921. CLV controls
  922. videodisc("
  923. buttonStillDown
  924. buttonStillDown
  925. pause
  926. videodisc
  927. CAV callouts
  928. Play Reverse
  929. Step Reverse
  930. Stepl/Step
  931. CLV Callouts
  932. Pause
  933. CLV overlay
  934. videodisc("still")
  935. buttonStillDown
  936. buttonStillDown
  937. still
  938. videodisc
  939. Disc is CLV
  940. 6930,5130
  941. videodisc(status player)
  942. videodisc("status player") item>")
  943. Returns status information about the current state of the player.  The returned value can be either:
  944. -1    (see videodisc("Open"))
  945. Dead   (player is off or not connected correctly)
  946. Door Open
  947. Set Up
  948. Disc Unloading
  949. Still
  950. Pause
  951. Search
  952. Multi-speed play
  953. videodisc(status disc)
  954. videodisc("status disc"))s item>")
  955. If no disc is currently loaded, returns "No disc"
  956. Otherwise, returns a string of 4 items.
  957. Item 1:  Disk type (CAV or CLV or unknown)
  958. Item 2:  Disc size (12 inch or 8 inch)
  959. Item 3:  Disc side (1 or 2 or unknown)
  960. Item 4:  Whether the disc has chapter codess
  961. videodisc(open door)
  962. videodisc("open door")
  963. Stops the videodisc if it is spinning, and opens the videodisc player door or tray.
  964. videodisc(set port
  965.  <port number
  966. Sets the COM port to be used.  If the videodisc driver is currently open, it is closed first and then reopened with the new port setting.  If the new port setting was invalid, or the open failed because the port was not available, the driver is left in closed condition.
  967. When the port setting is changed successfully by this function call, the user-defined property defComPort   of the current book is set to the number of the new port.
  968. videodisc("set port", <port number>)
  969. videodisc(set stop [frame|chapte
  970. videodisc("set stop [frame|chapter|time]", <number>)
  971. Sets the stop register to the frame or chapter (for CAV discs) or for the time (CLV discs) specified.  If you then send a play command, the playing will stop when the specified address is reached, and the setting will be cleared. If you don't specify chapter,  frame or address, frame is assumed for CAV discs, and time is assumed for CLV discs.
  972. Note:  Depending on the player, different player functions may clear this setting before it is reached.  Test carefully.
  973. Example
  974.     get videodisc("set stop frame", 12345)
  975.     get videodisc("play")
  976.     -- being naturally lazy, I prefer to use the following for the same effect:
  977.     get videodisc("play to 12345")
  978. videodisc(set background color
  979. videodisc("set background color", <color>)lue>
  980. Sets the color displayed when the player is paused or stopped with no picture.  With Pioneer players, this color is blue by default.
  981. <color> must be "black" or "blue" -- the quotes are important.
  982. videodisc(set speed
  983.  <field rate
  984. Sets the speed for variable speed playing.  Frame rate is the number of frames per second.  The current mode of the player does not change.  If the player is already playing at variable speed, the new speed takes effect immediately.
  985. The following integer values work well as <field rate> for Pioneer players:
  986. 240    (4X  normal speed)
  987. 180                Any value between 1   and 255    is OK
  988. 60      (normal speed)
  989. 10     (1/6 normal speed)
  990. videodisc("set speed", <field rate>)
  991. videodisc(set key lock
  992. videodisc("set key lock",<on|off>)
  993. Locks (disables) or enables the front panel controls of the videodisc player.  Usually, only the power switch still works when the lock is in effect.
  994. <on|off> is either 1 for locked, or 0 for unlocked
  995. videodisc(still)
  996. videodisc("still")
  997. Stops on the current frame with a still frame.
  998. System
  999. xproperly initialized 
  1000. dvaCmd x
  1001. 4s_DVA_Init
  1002. s_DVA_Iinit 
  1003. "Error: 
  1004. jx & CRLF 
  1005. -- Initialize 
  1006. default settings, but 
  1007. fno video
  1008. -- shown (chromakey off).
  1009.  does 
  1010. xrespond,
  1011. indicate error.
  1012. initDVA
  1013. , s_DVA_Key_Color
  1014. xMICLoaded() 
  1015. "Cannot find 
  1016. drivers." &&\
  1017. --"Assuming you are 
  1018. ]separate monitor 
  1019. suspend 
  1020. X"tbkwin.dll"
  1021. STRING screenFromPage(WORD, 
  1022. , INT, 
  1023. ,sysMagnification,"0,0")\
  1024. TBKWIN.DLL 
  1025. xfound 
  1026. wrong 
  1027. ("!EOFF")
  1028. ("FSTORE MODE 0 
  1029. COORDS 0,640,480")
  1030. 1IREGION 0,3,FULL")
  1031. LDPOS 0,3,0,0, RELATIVE")
  1032. mWPOS 0,3,0,0")
  1033. ("TRANSCOLOUR NONE")
  1034. ("FADE 255,1 /V")
  1035. BACKGROUND 0,75,75,75")
  1036. FullScreen
  1037. 4IsFullScreen
  1038.  ABSOLUTE")
  1039. DSIZE 0,3,
  1040. ALL")
  1041. setVideoOutRect BoundsRect
  1042. -- Turns on 
  1043. sets 
  1044. which 
  1045. being displayed 
  1046. %specified 
  1047. ToolBook units 
  1048. (relative 
  1049. can specify "pixels" 
  1050. -- Examples:
  1051. "Foo")
  1052. ("45,67,3460,4567")
  1053. ("0,0,640,150 
  1054. -- If 
  1055. full 
  1056. -- If 
  1057. invalid, turns off 
  1058. 4s_InsetRect, 
  1059. "0,0,639,479 
  1060. rect 
  1061. ) - 1) 
  1062. pageToScreen(
  1063. G) < 4 
  1064. " && 
  1065. "," & 
  1066. ) && "
  1067. " & \
  1068. & "," & \
  1069. setKeyColor x
  1070. -- Sets 
  1071. Ocolor 
  1072. 16 colors 
  1073. palette
  1074. -- Unfortunately, only 3 
  1075. )seem 
  1076. work correctly: 
  1077. 5(0),
  1078. d(15) 
  1079. dark grey (7).
  1080. Maybe we'll 
  1081. a better trick 
  1082. these days.
  1083. -- Note: 
  1084. change 
  1085. xtake effect 
  1086. SetVideoOutRect
  1087. x >= 0 
  1088. x <= 15
  1089. Freeze
  1090. 4s_DVA_Frozen
  1091. DVACmd("
  1092. INPUT 0,2,DISABLE")
  1093. unFreeze
  1094. 2ENABLE")
  1095. -- Test that 
  1096. Config.sys 
  1097. loaded
  1098. "mic"
  1099. testString 
  1100. ) = 1 
  1101. -- Now 
  1102. "x yx z"
  1103. & CR 
  1104. "!STATUS" & CR 
  1105. P--- 
  1106.  checking part 
  1107. initDVA
  1108. setVideoOutRect
  1109. dvaCmd
  1110. setKeyColor
  1111. FullScreen
  1112. Freeze
  1113. unFreeze
  1114. MICLoaded
  1115. dvaCmd
  1116. Error: DVA not initialized
  1117. s_DVA_Iinit
  1118. s_DVA_Init
  1119. initDVA
  1120. MICLoaded
  1121. Error: No DVA drivers
  1122. tbkwin.dll
  1123. screenFromPage
  1124. screenFromPage
  1125. Error: TBKWIN.DLL not found or wrong TBKWIN.DLL
  1126. dvaCmd
  1127. !EOFF
  1128. dvaCmd
  1129. FSTORE MODE 0 normal
  1130. dvaCmd
  1131. FSTORE COORDS 0,640,480
  1132. dvaCmd
  1133. FSTORE IREGION 0,3,FULL
  1134. dvaCmd
  1135. FSTORE DPOS 0,3,0,0, RELATIVE
  1136. dvaCmd
  1137. FSTORE WPOS 0,3,0,0
  1138. dvaCmd
  1139. TRANSCOLOUR NONE
  1140. dvaCmd
  1141. FADE 255,1 /V
  1142. dvaCmd
  1143. FSTORE BACKGROUND 0,75,75,75
  1144. suspend
  1145. s_DVA_Init
  1146. s_DVA_Key_Color
  1147. FullScreen
  1148. FSTORE DPOS 0,3,0,0 ABSOLUTE
  1149. dvaCmd
  1150. FSTORE DSIZE 0,3,FULL
  1151. dvaCmd
  1152. TRANSCOLOUR ALL
  1153. dvaCmd
  1154. IsFullScreen
  1155. setVideoOutRect
  1156. Full Screen
  1157. 0,0,639,479 pixels
  1158. pixels
  1159. pageToScreen
  1160. dvaCmd
  1161. TRANSCOLOUR NONE
  1162. dvaCmd
  1163. TRANSCOLOUR
  1164. dvaCmd
  1165. FSTORE DPOS 0,3,
  1166. ABSOLUTE
  1167. dvaCmd
  1168. FSTORE DSIZE 0,3,
  1169. s_InsetRect
  1170. s_DVA_Key_Color
  1171. BoundsRect
  1172. setKeyColor
  1173. s_DVA_Key_Color
  1174. Freeze
  1175. DVACmd
  1176. FSTORE INPUT 0,2,DISABLE
  1177. s_DVA_Frozen
  1178. unFreeze
  1179. DVACmd
  1180. FSTORE INPUT 0,2,ENABLE
  1181. s_DVA_Frozen
  1182. MICLoaded
  1183. !EOFF
  1184. x yx z
  1185. !STATUS
  1186. testString
  1187. qaB|B|
  1188. waB|B|
  1189. defComPort
  1190. Vdefsize
  1191. a videodisc player
  1192. -- The implementation 
  1193. specific
  1194. Pioneer LD-V2200 
  1195. LD-V4200.
  1196. You can use 
  1197. Asame 
  1198. ~ names 
  1199. -- arguments, 
  1200. fdifferent 
  1201.  bodies, 
  1202. control other
  1203. -- boards
  1204. -- This 
  1205. 8requires TBK-COMM.DLL 
  1206. serial port
  1207. -- Currently, only 
  1208. be controlled
  1209. cmd, params
  1210. 4s_videoDisc_Init, s_videodisc_audio, s_videodisc_status
  1211. E <> "Open" 
  1212. T <> "Set Port") 
  1213. s_videodisc_Init 
  1214. cmd1 
  1215. cmd2 
  1216. whichOne 
  1217. VDOpen(
  1218. "Initialize"
  1219. VDCmd("SA")
  1220. "Close"
  1221. VDClose(
  1222. c"Door" 
  1223. c"Tray"
  1224. AOP")
  1225. "Set"
  1226. " -- 
  1227. VDSetPort(
  1228. "stop"
  1229. c"ch"
  1230. CH" & 
  1231.  & "SM")
  1232. FR" & 
  1233.  & "SM")
  1234. "speed"
  1235. VDSetSpeed(
  1236. "Display"
  1237. VDSetDisplay(
  1238. "key" 
  1239. c"lock"
  1240. "on" 
  1241. 1KL")
  1242. 0KL")
  1243. "Clear"
  1244. "Play"
  1245. VDplay(
  1246. "Still"
  1247. VDCMD("ST")
  1248. "Step"
  1249. c"rev"
  1250. "Scan"
  1251. NNR")
  1252. ZNF")
  1253. "Seek"
  1254. "chapter" 
  1255. CH" & 
  1256.  & "SE")
  1257. TM" & 
  1258.  & "SE")
  1259. xsupported here
  1260. FR" & 
  1261.  & "SE")
  1262. "Select"
  1263. "Audio"
  1264. VDSelectAudio(
  1265. "Status"
  1266. VDQuery(
  1267. VDStatus(
  1268. "reject" 
  1269. audioControl 
  1270. 4s_DVA_Init, s_audio_level
  1271.  < 0 
  1272.  > 255
  1273. dvaCmd ("FADE" && 
  1274. v & ",1 /A1/A2")
  1275. -- assume that 
  1276. tsysbook 
  1277. controller
  1278. a dangerous assumption, but I can't think 
  1279. -- another way 
  1280. --== General purpose utilities
  1281. isNumber n
  1282. suspend 
  1283. n + 0
  1284. itemOffset theItem, theList
  1285. ci <= 
  1286. LinkToSerialDLL
  1287. --INT clearComBreak(WORD)
  1288. oseComPort(
  1289. %flushComRxBuffer(
  1290. ;flushComTxBuffer(
  1291. ? isComRxReady(
  1292. R isComTxReady(
  1293. wopenComPort(
  1294. STRING readComPort(
  1295. setComBreak(
  1296. setComPort(
  1297. setComPortTxXlate(
  1298. _TBK_COMMVersion()
  1299. writeComPort(
  1300. "Cannot find 
  1301. N    correct version 
  1302. && "Unable 
  1303. access 
  1304. -- Drivers 
  1305. defComPort 
  1306. 8, x & CR)
  1307. 8) > 0
  1308. xlinkToSerialDLL()) 
  1309. s_VideoDisc_Init 
  1310. c"#1"
  1311. "Sorry, 
  1312.      <> 
  1313. "1234"
  1314. OpenComPort(
  1315. ,128,128)
  1316. defComPorts 
  1317. 8,128,128)
  1318. 8,4800,8,1,0,0)
  1319. "#1:" & 
  1320. c"3" 
  1321. c"stereo"
  1322. 3AD")
  1323. c"1" 
  1324. 1AD")
  1325. c"2" 
  1326. 2AD")
  1327. c"off" 
  1328. 0AD")
  1329. , what, 
  1330. "on" 
  1331. 1DS")
  1332. 0DS")
  1333. c"FR"
  1334. askVDPlayer("F")
  1335. c"CR"
  1336. c"Ti"
  1337. c"Disk"
  1338. ~("p",
  1339. ) + 2) 
  1340. ,Park,
  1341.  Unloading,
  1342.     ,Pause,Search,
  1343.     ,Multi-
  1344. c"type"
  1345. reader
  1346. author
  1347. audioControl
  1348. LinkToSerialDLL
  1349. VDCmd
  1350. videodisc
  1351. VDOpen
  1352. VDClose
  1353. isNumber
  1354. VDSelectAudio
  1355. itemOffset
  1356. VDSetDisplay
  1357. VDQuery
  1358. reader
  1359. sizeToPage
  1360. author
  1361. sizeToPage
  1362. videodisc
  1363. Set Port
  1364. s_videodisc_Init
  1365. VDOpen
  1366. Initialize
  1367. VDCmd
  1368. Close
  1369. VDClose
  1370. VDCmd
  1371. VDSetPort
  1372. VDCmd
  1373. VDCmd
  1374. speed
  1375. VDSetSpeed
  1376. Display
  1377. VDSetDisplay
  1378. VDCmd
  1379. VDCmd
  1380. Clear
  1381. VDCmd
  1382. VDplay
  1383. Still
  1384. VDCMD
  1385. VDCMD
  1386. VDCMD
  1387. VDCMD
  1388. VDCMD
  1389. chapter
  1390. VDCmd
  1391. VDCmd
  1392. VDCmd
  1393. Select
  1394. Audio
  1395. VDSelectAudio
  1396. Status
  1397. VDQuery
  1398. VDStatus
  1399. reject
  1400. VDCmd
  1401. whichOne
  1402. s_videoDisc_Init
  1403. s_videodisc_audio
  1404. s_videodisc_status
  1405. params
  1406. audioControl
  1407. level
  1408. dvaCmd
  1409. ,1 /A1/A2
  1410. audio
  1411. s_DVA_Init
  1412. s_audio_level
  1413. params
  1414. isNumber
  1415. suspend
  1416. itemOffset
  1417. theList
  1418. theItem
  1419. LinkToSerialDLL
  1420. TBK-COMM.DLL
  1421. closeComPort
  1422. flushComRxBuffer
  1423. flushComTxBuffer
  1424. isComRxReady
  1425. isComTxReady
  1426. openComPort
  1427. readComPort
  1428. setComPort
  1429. setComPortTxXlate
  1430. TBK_COMMVersion
  1431. writeComPort
  1432. Cannot find the correct version of TBK-COMM.DLL.
  1433. Unable to get access to the serial ports.
  1434. suspend
  1435. VDCmd
  1436. defComPort
  1437. readComPort
  1438. defComPort
  1439. writeComPort
  1440. defComPort
  1441. isComRxReady
  1442. defComPort
  1443. readComPort
  1444. s_videoDisc_Init
  1445. VDOpen
  1446. linkToSerialDLL
  1447. s_VideoDisc_Init
  1448. Sorry, control for one player at a time only in this version.
  1449. defComPort
  1450. OpenComPort
  1451. defComPorts
  1452. defComPort
  1453. defComPort
  1454. OpenComPort
  1455. defComPort
  1456. setComPort
  1457. defComPort
  1458. s_VideoDisc_Init
  1459. s_videoDisc_Init
  1460. params
  1461. which
  1462. VDClose
  1463. itemOffset
  1464. s_VideoDisc_Init
  1465. which
  1466. VDSelectAudio
  1467. stereo
  1468. VDCmd
  1469. VDCmd
  1470. right
  1471. VDCmd
  1472. VDCmd
  1473. params
  1474. which
  1475. VDSetDisplay
  1476. VDCmd
  1477. VDCmd
  1478. params
  1479. whichOne
  1480. VDQuery
  1481. askVDPlayer
  1482. askVDPlayer
  1483. askVDPlayer
  1484. askVDPlayer
  1485. Player
  1486. askVDPlayer
  1487. Door Open,Park,Set Up,Disc Unloading,Play,
  1488. Still,Pause,Search,Scan,Multi-Speed
  1489. Player
  1490. askVDPlayer
  1491. which
  1492. -- C.O. 3/27/90
  1493. -- Generic functions 
  1494. a videodisc player
  1495. -- The implementation 
  1496. specific
  1497. Pioneer LD-V2200 
  1498. LD-V4200.
  1499. You can use 
  1500. Asame 
  1501. ~ names 
  1502. -- arguments, 
  1503. fdifferent 
  1504.  bodies, 
  1505. control other
  1506. -- boards
  1507. -- This 
  1508. 8requires TBK-COMM.DLL 
  1509. serial port
  1510. -- Currently, only 
  1511. be controlled
  1512. cmd, params
  1513. 4s_videoDisc_Init, s_videodisc_audio, s_videodisc_status
  1514. E <> "Open" 
  1515. T <> "Set Port") 
  1516. s_videodisc_Init 
  1517. cmd1 
  1518. cmd2 
  1519. whichOne 
  1520. VDOpen(
  1521. "Initialize"
  1522. VDCmd("SA")
  1523. "Close"
  1524. VDClose(
  1525. c"Door" 
  1526. c"Tray"
  1527. AOP")
  1528. "Set"
  1529. " -- 
  1530. VDSetPort(
  1531. "stop"
  1532. c"ch"
  1533. CH" & 
  1534.  & "SM")
  1535. FR" & 
  1536.  & "SM")
  1537. "speed"
  1538. VDSetSpeed(
  1539. "Display"
  1540. VDSetDisplay(
  1541. "key" 
  1542. c"lock"
  1543. "on" 
  1544. 1KL")
  1545. 0KL")
  1546. "Clear"
  1547. "Play"
  1548. VDplay(
  1549. "Still"
  1550. VDCMD("ST")
  1551. "Step"
  1552. c"rev"
  1553. "Scan"
  1554. NNR")
  1555. ZNF")
  1556. "Seek"
  1557. "chapter" 
  1558. CH" & 
  1559.  & "SE")
  1560. TM" & 
  1561.  & "SE")
  1562. xsupported here
  1563. FR" & 
  1564.  & "SE")
  1565. "Select"
  1566. "Audio"
  1567. VDSelectAudio(
  1568. "Status"
  1569. c"fr"
  1570. VDCurrentFrame(
  1571. c"ch"
  1572. VDCurrentChapter(
  1573. c"ti"
  1574. VDCurrentTime(
  1575. c"dis"
  1576. VDDiskType(
  1577. VDPlayerType(
  1578. VDStatus(
  1579. "reject" 
  1580. audioControl 
  1581. 4s_DVA_Init, s_audio_level
  1582.  < 0 
  1583.  > 255
  1584. dvaCmd ("FADE" && 
  1585. v & ",1 /A1/A2")
  1586. -- assume that 
  1587. tsysbook 
  1588. controller
  1589. a dangerous assumption, but I can't think 
  1590. -- another way 
  1591. --== General purpose utilities
  1592. isNumber n
  1593. suspend 
  1594. n + 0
  1595. itemOffset theItem, theList
  1596. ci <= 
  1597. LinkToSerialDLL
  1598. --INT clearComBreak(WORD)
  1599. oseComPort(
  1600. %flushComRxBuffer(
  1601. ;flushComTxBuffer(
  1602. ? isComRxReady(
  1603. R isComTxReady(
  1604. wopenComPort(
  1605. STRING readComPort(
  1606. setComBreak(
  1607. setComPort(
  1608. setComPortTxXlate(
  1609. _TBK_COMMVersion()
  1610. writeComPort(
  1611. "Cannot find 
  1612.     correct version 
  1613. (    ." \
  1614. && "Unable 
  1615. access 
  1616. 7    s."
  1617. -- Drivers 
  1618. defComPort 
  1619. 8, x & CR)
  1620. 8) > 0
  1621. xlinkToSerialDLL()) 
  1622. s_VideoDisc_Init 
  1623. c"#1"
  1624. N     > 1
  1625. "Sorry, 
  1626. "1234"
  1627. OpenComPort(
  1628. ,128,128)
  1629. defComPorts 
  1630. 8,128,128)
  1631. 8,4800,8,1,0,0)
  1632. "#1:" & 
  1633. c"3" 
  1634. c"stereo"
  1635. 3AD")
  1636. c"1" 
  1637. 1AD")
  1638. c"2" 
  1639. 2AD")
  1640. c"off" 
  1641. 0AD")
  1642. , what, 
  1643. "on" 
  1644. 1DS")
  1645. 0DS")
  1646. reader
  1647. author
  1648. emOffset
  1649. audioControl
  1650. LinkToSerialDLL
  1651. VDCmd
  1652. videodisc
  1653. VDOpen
  1654. VDClose
  1655. isNumber
  1656. VDSelectAudio
  1657. itemOffset
  1658. VDSetDisplay
  1659. reader
  1660. sizeToPage
  1661. author
  1662. sizeToPage
  1663. videodisc
  1664. Set Port
  1665. s_videodisc_Init
  1666. VDOpen
  1667. Initialize
  1668. VDCmd
  1669. Close
  1670. VDClose
  1671. VDCmd
  1672. VDSetPort
  1673. VDCmd
  1674. VDCmd
  1675. speed
  1676. VDSetSpeed
  1677. Display
  1678. VDSetDisplay
  1679. VDCmd
  1680. VDCmd
  1681. Clear
  1682. VDCmd
  1683. VDplay
  1684. Still
  1685. VDCMD
  1686. VDCMD
  1687. VDCMD
  1688. VDCMD
  1689. VDCMD
  1690. chapter
  1691. VDCmd
  1692. VDCmd
  1693. VDCmd
  1694. Select
  1695. Audio
  1696. VDSelectAudio
  1697. Status
  1698. VDCurrentFrame
  1699. VDCurrentChapter
  1700. VDCurrentTime
  1701. VDDiskType
  1702. player
  1703. VDPlayerType
  1704. VDStatus
  1705. reject
  1706. VDCmd
  1707. whichOne
  1708. s_videoDisc_Init
  1709. s_videodisc_audio
  1710. s_videodisc_status
  1711. params
  1712. audioControl
  1713. level
  1714. dvaCmd
  1715. ,1 /A1/A2
  1716. audio
  1717. s_DVA_Init
  1718. s_audio_level
  1719. params
  1720. isNumber
  1721. suspend
  1722. itemOffset
  1723. theList
  1724. theItem
  1725. LinkToSerialDLL
  1726. TBK-COMM.DLL
  1727. closeComPort
  1728. flushComRxBuffer
  1729. flushComTxBuffer
  1730. isComRxReady
  1731. isComTxReady
  1732. openComPort
  1733. readComPort
  1734. setComPort
  1735. setComPortTxXlate
  1736. TBK_COMMVersion
  1737. writeComPort
  1738. Cannot find the correct version of TBK-COMM.DLL.
  1739. Unable to get access to the serial ports.
  1740. suspend
  1741. VDCmd
  1742. defComPort
  1743. readComPort
  1744. defComPort
  1745. writeComPort
  1746. defComPort
  1747. isComRxReady
  1748. defComPort
  1749. readComPort
  1750. s_videoDisc_Init
  1751. VDOpen
  1752. linkToSerialDLL
  1753. s_VideoDisc_Init
  1754. Sorry, control for one player at a time only in this version.
  1755. defComPort
  1756. OpenComPort
  1757. defComPorts
  1758. defComPort
  1759. defComPort
  1760. OpenComPort
  1761. defComPort
  1762. setComPort
  1763. defComPort
  1764. s_VideoDisc_Init
  1765. s_videoDisc_Init
  1766. params
  1767. which
  1768. VDClose
  1769. itemOffset
  1770. s_VideoDisc_Init
  1771. which
  1772. VDSelectAudio
  1773. stereo
  1774. VDCmd
  1775. VDCmd
  1776. right
  1777. VDCmd
  1778. VDCmd
  1779. params
  1780. which
  1781. VDSetDisplay
  1782. VDCmd
  1783. VDCmd
  1784. params
  1785. whichOne
  1786. setKeyColor
  1787. s_DVA_Key_Color
  1788. Freeze
  1789. DVACmd
  1790. FSTORE INPUT 0,2,DISABLE
  1791. s_Frozen
  1792. unFreeze
  1793. DVACmd
  1794. FSTORE INPUT 0,2,ENABLE
  1795. s_Frozen
  1796. DVAZoom
  1797. dvaCmd
  1798. FSTORE IREGION 0,2,
  1799. dvaCmd
  1800. FSTORE IREGION 0,3,FULL
  1801. s_video_zoomed
  1802. s_inRect
  1803. ZoomRect
  1804. MICLoaded
  1805. !EOFF
  1806. x yx z
  1807. FxADE 0,1,3,5 /V;!STATUS
  1808. testString
  1809. YaB|B|
  1810. 6930,5130
  1811. -- C.O. 3/27/90
  1812. -- Generic functions 
  1813. a videodisc player
  1814. -- The implementation 
  1815. specific
  1816. Pioneer LD-V2200 
  1817. LD-V4200.
  1818. You can use 
  1819. Asame 
  1820. ~ names 
  1821. -- arguments, 
  1822. fdifferent 
  1823.  bodies, 
  1824. control other
  1825. -- boards
  1826. -- This 
  1827. 8requires TBK-COMM.DLL 
  1828. serial port
  1829. -- Currently, only 
  1830. be controlled
  1831. cmd, params
  1832. 4s_videoDisc_Init, s_videodisc_audio, s_videodisc_status
  1833. E <> "Open" 
  1834. T <> "Set Port") 
  1835. s_videodisc_Init 
  1836. cmd1 
  1837. cmd2 
  1838. whichOne 
  1839. VDOpen(
  1840. VDCmd("SA")
  1841. "Close"
  1842. VDClose(
  1843. c"Door" 
  1844. c"Tray"
  1845. AOP")
  1846. "Set"
  1847. " -- 
  1848. VDSetPort(
  1849. "stop"
  1850. c"ch"
  1851. CH" & 
  1852.  & "SM")
  1853. FR" & 
  1854.  & "SM")
  1855. "speed"
  1856.  & "SP")
  1857. "Display"
  1858. VDSetDisplay(
  1859. "key" 
  1860. c"lock"
  1861. "on" 
  1862. 1KL")
  1863. 0KL")
  1864. c"color"
  1865. 16RC")
  1866. 0RC")
  1867. "Clear"
  1868. "Play"
  1869. VDplay(
  1870. "Still"
  1871. VDCMD("ST")
  1872. "Pause"
  1873. "Step"
  1874. c"rev"
  1875. "Scan"
  1876. eNR")
  1877. qNF")
  1878. "Seek"
  1879. "chapter" 
  1880. CH" & 
  1881.  & "SE")
  1882. TM" & 
  1883.  & "SE")
  1884. xsupported here
  1885. FR" & 
  1886.  & "SE")
  1887. "Select"
  1888. "Audio"
  1889. VDSelectAudio(
  1890. "Status"
  1891. VDQuery(
  1892. VDStatus(
  1893. "reject" 
  1894. --== General purpose utilities
  1895. isNumber n
  1896. suspend 
  1897. n + 0
  1898. itemOffset theItem, theList
  1899. ci <= 
  1900. wordoffset theWord, theStr
  1901. ci <= 
  1902. LinkToSerialDLL
  1903. --INT clearComBreak(WORD)
  1904. oseComPort(
  1905. %flushComRxBuffer(
  1906. ;flushComTxBuffer(
  1907. ? isComRxReady(
  1908. R isComTxReady(
  1909. wopenComPort(
  1910. STRING readComPort(
  1911. setComBreak(
  1912. setComPort(
  1913. setComPortTxXlate(
  1914. _TBK_COMMVersion()
  1915. writeComPort(
  1916. "Cannot find 
  1917. correct version 
  1918. && "Unable 
  1919. access 
  1920. -- Drivers 
  1921. defComPort 
  1922. 8, x & CR)
  1923. 8) > 0
  1924. xlinkToSerialDLL()) 
  1925. s_VideoDisc_Init 
  1926. c"#1"
  1927. "Sorry, 
  1928.       <> 
  1929. "1234"
  1930. OpenComPort(
  1931. c    ,128,128)
  1932. defComPorts 
  1933. 8,128,128)
  1934. 8,4800,8,1,0,0)
  1935. "#1:" & 
  1936. CloseComPort(
  1937. c"3" 
  1938. c"stereo"
  1939. 6    3AD")
  1940. c"1" 
  1941. Y    1AD")
  1942. c"2" 
  1943. |    2AD")
  1944. c"off" 
  1945.     0AD")
  1946. , what, 
  1947. "on" 
  1948.     1DS")
  1949.     0DS")
  1950. c"FR"
  1951. askVDPlayer("F")
  1952. c"CH"
  1953. c"Ti"
  1954. c"Disk"
  1955. loaded"
  1956.  codes" 
  1957. "Has 
  1958. "unknown" 
  1959. "Side 1" 
  1960. "12 inch" 
  1961. "CAV" 
  1962. "CLV" 
  1963. c"type"
  1964. "P1506"
  1965. 8000 (" & 
  1966. & ")"
  1967. "P1507"
  1968. (" & 
  1969. & ")"
  1970. ~("p",
  1971. ) + 2) 
  1972. ,Park,
  1973.  Unloading,
  1974. ,Search,
  1975. ,Multi-Speed"
  1976. c"KeyData"
  1977. p, "?" & 
  1978.  & CR)
  1979. p) = 0
  1980. p) > 0
  1981. wordOffset("
  1982. ", cmd)
  1983. + 1) 
  1984. s <> 
  1985. "CH" & 
  1986. P") < 4 -- 
  1987. xready 
  1988. s & "SE") < 0
  1989.  marker
  1990. + 1) 
  1991. s <> 
  1992. "CH" & 
  1993. s & "SM") < 0
  1994.  & "SPMR")
  1995.  & "SPMF")
  1996. author
  1997. reader
  1998. enterbook
  1999. nkToSerialDLL
  2000. videodisc
  2001. VDCmd
  2002. VDOpen
  2003. itemOffset
  2004. VDClose
  2005. VDSelectAudio
  2006. wordoffset
  2007. VDSetDisplay
  2008. VDQuery
  2009. isNumber
  2010. askVDPlayer
  2011. LinkToSerialDLL
  2012. VDPlay
  2013. reader
  2014. sizeToPage
  2015. author
  2016. sizeToPage
  2017. enterbook
  2018. reader
  2019. videodisc
  2020. Set Port
  2021. s_videodisc_Init
  2022. VDOpen
  2023. VDCmd
  2024. Close
  2025. VDClose
  2026. VDCmd
  2027. VDSetPort
  2028. VDCmd
  2029. VDCmd
  2030. speed
  2031. VDCmd
  2032. Display
  2033. VDSetDisplay
  2034. VDCmd
  2035. VDCmd
  2036. color
  2037. black
  2038. VDCmd
  2039. VDCmd
  2040. Clear
  2041. VDCmd
  2042. VDplay
  2043. Still
  2044. VDCMD
  2045. Pause
  2046. VDCmd
  2047. VDCMD
  2048. VDCMD
  2049. VDCMD
  2050. VDCMD
  2051. chapter
  2052. VDCmd
  2053. VDCmd
  2054. VDCmd
  2055. Select
  2056. Audio
  2057. VDSelectAudio
  2058. Status
  2059. VDQuery
  2060. VDStatus
  2061. reject
  2062. VDCmd
  2063. whichOne
  2064. s_videoDisc_Init
  2065. s_videodisc_audio
  2066. s_videodisc_status
  2067. params
  2068. isNumber
  2069. suspend
  2070. itemOffset
  2071. theList
  2072. theItem
  2073. wordoffset
  2074. theStr
  2075. theWord
  2076. LinkToSerialDLL
  2077. TBK-COMM.DLL
  2078. closeComPort
  2079. flushComRxBuffer
  2080. flushComTxBuffer
  2081. isComRxReady
  2082. isComTxReady
  2083. openComPort
  2084. readComPort
  2085. setComPort
  2086. setComPortTxXlate
  2087. TBK_COMMVersion
  2088. writeComPort
  2089. Cannot find the correct version of TBK-COMM.DLL.
  2090. Unable to get access to the serial ports.
  2091. suspend
  2092. VDCmd
  2093. defComPort
  2094. readComPort
  2095. defComPort
  2096. writeComPort
  2097. defComPort
  2098. isComRxReady
  2099. defComPort
  2100. readComPort
  2101. s_videoDisc_Init
  2102. VDOpen
  2103. linkToSerialDLL
  2104. s_VideoDisc_Init
  2105. Sorry, control for one player at a time only in this version.
  2106. defComPort
  2107. OpenComPort
  2108. defComPorts
  2109. defComPort
  2110. defComPort
  2111. OpenComPort
  2112. defComPort
  2113. setComPort
  2114. defComPort
  2115. s_VideoDisc_Init
  2116. s_videoDisc_Init
  2117. params
  2118. which
  2119. VDClose
  2120. defComPort
  2121. CloseComPort
  2122. s_VideoDisc_Init
  2123. which
  2124. VDSelectAudio
  2125. stereo
  2126. VDCmd
  2127. VDCmd
  2128. right
  2129. VDCmd
  2130. VDCmd
  2131. params
  2132. which
  2133. VDSetDisplay
  2134. VDCmd
  2135. VDCmd
  2136. params
  2137. whichOne
  2138. VDQuery
  2139. askVDPlayer
  2140. askVDPlayer
  2141. askVDPlayer
  2142. askVDPlayer
  2143. No disc loaded
  2144. No chapter codes
  2145. Has chapter codes
  2146. unknown
  2147. Side 1
  2148. Side 2
  2149. unknown
  2150. 12 inch
  2151. 8 inch
  2152. unknown
  2153. unknown
  2154. Player
  2155. askVDPlayer
  2156. P1506
  2157. Pioneer LD-V8000 (
  2158. P1507
  2159. Pioneer LD-V2200 (
  2160. Player
  2161. askVDPlayer
  2162. isNumber
  2163. Door Open,Park,Set Up,Disc Unloading,Play,
  2164. Still,Pause,Search,Scan,Multi-Speed
  2165. KeyData
  2166. askVDPlayer
  2167. which
  2168. askVDPlayer
  2169. defComPort
  2170. writeComPort
  2171. isComRxReady
  2172. isComRxReady
  2173. readComPort
  2174. VDPlay
  2175. wordOffset
  2176. chapter
  2177. VDCmd
  2178. wordOffset
  2179. chapter
  2180. VDCmd
  2181. VDCmd
  2182. VDCmd
  2183. 60SPMR
  2184. VDCmd
  2185. VDCmd
  2186. params
  2187. waB|B|
  2188. decComPort
  2189. -- C.O. 5/17/90
  2190. -- Housekeeping code 
  2191. 8only
  2192. 4s_author
  2193. 4s_videodisc_open
  2194. ("close")
  2195. trim s -- lop off whitespace 
  2196. U(s) > 0 
  2197. s) <= 32
  2198. U(s) > 0 
  2199. s) <= 32
  2200. filterCtrl s -- 
  2201. T< " "
  2202. ) >= 32
  2203. legalName s, maxL -- 
  2204. , s) > 0
  2205. ,s)) 
  2206. ~(",",s)
  2207. p > 0
  2208. suspend 
  2209. X"TBKWIN.DLL"
  2210. INT popMenu(WORD, STRING, 
  2211. "titles" 
  2212. /"reference"
  2213. C(mL)
  2214. mL) & CRLF 
  2215. lc > 20 
  2216. (lc / 2) 
  2217. Bi-1 
  2218. Y) <> "|"
  2219. "|" & 
  2220. , sysMagnification,\
  2221. -- The implementation 
  2222. the functions 
  2223. specific
  2224. Pioneer LD-V2200 
  2225. LD-V4200.
  2226. You can use 
  2227. Isame 
  2228. L names 
  2229. -- arguments, 
  2230. fdifferent 
  2231. r bodies, 
  2232. control other
  2233. -- boards
  2234. -- This 
  2235. 8requires TBK-COMM.DLL 
  2236. serial port
  2237. -- Currently, 
  2238.  player 
  2239. be controlled
  2240.  cmd, params
  2241. 4s_videoDisc_Init, s_videodisc_audio, s_videodisc_status, s_disctype
  2242. Q <> "Open" 
  2243. ` <> "Set Port") 
  2244. s_videodisc_Init 
  2245. cmd1 
  2246. cmd2 
  2247. whichOne 
  2248. s_discType 
  2249. VDOpen(
  2250. c"Reset"
  2251. askVDPlayer("SA",60)
  2252. VDQuery(1,"
  2253. "Close"
  2254. VDClose(
  2255. (cmd 
  2256. c"Door" 
  2257. c"Tray") 
  2258. |OP",25)
  2259. CO",25)
  2260. "Set"
  2261. " -- 
  2262. VDSetPort(
  2263. "stop"
  2264. c"ch"
  2265. CH" & pad(
  2266. ) & "SM", 2)
  2267. "clv"
  2268. TM" & stripTime(
  2269. ) & "SM")
  2270. FR" & 
  2271. ,5) & "SM")
  2272. "speed"
  2273. VDCmd(
  2274.  & "SP")
  2275. "Display"
  2276. VDSetDisplay(
  2277. "key" 
  2278. c"lock"
  2279. "on" 
  2280. r"1KL")
  2281. "0KL")
  2282. c"color"
  2283. "16RC")
  2284. "0RC")
  2285. "Clear"
  2286. "CL")
  2287. VDplay(
  2288. "Still"
  2289. VDCMD("ST")
  2290. "Pause"
  2291. "PA")
  2292. "Step"
  2293. c"rev"
  2294. "Scan"
  2295. fNR")
  2296. rNF")
  2297. "Seek"
  2298. "chapter" 
  2299. "CH" & 
  2300.  & "SE")
  2301. "TM" & 
  2302. ) & "SE")
  2303. "FR" & 
  2304.  & "SE")
  2305. "Select"
  2306. "Audio"
  2307. VDSelectAudio(
  2308. "Status"
  2309. VDStatus(
  2310. "reject"
  2311. RJ",20)
  2312. isNumber(
  2313. RJ",20)
  2314. --== General purpose utilities
  2315. n + 0
  2316. itemOffset theItem, theList
  2317. ci <= 
  2318. wordoffset theWord, theStr
  2319. ci <= 
  2320. LinkToSerialDLL
  2321. clearComBreak(
  2322. closeComPort(
  2323. flushComRxBuffer(
  2324. flushComTxBuffer(
  2325.  isComRxReady(
  2326.  isComTxReady(
  2327. openComPort(
  2328.  readComPort(
  2329. setComPort(
  2330. setComPortTxXlate(
  2331.  TBK_COMMVersion()
  2332. writeComPort(
  2333. "Cannot find 
  2334.     correct version 
  2335. 5    ." \
  2336. && "Unable 
  2337. access 
  2338. D    s."
  2339. -- Drivers 
  2340. defComPort 
  2341. 8, x & CR)
  2342. 8) > 0
  2343. xlinkToSerialDLL()) 
  2344. s_VideoDisc_Init 
  2345. c"#1"
  2346. <     > 1
  2347. "Sorry, 
  2348. cN <> 
  2349. "1234"
  2350. ("Use 
  2351.      COM 
  2352.  (1, 2, 3 
  2353. 4?)" 
  2354. "Cancel"
  2355. "1234"
  2356. defComport 
  2357. cidID 
  2358. OpenComPort(cN,128,128)
  2359. " & cN
  2360. xavailable. " 
  2361. busy. " 
  2362. p1 & "Try another one?" \
  2363. f"COM2" 
  2364. "COM3" 
  2365. p1 & "
  2366. vCOM1?" 
  2367. f"Yes" 
  2368. cN > 2
  2369. p1 & "
  2370. baud 
  2371. ,8,1,0,0)
  2372. X",1)
  2373. Y,8,1,0,0)
  2374. X",1)
  2375. X",1)
  2376. on COM"\
  2377. 8&& "
  2378. wrong 
  2379. setup."\
  2380. && "Check that 
  2381. turned on 
  2382. connections are"\
  2383. Again" 
  2384. anything 
  2385. "#1:" & 
  2386. CloseComPort(
  2387. c"3" 
  2388. c"stereo"
  2389. "3AD")
  2390. c"1" 
  2391. "1AD")
  2392. c"2" 
  2393. "2AD")
  2394. c"off" 
  2395. "0AD")
  2396. , what, 
  2397. "on" 
  2398. "1DS")
  2399. "0DS")
  2400. c"FR"
  2401. c"E0"
  2402. "N/A"
  2403. c"CH"
  2404. c"E0"
  2405. "N/A"
  2406. c"TI"
  2407. c"E0"
  2408. "N/A"
  2409. & ":" & 
  2410. & ":" & 
  2411. c"Disk"
  2412.  loaded"
  2413.  codes" 
  2414. "Has 
  2415. "unknown" 
  2416. "Side 1" 
  2417. "12 inch" 
  2418. "CAV" 
  2419. "CLV" 
  2420. r -- "
  2421. "P1506"
  2422. 8000 (" & 
  2423. & ")"
  2424. "P1507"
  2425. (" & 
  2426. & ")"
  2427. "No response"
  2428. "Dead"
  2429. ~("p",
  2430. ) + 2) 
  2431. ,Park,
  2432.  Unloading,
  2433. ,Search,
  2434. ,Multi-Speed"
  2435. c"KeyData"
  2436. maxpause
  2437. "?" & 
  2438.  & CR)
  2439. systf 
  2440. maxPause <> 
  2441. maxT 
  2442. cursor 
  2443. crsr 
  2444. p) = 0
  2445. - st > 
  2446. - st > 2
  2447. F> 36
  2448. p) > 0
  2449. h, r) > 0
  2450. h, r) 
  2451. xready 
  2452. -- initialize 
  2453. wordOffset("
  2454. ", cmd)
  2455. + 1) 
  2456. s <> 
  2457. "TM" & 
  2458. "FR" & s
  2459. + 2) 
  2460. "CH" & 
  2461. "frame"
  2462. "FR" & 
  2463. "TM" & 
  2464. "No Response" 
  2465. s & "SE",10) <> "R"
  2466.  marker
  2467. + 1) 
  2468. s <> 
  2469. "TM" & 
  2470. "FR" & 
  2471. "CH" & 
  2472. "FR" & 
  2473. s & "SM") <> "R"
  2474.  & "SPMR")
  2475.  & "SPMF")
  2476. "PL")
  2477. vdSetPort n
  2478. n < 1 
  2479. n > 4
  2480. currentP 
  2481. 1, n)
  2482. pad s, n
  2483. U(s) < n
  2484.  t -- 
  2485. cp > 0
  2486. p = 0
  2487. rp > 3
  2488. enterbook
  2489. author
  2490. leavebook
  2491. reader
  2492. rightButtonDoubleClick
  2493. alName
  2494. LinkToSerialDLL
  2495. VDCmd
  2496. videodisc
  2497. VDOpen
  2498. filterCtrl
  2499. VDClose
  2500. VDSelectAudio
  2501. isNumber
  2502. VDSetDisplay
  2503. VDQuery
  2504. itemOffset
  2505. askVDPlayer
  2506. VDPlay
  2507. wordoffset
  2508. vdSetPort
  2509. legalName
  2510. stripTime
  2511. reader
  2512. sizeToPage
  2513. author
  2514. sizeToPage
  2515. s_author
  2516. enterbook
  2517. close
  2518. videodisc
  2519. reader
  2520. s_videodisc_open
  2521. leavebook
  2522. filterCtrl
  2523. legalName
  2524. filterCtrl
  2525. rightButtonDoubleClick
  2526. TBKWIN.DLL
  2527. popMenu
  2528. titles
  2529. reference
  2530. popMenu
  2531. legalName
  2532. title
  2533. suspend
  2534. videodisc
  2535. Set Port
  2536. s_videodisc_Init
  2537. s_discType
  2538. s_videodisc_Init
  2539. VDOpen
  2540. Reset
  2541. askVDPlayer
  2542. VDQuery
  2543. Close
  2544. VDClose
  2545. askVDPlayer
  2546. close
  2547. askVDPlayer
  2548. VDSetPort
  2549. askVDPlayer
  2550. s_discType
  2551. stripTime
  2552. askVDPlayer
  2553. askVDPlayer
  2554. speed
  2555. VDCmd
  2556. Display
  2557. VDSetDisplay
  2558. VDCmd
  2559. VDCmd
  2560. color
  2561. black
  2562. VDCmd
  2563. VDCmd
  2564. Clear
  2565. VDCmd
  2566. VDplay
  2567. Still
  2568. VDCMD
  2569. Pause
  2570. VDCmd
  2571. VDCMD
  2572. VDCMD
  2573. VDCMD
  2574. VDCMD
  2575. chapter
  2576. VDCmd
  2577. stripTime
  2578. VDCmd
  2579. VDCmd
  2580. Select
  2581. Audio
  2582. VDSelectAudio
  2583. Status
  2584. VDQuery
  2585. VDStatus
  2586. reject
  2587. askVDPlayer
  2588. askVDPlayer
  2589. isNumber
  2590. askVDPlayer
  2591. whichOne
  2592. s_videoDisc_Init
  2593. s_videodisc_audio
  2594. s_videodisc_status
  2595. s_disctype
  2596. params
  2597. isNumber
  2598. suspend
  2599. itemOffset
  2600. theList
  2601. theItem
  2602. wordoffset
  2603. theStr
  2604. theWord
  2605. LinkToSerialDLL
  2606. TBK-COMM.DLL
  2607. closeComPort
  2608. flushComRxBuffer
  2609. flushComTxBuffer
  2610. isComRxReady
  2611. isComTxReady
  2612. openComPort
  2613. readComPort
  2614. setComPort
  2615. setComPortTxXlate
  2616. TBK_COMMVersion
  2617. writeComPort
  2618. Cannot find the correct version of TBK-COMM.DLL.
  2619. Unable to get access to the serial ports.
  2620. suspend
  2621. VDCmd
  2622. defComPort
  2623. readComPort
  2624. defComPort
  2625. writeComPort
  2626. defComPort
  2627. isComRxReady
  2628. defComPort
  2629. readComPort
  2630. s_videoDisc_Init
  2631. VDOpen
  2632. linkToSerialDLL
  2633. s_VideoDisc_Init
  2634. Sorry, control for one player at a time only in this version.
  2635. defComPort
  2636. defComPort
  2637. Use which COM port (1, 2, 3 or 4?)
  2638. Cancel
  2639. defComPort
  2640. defComport
  2641. OpenComPort
  2642. Serial port COM
  2643.  is not available. 
  2644.  is busy. 
  2645. Try another one?
  2646. Cancel
  2647. defComPort
  2648. defComPort
  2649. Try COM1?
  2650. defComport
  2651. Try another port?
  2652. Cancel
  2653. defComPort
  2654. defComPort
  2655. defComPort
  2656. setComPort
  2657. askVDPlayer
  2658. defComPort
  2659. setComPort
  2660. askVDPlayer
  2661. askVDPlayer
  2662. No videodisc player on COM
  2663. defComPort
  2664. or wrong player setup.
  2665. Check that the player is turned on and connections are
  2666. correct.
  2667. Try Again
  2668. Cancel
  2669. Cancel
  2670. defComPort
  2671. closeComPort
  2672. defComPort
  2673. s_VideoDisc_Init
  2674. Cancel
  2675. anything
  2676. player
  2677. cidID
  2678. s_videoDisc_Init
  2679. params
  2680. which
  2681. VDClose
  2682. defComPort
  2683. CloseComPort
  2684. s_VideoDisc_Init
  2685. which
  2686. VDSelectAudio
  2687. stereo
  2688. VDCmd
  2689. VDCmd
  2690. right
  2691. VDCmd
  2692. VDCmd
  2693. params
  2694. which
  2695. VDSetDisplay
  2696. VDCmd
  2697. VDCmd
  2698. params
  2699. whichOne
  2700. VDQuery
  2701. askVDPlayer
  2702. askVDPlayer
  2703. askVDPlayer
  2704. isNumber
  2705. askVDPlayer
  2706. No disc loaded
  2707. No chapter codes
  2708. Has chapter codes
  2709. unknown
  2710. Side 1
  2711. Side 2
  2712. unknown
  2713. 12 inch
  2714. 8 inch
  2715. unknown
  2716. unknown
  2717. Player
  2718. askVDPlayer
  2719. P1506
  2720. Pioneer LD-V8000 (
  2721. P1507
  2722. Pioneer LD-V2200 (
  2723. Player
  2724. askVDPlayer
  2725. No response
  2726. isNumber
  2727. Door Open,Park,Set Up,Disc Unloading,Play,
  2728. Still,Pause,Search,Scan,Multi-Speed
  2729. KeyData
  2730. askVDPlayer
  2731. s_disctype
  2732. which
  2733. askVDPlayer
  2734. defComPort
  2735. writeComPort
  2736. seconds
  2737. maxPause
  2738. maxPause
  2739. isComRxReady
  2740. No response
  2741. isComRxReady
  2742. readComPort
  2743. cursor
  2744. systf
  2745. maxpause
  2746. VDPlay
  2747. VDQuery
  2748. askVDPlayer
  2749. isNumber
  2750. askVDPlayer
  2751. wordOffset
  2752. stripTime
  2753. isNumber
  2754. chapter
  2755. frame
  2756. stripTime
  2757. No Response
  2758. askVDPlayer
  2759. wordOffset
  2760. stripTime
  2761. isNumber
  2762. chapter
  2763. frame
  2764. askVDPlayer
  2765. VDCmd
  2766. VDCmd
  2767. 60SPMR
  2768. VDCmd
  2769. VDCmd
  2770. s_discType
  2771. params
  2772. vdSetPort
  2773. isNumber
  2774. defComPort
  2775. VDClose
  2776. VDOpen
  2777. VDOpen
  2778. currentP
  2779. s_videodisc_Init
  2780. stripTime
  2781. 00000
  2782. rightbuttonDown
  2783. 4s_display_fr
  2784. videodisc("
  2785. status chapter")
  2786. I",0)
  2787. uttonDown
  2788. rightbuttonDown
  2789. leavebackground
  2790. rightbuttonDown
  2791. set display
  2792. videodisc
  2793. status chapter
  2794. videodisc
  2795. set display
  2796. videodisc
  2797. status chapter
  2798. videodisc
  2799. s_display_fr
  2800. leavebackground
  2801. s_display_fr
  2802. videodisc(status frame)
  2803. ideodisc
  2804. videodisc("status frame")
  2805. videodisc("status chapter"))
  2806. Returns the current frame or chapter number for CAV discs.
  2807. reference
  2808. The videodisc   function controls the videodisc player through the serial port.  You can use any of the serial ports available on the machine (COM1 through COM4).  To select the serial port, set the user-defined property defComPort  of the current book to the number of the current port:  1 for COM1, 2 for COM2, etc.
  2809. Windows is very fussy about serial ports.  If any problem occurs while a port is in use or if a port was not closed properly before leaving Windows, you may have to cold-boot your machine in order for the port to work again.  To avoid problems, be sure to faithfully call videodisc("open") and videodisc("close") at the beginning and end of a session.  Also call videodisc("set port", x) to change ports safely.
  2810. TBK-COMM.DLL can service several ports with different settings at the same time.  The ports not used by videodisc are still available for other uses.
  2811.         The reference section begins on the next page..e reference section begins on the next page.
  2812. Serial Port Control
  2813. reference
  2814. disable 
  2815. "Next" 
  2816. enable 
  2817. adjust x --**
  2818. -- reset proportions 
  2819. moved
  2820. objs 
  2821. -15, 
  2822. -15, 
  2823. -15,\
  2824. -15, 
  2825. -15, 
  2826. -15, 
  2827. - 15,\
  2828. defBounds 
  2829. setCaption what
  2830. 0,50.1875,0
  2831. trim(
  2832. "title")
  2833. legalname(
  2834. , 60)
  2835. "titles" 
  2836. default
  2837. djust
  2838. setCaption
  2839. disable
  2840. enterpage
  2841. enable
  2842. adjust
  2843. saveas
  2844. enterpage
  2845. ox%disable
  2846. enable
  2847. adjust
  2848. defBounds
  2849. setCaption
  2850. disable
  2851. enable
  2852. 0,0,0
  2853. saveas
  2854. title
  2855. title
  2856. legalname
  2857. titles
  2858. default
  2859.     ,    T    
  2860. title
  2861. odefBounds
  2862. adjust 
  2863. buttonUp
  2864. buttonDown
  2865. buttonUp
  2866. buttonDown
  2867. defBounds
  2868. adjust
  2869. defBounds
  2870. 5670,4680,6885,5085
  2871. Go Back 
  2872. odefBounds
  2873. adjust 
  2874. buttonUp
  2875. buttonDown
  2876. buttonUp
  2877. buttonDown
  2878. defBounds
  2879. adjust
  2880. defBounds
  2881. 15,4650,1380,5085
  2882. Demo 
  2883. Previous
  2884. odefBounds
  2885. adjust 
  2886. buttonUp
  2887. buttonDown
  2888. buttonUp
  2889. previous
  2890. buttonDown
  2891. defBounds
  2892. adjust
  2893. defBounds
  2894. 3090,4680,4305,5085
  2895. Previous 
  2896. odefBounds
  2897. adjust 
  2898. buttonUp
  2899. buttonDown
  2900. buttonUp
  2901. buttonDown
  2902. defBounds
  2903. adjust
  2904. defBounds
  2905. 4410,4680,5580,5085
  2906. Next 
  2907. Reference 
  2908. titles
  2909. videodisc(close)
  2910. videodisc(initialize)
  2911. videodisc(open door)
  2912. videodisc(open)
  2913. videodisc(pause)
  2914. videodisc(play [from <spec>] [to <spec>] [reverse]
  2915. videodisc(reject)
  2916. videodisc(scan)videodisc(scan reverse)
  2917. videodisc(seek [frame|time|chapter]
  2918. videodisc(select audio
  2919. videodisc(set background color
  2920. videodisc(set key lock
  2921. videodisc(set port
  2922. videodisc(set speed
  2923. videodisc(set stop [frame|chapter|time]
  2924. videodisc(status  <status item>)
  2925. videodisc(status disc)
  2926. videodisc(status frame)
  2927. videodisc(status time)
  2928. videodisc(status keydata)
  2929. videodisc(status player)
  2930. videodisc(status playerType)
  2931. videodisc(step)
  2932. videodisc(still)
  2933. videodisc(stop)
  2934. 7 of page id 29
  2935. recordfield id 7 of page id 28
  2936. recordfield id 7 of page id 30
  2937. videodisc("Step")
  2938. videodisc("Step reverse")
  2939. videodisc("still")
  2940. videodisc("stop")
  2941. videodisc("reject")
  2942. videodisc(open)
  2943. You must call videodisc with the "Open" command before any other calls to the function.  The function will return -1 if the initialization failed.  
  2944. After calling this function, the serial port to communicate with the videodisc player is open.  More than one instance can use this port to talk to the player via TBK-COMM.DLL, but this requires extreme care.  
  2945. You can check easily that the videodisc driver is open:  If you call the function videodisc   with any parameter other than "open" or "close" and you get an error, it is not open. 
  2946. videodisc("open")
  2947. videodisc(close)
  2948. videodisc("close")
  2949. Call video with this command when you end the session, to be sure that the serial port you were using is released and things are left tidy.  
  2950. See also videodisc("Open").
  2951. Example: 
  2952. to handle leaveBook
  2953.     system s_videodisc_OK
  2954.     if s_videodisc_OK
  2955.         get videodisc("stop")
  2956.         get videodisc("close")
  2957.     end if
  2958. videodisc(initialize)
  2959. ideodisc(r
  2960. These two commands have the same effect.  If the videodisc is in any play mode, playing stops.  The player spins the videodisc and seeks frame 00001.  When that frame is found, the player remains in still mode.
  2961. Example:
  2962.     get videodisc("reset") -- gets the disc ready to play from frame 1
  2963. videodisc("initialize")
  2964. videodisc("reset")
  2965. videodisc(scan)videodisc(scan re
  2966. Scans the videodisc from the current position, skipping about 400 frames each time it is called.
  2967. Example
  2968.     to handle buttonStillDown
  2969.         get videodisc("scan")
  2970.     endkey color), the effect of this function call remains invisible until you set the chroma key color or you call video ("set inset", <rectangle>).
  2971. The system variable s_video_level   is set to the current video level. 
  2972. video("fade in")   sets it to 255 , and video("fade out")   sets it to 0 .
  2973. <length> is in hundredths of a second.  If <length> is not specified, the fade will take one second.
  2974. Note:  Control returns to your application as soon as the fade is initiated, not when it is complete.
  2975. videodisc("scan")
  2976. videodisc("scan reverse"),<length>])]))>])
  2977. videodisc(close)
  2978. c(initialize)
  2979. videodisc
  2980. videodisc(pause)
  2981. videodisc(status  <status item>)
  2982. Returns information about the status of the player.  See the various pages that follow for information on specific items.a rectangle in ToolBook units
  2983. Example: get video("set inset", bounds of rectangle "inset reference")
  2984. You can also specify a rectangle in pixels relative to the screen.  Simply add the word "pixels" at the end of the rectangle string. 
  2985. Example: get video("set inset","10,0,450,340 pixels")
  2986. <rectangle> can also be one of the following values:
  2987. full screen  -- the video will take over the full screen, regardless of chroma key color setting
  2988. none  -- the video inset is removed and chroma key is turned off
  2989. videodisc("status  <status item>")rectangle>)
  2990. videodisc(open door)
  2991. videodisc(Seek [frame|time|chapt
  2992. videodisc(seek [frame|time|chapt
  2993. videodisc("seek [frame|time|chapter]", <number>)
  2994. reeze")
  2995. Positions the player to the specified frame, time or chapter, and leaves it in still mode.  The second word after seek is optional. If omitted, frame is assumed.  Seek time is not implemented on all players, and works only on CLV discs when implemented.
  2996. Examples:
  2997.     get videodisc("Seek", 8907)      -- goes to frame 8907
  2998.     get videodisc("Seek chapter", 3) -- goes to first frame of chapter 3
  2999.     get videodisc("Seek frame", 8907) -- goes to frame 8907
  3000. ,b(;@
  3001.  ,$6,b^aR
  3002.