home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 February / PCWorld_2003-02_cd.bin / Software / Vyzkuste / Prehravacedivx / Prehravacedivx.exe / zplay290.exe / default.key < prev    next >
Text File  |  2002-10-27  |  12KB  |  314 lines

  1. // This is a key list file that represents the
  2. // default keys used in Zoom Player.  It is not
  3. // required for operation, it's only a sample file.
  4. //
  5. // There are two function that can be used to add keys:
  6. //
  7. // AddKey(KeyState,ScanCode,Function)
  8. //   - "KeyState" is the value of the modifier key.  Values can be "Alt", "Ctrl", "Shift" and "None".
  9. //     You can see how to combine multiple keystate values in this example:
  10. //     AddKey(Alt+Shift,27,fnQuit)
  11. //   - "ScanKey" is the keyboard scan key, you can use the ScanCode button on the Zoom Player
  12. //     Options Key dialog to get scan codes for every key.
  13. //   - "Function" is the command you want the key to perform, you can get a list of functions
  14. //     by looking at the "CreateButton" procedure in the "blueplastic.skn" file.
  15. //
  16. // exAddKey(KeyState,ScanCode,exFunction,Value)
  17. //   - The first two parameters are identical to the AddKey function.
  18. //   - The exFunction is a special function which is limited to keyboard keys and windows messages.
  19. //     You can find a function list below.
  20. //   - The Value parameter contains the data to be sent to the function.
  21. //
  22. // Extended Function List:
  23. //
  24. // 000 - exSetAR        - Set Aspect Ratio         - Value = 0-6
  25. // 001 - exApplyPR      - Apply Zoom Preset        - Value = 0-9
  26. // 002 - exSavePR       - Save Zoom Preset         - Value = 0-9
  27. // 003 - exDVDChapter   - DVD Chapter Selector     - Value = 0-9 (Opens chapter dialog with 5 seconds timeout for a second key)
  28. // 004 - exBlanking     - Set Blanking Preset      - Value = 0-9 (Automatically enables blanking)
  29. // 005 - exSetMode      - Set Playback Mode        - Value = 0-Media Mode, 1-DVD Mode
  30. // 006 - exInterface    - Toggle Interfaces        - Value = 00-Turn ON Control Bar
  31. //                                                           01-Turn OFF Control Bar
  32. //                                                           02-Turn ON Play List Editor
  33. //                                                           03-Turn OFF Play List Editor
  34. //                                                           04-Turn ON Chapter/Bookmark Editor
  35. //                                                           05-Turn OFF Chapter/Bookmark Editor
  36. // 007 - exSetPlayRate  - Set Media Play Rate      - Value = 1-22670 (where 10000 = Standard Play)
  37. // 008 - exSetCustomAR  - Set Custom Aspect Ratio  - Value = 0-9 (Automatically switches AR to Custom mode)
  38. // 009 - exOverlayColor - Set Overlay Color Preset - Value = 0-9
  39. // 010 - exPlayComplete - Set Play Complete Mode   - Value = 0-6 (may expand in a future version)
  40. // 011 - exDVDNumPad    - Select DVD Number Pad    - Value = 0-9
  41. //
  42. //
  43. // Example:
  44. // exAddKey(None,81,exSetAR,1) would assign the "Source Aspect Ratio" to the letter "Q".
  45. //
  46. // You can even combine several functions on one key if you want to.
  47. // Just use the AddKey command several times on the same ScanCode and
  48. // the functions will be executed in sequence according to the order
  49. // you wrote them at.
  50. //
  51. //
  52. // Zoom Player further supports a method of emulating keystrokes through Windows messages.
  53. // This interface is useful for remote control devices.
  54. // There are two types of message control.  The first tell Zoom Player to execute a specific
  55. // function (see "skins/blueplastic.skn" file for a list of function numbers) and the second
  56. // tells Zoom Player to simulate a key press.
  57. // The Zoom Player Windows messange number is "32817".
  58. // The LParam can have the following values:
  59. // (LParam =   0) - WParam holds a specific function number.
  60. // (LParam =   1) - WParam holds a keyboard scancode.
  61. // (LParam =   2) - WParam holds a keyboard scancode with ALT pressed.
  62. // (LParam =   3) - WParam holds a keyboard scancode with CTRL pressed.
  63. // (LParam =   4) - WParam holds a keyboard scancode with SHIFT pressed.
  64. // (LParam =   5) - WParam holds a keyboard scancode with ALT+SHIFT pressed.
  65. // (LParam =   6) - WParam holds a keyboard scancode with ALT+CTRL pressed.
  66. // (LParam =   7) - WParam holds a keyboard scancode with CTRL+SHIFT pressed.
  67. // (LParam =   8) - WParam holds a keyboard scancode with ALT+SHIFT+CTRL pressed.
  68. // (LParam = 100) - WParam Value : [0 = Mouse Middle Button Click, 1 = Mouse Wheel Up, 2 = Mouse Wheel Down].
  69. //
  70. // Extended functions are not directly supported through windows messages, but you can easily
  71. // support them by using scankey numbers that aren't mapped to keyboard keys (basically any number
  72. // higher than 16000 should be fine).
  73. //
  74. //
  75. // There are however some reserved keys which you shouldn't use:
  76. // 1. Arrow keys (and keypad arrows if numlock is off).
  77. // 2. PageUP, PageDOWN, Home, End.
  78. // 3. Space, Enter and Esc keys.
  79. // 4. Alt, Shift and Ctrl keys (as a ScanCode key entry).
  80. //
  81. // And lastly, there is a limitation of 500 keys and the parser doesn't check for errors, so
  82. // make sure that all the command structures are valid.
  83. //
  84.  
  85. // No Modifier:
  86. AddKey(None,219,fnPrevTrack)
  87. AddKey(None,221,fnNextTrack)
  88. AddKey(None,188,fnSkipBackward)
  89. AddKey(None,190,fnSkipForward)
  90. AddKey(None,68,fnMPEG4)
  91. AddKey(None,90,fnZoom)
  92. AddKey(None,79,fnOpen)
  93. AddKey(None,87,fnRewind)
  94. AddKey(None,80,fnPlay)
  95. AddKey(None,83,fnStop)
  96. AddKey(None,65,fnPause)
  97. AddKey(None,67,fnAddChapter)
  98. AddKey(None,78,fnSkin)
  99. AddKey(None,82,fnARCycle)
  100. AddKey(None,73,fnInfo)
  101. AddKey(None,192,fnFitSource)
  102. AddKey(None,77,fnMax)
  103. AddKey(None,70,fnFastForward)
  104. AddKey(None,76,fnSlowMotion)
  105. AddKey(None,107,fnZoomIn)
  106. AddKey(None,109,fnZoomOut)
  107. AddKey(None,189,fnZoomOut)
  108. AddKey(None,112,fnKeyHelp)
  109. AddKey(None,121,fnDVDMode)
  110. AddKey(None,191,fnEject)
  111. AddKey(None,186,fnDVDRootMenu)
  112. AddKey(None,222,fnDVDTitleMenu)
  113. AddKey(None,122,fnOverlayReset)
  114. AddKey(None,123,fnOverlayApply)
  115. AddKey(None,85,fnUnpause)
  116. AddKey(None,66,fnAddALBookmark)
  117. AddKey(None,84,fnSeekToStart)
  118. AddKey(None,75,fnBlankingNav)
  119. AddKey(None,71,fnGoTo)
  120. exAddKey(None,48,exApplyPR,0)
  121. exAddKey(None,49,exApplyPR,1)
  122. exAddKey(None,50,exApplyPR,2)
  123. exAddKey(None,51,exApplyPR,3)
  124. exAddKey(None,52,exApplyPR,4)
  125. exAddKey(None,53,exApplyPR,5)
  126. exAddKey(None,54,exApplyPR,6)
  127. exAddKey(None,55,exApplyPR,7)
  128. exAddKey(None,56,exApplyPR,8)
  129. exAddKey(None,57,exApplyPR,9)
  130. exAddKey(None,96,exApplyPR,0)
  131. exAddKey(None,97,exApplyPR,1)
  132. exAddKey(None,98,exApplyPR,2)
  133. exAddKey(None,99,exApplyPR,3)
  134. exAddKey(None,100,exApplyPR,4)
  135. exAddKey(None,101,exApplyPR,5)
  136. exAddKey(None,102,exApplyPR,6)
  137. exAddKey(None,103,exApplyPR,7)
  138. exAddKey(None,104,exApplyPR,8)
  139. exAddKey(None,105,exApplyPR,9)
  140.  
  141. // Shift Modifier:
  142. AddKey(Shift,219,fnPrevChapter)
  143. AddKey(Shift,221,fnNextChapter)
  144. AddKey(Shift,188,fnPrevFrame)
  145. AddKey(Shift,190,fnNextFrame)
  146. AddKey(Shift,187,fnZoomIn)
  147. AddKey(Shift,82,fnRevARCycle)
  148. AddKey(Shift,67,fnChapter)
  149. AddKey(Shift,80,fnPattern)
  150. AddKey(Shift,79,fnOverlayControl)
  151. AddKey(Shift,186,fnDVDSubMenu)
  152. AddKey(Shift,222,fnDVDAudioMenu)
  153. AddKey(Shift,65,fnAudioDecoder)
  154. AddKey(Shift,78,fnPlayListNav)
  155. AddKey(Shift,83,fnResizeNav)
  156. AddKey(Shift,66,fnDisableDVDSub)
  157. AddKey(Shift,70,fnFileNav)
  158. AddKey(Shift,33,fnPrevVid)
  159. AddKey(Shift,34,fnNextVid)
  160. AddKey(Shift,35,fnVolDown)
  161. AddKey(Shift,36,fnVolUp)
  162. AddKey(Shift,84,fnSceneCut)
  163. AddKey(Shift,68,fnOpenDrive)
  164. AddKey(Shift,77,fnMediaPathEdit)
  165. exAddKey(Shift,48,exBlanking,0)
  166. exAddKey(Shift,49,exBlanking,1)
  167. exAddKey(Shift,50,exBlanking,2)
  168. exAddKey(Shift,51,exBlanking,3)
  169. exAddKey(Shift,52,exBlanking,4)
  170. exAddKey(Shift,53,exBlanking,5)
  171. exAddKey(Shift,54,exBlanking,6)
  172. exAddKey(Shift,55,exBlanking,7)
  173. exAddKey(Shift,56,exBlanking,8)
  174. exAddKey(Shift,57,exBlanking,9)
  175.  
  176. // Ctrl Modifier:
  177. AddKey(Ctrl,70,fnHalfFF)
  178. AddKey(Ctrl,76,fnHalfSM)
  179. AddKey(Ctrl,77,fnMute)
  180. AddKey(Ctrl,79,fnOptions)
  181. AddKey(Ctrl,80,fnPresets)
  182. AddKey(Ctrl,83,fnStopToFirst)
  183. AddKey(Ctrl,107,fnZoomInWidth)
  184. AddKey(Ctrl,109,fnZoomOutWidth)
  185. AddKey(Ctrl,190,fnSeekForward)
  186. AddKey(Ctrl,188,fnSeekBackward)
  187. AddKey(Ctrl,65,fnAudioTrack)
  188. AddKey(Ctrl,66,fnDVDSub)
  189. AddKey(Ctrl,78,fnDVDAngle)
  190. AddKey(Ctrl,67,fnDVDCC)
  191. AddKey(Ctrl,68,fnSaveDF)
  192. AddKey(Ctrl,116,fnDecBrightness)
  193. AddKey(Ctrl,117,fnDecContrast)
  194. AddKey(Ctrl,118,fnDecGamma)
  195. AddKey(Ctrl,119,fnDecHue)
  196. AddKey(Ctrl,120,fnDecSaturation)
  197. AddKey(Ctrl,222,fnDVDMenuPrev)
  198. AddKey(Ctrl,75,fnBlankingPreset)
  199. AddKey(Ctrl,82,fnRandomPlay)
  200. AddKey(Ctrl,221,fnBlankCycle)
  201. AddKey(Ctrl,219,fnRevBlankCycle)
  202. AddKey(Ctrl,33,fnPrevArrowFunc)
  203. AddKey(Ctrl,34,fnNextArrowFunc)
  204. AddKey(Ctrl,84,fnAutoARToggle)
  205. AddKey(Ctrl,90,fnPauseAtEOF)
  206. exAddKey(Ctrl,48,exSavePR,0)
  207. exAddKey(Ctrl,49,exSavePR,1)
  208. exAddKey(Ctrl,50,exSavePR,2)
  209. exAddKey(Ctrl,51,exSavePR,3)
  210. exAddKey(Ctrl,52,exSavePR,4)
  211. exAddKey(Ctrl,53,exSavePR,5)
  212. exAddKey(Ctrl,54,exSavePR,6)
  213. exAddKey(Ctrl,55,exSavePR,7)
  214. exAddKey(Ctrl,56,exSavePR,8)
  215. exAddKey(Ctrl,57,exSavePR,9)
  216. exAddKey(Ctrl,96,exSavePR,0)
  217. exAddKey(Ctrl,97,exSavePR,1)
  218. exAddKey(Ctrl,98,exSavePR,2)
  219. exAddKey(Ctrl,99,exSavePR,3)
  220. exAddKey(Ctrl,100,exSavePR,4)
  221. exAddKey(Ctrl,101,exSavePR,5)
  222. exAddKey(Ctrl,102,exSavePR,6)
  223. exAddKey(Ctrl,103,exSavePR,7)
  224. exAddKey(Ctrl,104,exSavePR,8)
  225. exAddKey(Ctrl,105,exSavePR,9)
  226.  
  227. // Alt Modifier:
  228. AddKey(Alt,80,fnPlayEndCycle)
  229. AddKey(Alt,90,fnZoomAxis)
  230. AddKey(Alt,82,fnABRepeat)
  231. AddKey(Alt,83,fnSub)
  232. AddKey(Alt,79,fnOSD)
  233. AddKey(Alt,67,fnSaveChapter)
  234. AddKey(Alt,190,fnJumpForward)
  235. AddKey(Alt,188,fnJumpBackward)
  236. AddKey(Alt,107,fnZoomInHeight)
  237. AddKey(Alt,109,fnZoomOutHeight)
  238. AddKey(Alt,84,fnStayOnTop)
  239. AddKey(Alt,65,fnAudioFilter)
  240. AddKey(Alt,35,fnDecRate)
  241. AddKey(Alt,36,fnIncRate)
  242. AddKey(Alt,68,fnOpenDir)
  243. AddKey(Alt,70,fnFrameCapture)
  244. AddKey(Alt,76,fnPlayList)
  245. AddKey(Alt,186,fnDVDChapterMenu)
  246. AddKey(Alt,222,fnDVDAngleMenu)
  247. AddKey(Alt,116,fnIncBrightness)
  248. AddKey(Alt,117,fnIncContrast)
  249. AddKey(Alt,118,fnIncGamma)
  250. AddKey(Alt,119,fnIncHue)
  251. AddKey(Alt,120,fnIncSaturation)
  252. AddKey(Alt,78,fnChapterNav)
  253. AddKey(Alt,75,fnBlanking)
  254. AddKey(Alt,221,fnPresetCycle)
  255. AddKey(Alt,219,fnRevPresetCycle)
  256. AddKey(Alt,85,fnDVDPlayStart)
  257. AddKey(Alt,66,fnFrameZeroALBM)
  258. AddKey(Alt,71,fnGoToNav)
  259. AddKey(Alt,87,fnMWFuncNav)
  260. AddKey(Alt,88,fnExit)
  261. AddKey(Alt,77,fnMediaNav)
  262.  
  263. // Alt+Shift Modifier:
  264. AddKey(Alt+Shift,188,fnBalanceLeft)
  265. AddKey(Alt+Shift,190,fnBalanceRight)
  266. exAddKey(Alt+Shift,48,exSetCustomAR,0)
  267. exAddKey(Alt+Shift,49,exSetCustomAR,1)
  268. exAddKey(Alt+Shift,50,exSetCustomAR,2)
  269. exAddKey(Alt+Shift,51,exSetCustomAR,3)
  270. exAddKey(Alt+Shift,52,exSetCustomAR,4)
  271. exAddKey(Alt+Shift,53,exSetCustomAR,5)
  272. exAddKey(Alt+Shift,54,exSetCustomAR,6)
  273. exAddKey(Alt+Shift,55,exSetCustomAR,7)
  274. exAddKey(Alt+Shift,56,exSetCustomAR,8)
  275. exAddKey(Alt+Shift,57,exSetCustomAR,9)
  276.  
  277. // Ctrl+Shift Modifier:
  278. exAddKey(Ctrl+Shift,48,exOverlayColor,0)
  279. exAddKey(Ctrl+Shift,49,exOverlayColor,1)
  280. exAddKey(Ctrl+Shift,50,exOverlayColor,2)
  281. exAddKey(Ctrl+Shift,51,exOverlayColor,3)
  282. exAddKey(Ctrl+Shift,52,exOverlayColor,4)
  283. exAddKey(Ctrl+Shift,53,exOverlayColor,5)
  284. exAddKey(Ctrl+Shift,54,exOverlayColor,6)
  285. exAddKey(Ctrl+Shift,55,exOverlayColor,7)
  286. exAddKey(Ctrl+Shift,56,exOverlayColor,8)
  287. exAddKey(Ctrl+Shift,57,exOverlayColor,9)
  288.  
  289. // Alt+Ctrl Modifier:
  290. exAddKey(Alt+Ctrl,48,exDVDNumPad,0)
  291. exAddKey(Alt+Ctrl,49,exDVDNumPad,1)
  292. exAddKey(Alt+Ctrl,50,exDVDNumPad,2)
  293. exAddKey(Alt+Ctrl,51,exDVDNumPad,3)
  294. exAddKey(Alt+Ctrl,52,exDVDNumPad,4)
  295. exAddKey(Alt+Ctrl,53,exDVDNumPad,5)
  296. exAddKey(Alt+Ctrl,54,exDVDNumPad,6)
  297. exAddKey(Alt+Ctrl,55,exDVDNumPad,7)
  298. exAddKey(Alt+Ctrl,56,exDVDNumPad,8)
  299. exAddKey(Alt+Ctrl,57,exDVDNumPad,9)
  300.  
  301. // Example for mapping Chapter support through non-existant scan keys (for use with remote control devices):
  302. //exAddKey(None,20000,exDVDChapter,0)
  303. //exAddKey(None,20001,exDVDChapter,1)
  304. //exAddKey(None,20002,exDVDChapter,2)
  305. //exAddKey(None,20003,exDVDChapter,3)
  306. //exAddKey(None,20004,exDVDChapter,4)
  307. //exAddKey(None,20005,exDVDChapter,5)
  308. //exAddKey(None,20006,exDVDChapter,6)
  309. //exAddKey(None,20007,exDVDChapter,7)
  310. //exAddKey(None,20008,exDVDChapter,8)
  311. //exAddKey(None,20009,exDVDChapter,9)
  312.  
  313. // End of file
  314.