home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / mcistrng / mcistrng.hlp (.txt) < prev    next >
OS/2 Help File  |  1999-05-12  |  5KB  |  122 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Help for String Test ΓòÉΓòÉΓòÉ
  3.  
  4. The String Test sample program allows the user to control any media device that 
  5. is installed on the system.  String Test accepts Media Control Interface string 
  6. commands from the user, and passes them on to the appropriate multimedia 
  7. component for execution. There are three ways to pass string commands to MMPM/2 
  8. using String Test. 
  9.  
  10. The first way is to type a string command in the the String command entry field 
  11. on the String Test main window. The valid format for a string command is 
  12. <COMMAND> <DEVICE> <PARAMETERS>. For example, the following three string 
  13. commands will play a waveform file that resides in the current directory: 
  14.  
  15.      "open filename.wav alias xxx" 
  16.      "play xxx notify" 
  17.      "close xxx" 
  18.  
  19.  Select the Send push button to send the string command to the appropriate 
  20.  multimedia component for execution.  In the example above, pressing the Send 
  21.  push button after each string command would send each command to the wave 
  22.  audio device. Selecting the Send push button will also add the string command 
  23.  to the list box below the String command entry field.  The user may scroll 
  24.  through this list box and select a command from it in order to complete the 
  25.  String command entry field. 
  26.  
  27.  The second way to send string commands is to specify a batch file of string 
  28.  commands as a command line parameter when starting String Test from an OS/2 
  29.  command prompt. The batch file of string commands is simply a text file, with 
  30.  any valid filename, that has one string command on each line. 
  31.  
  32.  For example, if the name of the batch file is test.dat, the correct way to 
  33.  start String Test and have it execute the string commands in test.dat would be 
  34.  to type "mcistrng test.dat" from an OS/2 command line. String Test will 
  35.  process each string command in the batch file as if it had been typed in the 
  36.  String command entry field on String Test's main window. 
  37.  
  38.  The third way to send string commands using String Test also involves a batch 
  39.  file of string commands. In addition to executing a batch file of string 
  40.  commands by specifying a command line parameter to String Test, a batch file 
  41.  of string commands may also be executed by selecting the Batch file push 
  42.  button on String Test's main window. When this push button is selected, a 
  43.  dialog box will be displayed allowing a file to be selected.  The selected 
  44.  file can then be executed as a batch file of String Commands. 
  45.  
  46.  For more information about string commands, please refer to the MMPM/2 
  47.  Programmer's Reference. 
  48.  
  49.  Select the Send push button to send the string command that was just entered 
  50.  in the String command entry field to the appropriate multimedia component for 
  51.  execution. 
  52.  
  53.  Select the Display messages push button to display a pop-up window containing 
  54.  notification messages that String Test is receiving from media devices. 
  55.  
  56.  Select the Batch file push button to display a pop-up window that allows a 
  57.  batch file of string commands to be selected and executed. 
  58.  
  59.  Select the Cancel push button to end the application. 
  60.  
  61.  Select the Help push button to view this help panel. 
  62.  
  63.  
  64. ΓòÉΓòÉΓòÉ 2. Help for Display Messages ΓòÉΓòÉΓòÉ
  65.  
  66. The Media Control Interface returns asynchronous response messages to 
  67. applications to indicate such things as completion of a media device function 
  68. or the passing of ownership of a media device from one process to another. 
  69.  
  70. Notification messages that are received by the String Test utility are shown in 
  71. the Notification messages list.  This list is only for displaying information 
  72. to the user.  It does not allow any selections to be made. 
  73.  
  74. Select the Include push button to display a pop-up window which allows the user 
  75. to filter the notification messages that are displayed in this window. 
  76.  
  77. Select the Cancel push button to remove this pop-up window. 
  78.  
  79. Select the Help push button to view this help panel. 
  80.  
  81.  
  82. ΓòÉΓòÉΓòÉ 3. Help for Include Messages ΓòÉΓòÉΓòÉ
  83.  
  84. Filter the incoming notification messages to be shown in the Display Messages 
  85. pop-up window by checking the check boxes next to the corresponding messages to 
  86. be shown. If none of these check boxes are selected then no messages will be 
  87. shown in the Display Messages pop-up window. 
  88.  
  89. An MM_MCINOTIFY message is returned to an application when a device 
  90. successfully completes the action indicated by the message, or when an error 
  91. occurs. 
  92.  
  93. An MM_MCIPASSDEVICE message notifies an application that the use of a media 
  94. device is being gained or lost. 
  95.  
  96. An MM_MCIPOSITIONCHANGE message notifies an application of the current media 
  97. position of the media device.  This message is generated periodically when the 
  98. MCI_SET_POSITION_ADVISE message is sent to the media device. 
  99.  
  100. An MM_MCICUEPOINT message notifies an application that the device has 
  101. encountered a cuepoint. 
  102.  
  103. An MM_MCIPLAYLISTMESSAGE message notifies the application that the playlist 
  104. processor has encountered a MESSAGE instruction. 
  105.  
  106. An MM_MCIEVENT message notifies an application of an event generated by a 
  107. device. 
  108.  
  109. Select the Include  This action will set the appropriate filters for the 
  110. Display Messages pop-up window and will remove this pop-up window. 
  111.  
  112. Select the Cancel remove this pop-up window without saving any of the checkbox 
  113. selections made. 
  114.  
  115. Select the Help push button to view this help panel. 
  116.  
  117.  
  118. ΓòÉΓòÉΓòÉ 4. Help for Open and execute batch file ΓòÉΓòÉΓòÉ
  119.  
  120. Choose the desired batch file of string commands from the pop-up window, and 
  121. then select the Execute batch file push button to execute the selected batch 
  122. file.