home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 February / PCWorld_2004-02_cd.bin / software / vyzkuste / jaknavideo / jaknavideo.exe / zp320std.exe / default.key < prev    next >
Text File  |  2003-11-11  |  14KB  |  362 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 "brownish.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. // mcAddKey(CommandCode,Function)
  23. //   - Used to set a funtion to Multimedia Command (Multimedia Keyboard and other devices), the
  24. //     first parameter specifies the command code value while the second parameter specifies the Zoom Player
  25. //     function (see below for examples).
  26. //     I have included a list of known Multimedia Commands, not all multimedia devices may have buttons for
  27. //     all the commands, but feel free to experiment: http://www.inmatrix.com/zplayer/mediacommandlist.shtml
  28. //
  29. // Extended Function List:
  30. //
  31. // 000 - exSetAR        - Set Aspect Ratio         - Value = 0-6
  32. // 001 - exApplyPR      - Apply Zoom Preset        - Value = 0-9
  33. // 002 - exSavePR       - Save Zoom Preset         - Value = 0-9
  34. // 003 - exChapterTrack - Chapter/Track Selector   - Value = 0-9 (Opens chapter/track dialog with 5 seconds timeout for a second key)
  35. // 004 - exBlanking     - Set Blanking Preset      - Value = 0-9 (Automatically enables blanking)
  36. // 005 - exSetMode      - Set Playback Mode        - Value = 0-Media Mode, 1-DVD Mode
  37. // 006 - exInterface    - Toggle Interfaces        - Value = 00-Turn ON Control Bar
  38. //                                                           01-Turn OFF Control Bar
  39. //                                                           02-Turn ON Play List Editor
  40. //                                                           03-Turn OFF Play List Editor
  41. //                                                           04-Turn ON Chapter/Bookmark Editor
  42. //                                                           05-Turn OFF Chapter/Bookmark Editor
  43. // 007 - exSetPlayRate  - Set Media Play Rate      - Value = 1-22670 (where 10000 = Standard Play)
  44. // 008 - exSetCustomAR  - Set Custom Aspect Ratio  - Value = 0-9 (Automatically switches AR to Custom mode)
  45. // 009 - exOverlayColor - Set Color Control Preset - Value = 0-9
  46. // 010 - exPlayComplete - Set Play Complete Mode   - Value = 0-6 (may expand in a future version)
  47. // 011 - exDVDNumPad    - Select DVD Number Pad    - Value = 0-9
  48. // 012 - exOpenDrive    - Open an entire drive     - Value = 0-25 (0 = A:, 2 = C: ... 25 = Z:)
  49. // 013 - exSeekAhead    - Seek Ahead [n] Seconds   - Value = 1-999999999
  50. // 014 - exSeekBack     - Seek Back  [n] Seconds   - Value = 1-999999999
  51. // 015 - exSeekTo       - Seek to Position [n] Sec - Value = 1-999999999
  52. // 016 - exGroupToggle  - Toggle Skin Groups       - Value = 0-1^32 (Bitmask indicating which groups to toggle)
  53. // 017 - exGroupEnable  - Enable Skin Groups       - Value = 0-1^32 (Bitmask indicating which groups to enable)
  54. // 018 - exGroupDisable - Disable Skin Groups      - Value = 0-1^32 (Bitmask indicating which groups to disable)
  55. // 019 - exGroupSet     - Set the Skin Groups Mask - Value = 0-1^32 (Bitmask indicating the group mask)
  56. // 020 - exSetVolume    - Set the Audio Volume     - Value = 0-100 (Percentage of volume level)
  57. //
  58. //
  59. // Example:
  60. // exAddKey(None,81,exSetAR,1) would assign the "Source Aspect Ratio" to the letter "Q".
  61. //
  62. // You can even combine several functions on one key if you want to.
  63. // Just use the AddKey command several times on the same ScanCode and
  64. // the functions will be executed in sequence according to the order
  65. // you wrote them at.
  66. //
  67. //
  68. // Zoom Player further supports a method of emulating keystrokes through Windows messages.
  69. // This interface is useful for remote control devices.
  70. // There are two types of message control.  The first tell Zoom Player to execute a specific
  71. // function (see "skins/brownish.skn" file for a list of function numbers) and the second
  72. // tells Zoom Player to simulate a key press.
  73. // The Zoom Player Windows messange number is "32817".
  74. // The LParam can have the following values:
  75. // (LParam =   0) - WParam holds a specific function number.
  76. // (LParam =   1) - WParam holds a keyboard scancode.
  77. // (LParam =   2) - WParam holds a keyboard scancode with ALT pressed.
  78. // (LParam =   3) - WParam holds a keyboard scancode with CTRL pressed.
  79. // (LParam =   4) - WParam holds a keyboard scancode with SHIFT pressed.
  80. // (LParam =   5) - WParam holds a keyboard scancode with ALT+SHIFT pressed.
  81. // (LParam =   6) - WParam holds a keyboard scancode with ALT+CTRL pressed.
  82. // (LParam =   7) - WParam holds a keyboard scancode with CTRL+SHIFT pressed.
  83. // (LParam =   8) - WParam holds a keyboard scancode with ALT+SHIFT+CTRL pressed.
  84. // (LParam = 100) - WParam Value : [0 = Mouse Middle Button Click, 1 = Mouse Wheel Up, 2 = Mouse Wheel Down].
  85. //
  86. // Extended functions are not directly supported through windows messages, but you can easily
  87. // support them by using scankey numbers that aren't mapped to keyboard keys (basically any number
  88. // higher than 16000 should be fine).
  89. //
  90. //
  91. // There are however some reserved keys which you shouldn't use:
  92. // 1. Arrow keys (and keypad arrows if numlock is off).
  93. // 2. PageUP, PageDOWN, Home, End.
  94. // 3. Space, Enter and Esc keys.
  95. // 4. Alt, Shift and Ctrl keys (as a ScanCode key entry).
  96. //
  97. // And lastly, there is a limitation of 500 keys and the parser doesn't check for errors, so
  98. // make sure that all the command structures are valid.
  99. //
  100.  
  101. // No Modifier:
  102. AddKey(None,219,fnPrevTrack)
  103. AddKey(None,221,fnNextTrack)
  104. AddKey(None,188,fnSkipBackward)
  105. AddKey(None,190,fnSkipForward)
  106. AddKey(None,68,fnMPEG4)
  107. AddKey(None,90,fnZoom)
  108. AddKey(None,79,fnOpen)
  109. AddKey(None,87,fnRewind)
  110. AddKey(None,80,fnPlay)
  111. AddKey(None,83,fnStop)
  112. AddKey(None,65,fnPause)
  113. AddKey(None,67,fnAddChapter)
  114. AddKey(None,78,fnSkin)
  115. AddKey(None,82,fnARCycle)
  116. AddKey(None,73,fnInfo)
  117. AddKey(None,192,fnFitSource)
  118. AddKey(None,77,fnMax)
  119. AddKey(None,70,fnFastForward)
  120. AddKey(None,76,fnSlowMotion)
  121. AddKey(None,107,fnZoomIn)
  122. AddKey(None,109,fnZoomOut)
  123. AddKey(None,189,fnZoomOut)
  124. AddKey(None,112,fnKeyHelp)
  125. AddKey(None,121,fnDVDMode)
  126. AddKey(None,191,fnEject)
  127. AddKey(None,186,fnDVDRootMenu)
  128. AddKey(None,222,fnDVDTitleMenu)
  129. AddKey(None,122,fnOverlayReset)
  130. AddKey(None,123,fnOverlayApply)
  131. AddKey(None,85,fnUnpause)
  132. AddKey(None,66,fnAddALBookmark)
  133. AddKey(None,84,fnSeekToStart)
  134. AddKey(None,75,fnBlankingNav)
  135. AddKey(None,71,fnGoTo)
  136. AddKey(None,69,fnFileNav)
  137. AddKey(None,88,fnRadioManager)
  138. AddKey(None,81,fnEqualizer)
  139. exAddKey(None,48,exApplyPR,0)
  140. exAddKey(None,49,exApplyPR,1)
  141. exAddKey(None,50,exApplyPR,2)
  142. exAddKey(None,51,exApplyPR,3)
  143. exAddKey(None,52,exApplyPR,4)
  144. exAddKey(None,53,exApplyPR,5)
  145. exAddKey(None,54,exApplyPR,6)
  146. exAddKey(None,55,exApplyPR,7)
  147. exAddKey(None,56,exApplyPR,8)
  148. exAddKey(None,57,exApplyPR,9)
  149. exAddKey(None,96,exApplyPR,0)
  150. exAddKey(None,97,exApplyPR,1)
  151. exAddKey(None,98,exApplyPR,2)
  152. exAddKey(None,99,exApplyPR,3)
  153. exAddKey(None,100,exApplyPR,4)
  154. exAddKey(None,101,exApplyPR,5)
  155. exAddKey(None,102,exApplyPR,6)
  156. exAddKey(None,103,exApplyPR,7)
  157. exAddKey(None,104,exApplyPR,8)
  158. exAddKey(None,105,exApplyPR,9)
  159.  
  160. // Shift Modifier:
  161. AddKey(Shift,219,fnPrevChapter)
  162. AddKey(Shift,221,fnNextChapter)
  163. AddKey(Shift,188,fnPrevFrame)
  164. AddKey(Shift,190,fnNextFrame)
  165. AddKey(Shift,187,fnZoomIn)
  166. AddKey(Shift,82,fnRevARCycle)
  167. AddKey(Shift,67,fnChapter)
  168. AddKey(Shift,80,fnPattern)
  169. AddKey(Shift,79,fnOverlayControl)
  170. AddKey(Shift,186,fnDVDSubMenu)
  171. AddKey(Shift,222,fnDVDAudioMenu)
  172. AddKey(Shift,65,fnAudioDecoder)
  173. AddKey(Shift,78,fnPlayListNav)
  174. AddKey(Shift,83,fnResizeNav)
  175. AddKey(Shift,66,fnDisableDVDSub)
  176. AddKey(Shift,70,fnFileNav)
  177. AddKey(Shift,33,fnPrevVid)
  178. AddKey(Shift,34,fnNextVid)
  179. AddKey(Shift,35,fnVolDown)
  180. AddKey(Shift,36,fnVolUp)
  181. AddKey(Shift,84,fnSceneCut)
  182. AddKey(Shift,68,fnOpenDrive)
  183. AddKey(Shift,77,fnMediaPathEdit)
  184. AddKey(Shift,87,fnWebNav)
  185. AddKey(Shift,88,fnContextNav)
  186. AddKey(Shift,107,fnResyncAhead)
  187. AddKey(Shift,109,fnResyncBack)
  188. AddKey(Shift,90,fnFastPlay)
  189. AddKey(Shift,85,fnOpenURL)
  190. exAddKey(Shift,48,exBlanking,0)
  191. exAddKey(Shift,49,exBlanking,1)
  192. exAddKey(Shift,50,exBlanking,2)
  193. exAddKey(Shift,51,exBlanking,3)
  194. exAddKey(Shift,52,exBlanking,4)
  195. exAddKey(Shift,53,exBlanking,5)
  196. exAddKey(Shift,54,exBlanking,6)
  197. exAddKey(Shift,55,exBlanking,7)
  198. exAddKey(Shift,56,exBlanking,8)
  199. exAddKey(Shift,57,exBlanking,9)
  200.  
  201. // Ctrl Modifier:
  202. AddKey(Ctrl,70,fnHalfFF)
  203. AddKey(Ctrl,76,fnHalfSM)
  204. AddKey(Ctrl,77,fnMute)
  205. AddKey(Ctrl,79,fnOptions)
  206. AddKey(Ctrl,80,fnPresets)
  207. AddKey(Ctrl,83,fnStopToFirst)
  208. AddKey(Ctrl,107,fnZoomInWidth)
  209. AddKey(Ctrl,109,fnZoomOutWidth)
  210. AddKey(Ctrl,190,fnSeekForward)
  211. AddKey(Ctrl,188,fnSeekBackward)
  212. AddKey(Ctrl,65,fnAudioTrack)
  213. AddKey(Ctrl,66,fnDVDSub)
  214. AddKey(Ctrl,78,fnDVDAngle)
  215. AddKey(Ctrl,67,fnDVDCC)
  216. AddKey(Ctrl,68,fnSaveDF)
  217. AddKey(Ctrl,116,fnDecBrightness)
  218. AddKey(Ctrl,117,fnDecContrast)
  219. AddKey(Ctrl,118,fnDecGamma)
  220. AddKey(Ctrl,119,fnDecHue)
  221. AddKey(Ctrl,120,fnDecSaturation)
  222. AddKey(Ctrl,222,fnDVDMenuPrev)
  223. AddKey(Ctrl,75,fnBlankingPreset)
  224. AddKey(Ctrl,82,fnRandomPlay)
  225. AddKey(Ctrl,221,fnBlankCycle)
  226. AddKey(Ctrl,219,fnRevBlankCycle)
  227. AddKey(Ctrl,33,fnPrevArrowFunc)
  228. AddKey(Ctrl,34,fnNextArrowFunc)
  229. AddKey(Ctrl,84,fnAutoARToggle)
  230. AddKey(Ctrl,90,fnPauseAtEOF)
  231. AddKey(Ctrl,72,fnSrcRelStretch)
  232. exAddKey(Ctrl,48,exSavePR,0)
  233. exAddKey(Ctrl,49,exSavePR,1)
  234. exAddKey(Ctrl,50,exSavePR,2)
  235. exAddKey(Ctrl,51,exSavePR,3)
  236. exAddKey(Ctrl,52,exSavePR,4)
  237. exAddKey(Ctrl,53,exSavePR,5)
  238. exAddKey(Ctrl,54,exSavePR,6)
  239. exAddKey(Ctrl,55,exSavePR,7)
  240. exAddKey(Ctrl,56,exSavePR,8)
  241. exAddKey(Ctrl,57,exSavePR,9)
  242. exAddKey(Ctrl,96,exSavePR,0)
  243. exAddKey(Ctrl,97,exSavePR,1)
  244. exAddKey(Ctrl,98,exSavePR,2)
  245. exAddKey(Ctrl,99,exSavePR,3)
  246. exAddKey(Ctrl,100,exSavePR,4)
  247. exAddKey(Ctrl,101,exSavePR,5)
  248. exAddKey(Ctrl,102,exSavePR,6)
  249. exAddKey(Ctrl,103,exSavePR,7)
  250. exAddKey(Ctrl,104,exSavePR,8)
  251. exAddKey(Ctrl,105,exSavePR,9)
  252.  
  253. // Alt Modifier:
  254. AddKey(Alt,80,fnPlayEndCycle)
  255. AddKey(Alt,90,fnZoomAxis)
  256. AddKey(Alt,82,fnABRepeat)
  257. AddKey(Alt,83,fnSub)
  258. AddKey(Alt,79,fnOSD)
  259. AddKey(Alt,67,fnSaveChapter)
  260. AddKey(Alt,190,fnJumpForward)
  261. AddKey(Alt,188,fnJumpBackward)
  262. AddKey(Alt,107,fnZoomInHeight)
  263. AddKey(Alt,109,fnZoomOutHeight)
  264. AddKey(Alt,84,fnStayOnTop)
  265. AddKey(Alt,65,fnAudioFilter)
  266. AddKey(Alt,35,fnDecRate)
  267. AddKey(Alt,36,fnIncRate)
  268. AddKey(Alt,68,fnOpenDir)
  269. AddKey(Alt,70,fnFrameCapture)
  270. AddKey(Alt,76,fnPlayList)
  271. AddKey(Alt,186,fnDVDChapterMenu)
  272. AddKey(Alt,222,fnDVDAngleMenu)
  273. AddKey(Alt,116,fnIncBrightness)
  274. AddKey(Alt,117,fnIncContrast)
  275. AddKey(Alt,118,fnIncGamma)
  276. AddKey(Alt,119,fnIncHue)
  277. AddKey(Alt,120,fnIncSaturation)
  278. AddKey(Alt,78,fnChapterNav)
  279. AddKey(Alt,75,fnBlanking)
  280. AddKey(Alt,221,fnPresetCycle)
  281. AddKey(Alt,219,fnRevPresetCycle)
  282. AddKey(Alt,85,fnDVDPlayStart)
  283. AddKey(Alt,66,fnFrameZeroALBM)
  284. AddKey(Alt,71,fnGoToNav)
  285. AddKey(Alt,87,fnMWFuncNav)
  286. AddKey(Alt,88,fnExit)
  287. AddKey(Alt,77,fnMediaNav)
  288. AddKey(Alt,48,fnBringToFront)
  289. AddKey(Alt,49,fnZoom50)
  290. AddKey(Alt,50,fnZoom100)
  291. AddKey(Alt,51,fnZoom200)
  292. AddKey(Alt,52,fnZoom400)
  293. AddKey(Alt,53,fnZoom800)
  294. AddKey(Alt,72,fnPlayHistory)
  295. AddKey(Alt,86,fnPLGetDuration)
  296.  
  297. // Alt+Shift Modifier:
  298. AddKey(Alt+Shift,188,fnBalanceLeft)
  299. AddKey(Alt+Shift,190,fnBalanceRight)
  300. AddKey(Alt+Shift,68,fnLoadDF)
  301. exAddKey(Alt+Shift,48,exSetCustomAR,0)
  302. exAddKey(Alt+Shift,49,exSetCustomAR,1)
  303. exAddKey(Alt+Shift,50,exSetCustomAR,2)
  304. exAddKey(Alt+Shift,51,exSetCustomAR,3)
  305. exAddKey(Alt+Shift,52,exSetCustomAR,4)
  306. exAddKey(Alt+Shift,53,exSetCustomAR,5)
  307. exAddKey(Alt+Shift,54,exSetCustomAR,6)
  308. exAddKey(Alt+Shift,55,exSetCustomAR,7)
  309. exAddKey(Alt+Shift,56,exSetCustomAR,8)
  310. exAddKey(Alt+Shift,57,exSetCustomAR,9)
  311.  
  312. // Ctrl+Shift Modifier:
  313. exAddKey(Ctrl+Shift,48,exOverlayColor,0)
  314. exAddKey(Ctrl+Shift,49,exOverlayColor,1)
  315. exAddKey(Ctrl+Shift,50,exOverlayColor,2)
  316. exAddKey(Ctrl+Shift,51,exOverlayColor,3)
  317. exAddKey(Ctrl+Shift,52,exOverlayColor,4)
  318. exAddKey(Ctrl+Shift,53,exOverlayColor,5)
  319. exAddKey(Ctrl+Shift,54,exOverlayColor,6)
  320. exAddKey(Ctrl+Shift,55,exOverlayColor,7)
  321. exAddKey(Ctrl+Shift,56,exOverlayColor,8)
  322. exAddKey(Ctrl+Shift,57,exOverlayColor,9)
  323.  
  324. // Alt+Ctrl Modifier:
  325. exAddKey(Alt+Ctrl,48,exDVDNumPad,0)
  326. exAddKey(Alt+Ctrl,49,exDVDNumPad,1)
  327. exAddKey(Alt+Ctrl,50,exDVDNumPad,2)
  328. exAddKey(Alt+Ctrl,51,exDVDNumPad,3)
  329. exAddKey(Alt+Ctrl,52,exDVDNumPad,4)
  330. exAddKey(Alt+Ctrl,53,exDVDNumPad,5)
  331. exAddKey(Alt+Ctrl,54,exDVDNumPad,6)
  332. exAddKey(Alt+Ctrl,55,exDVDNumPad,7)
  333. exAddKey(Alt+Ctrl,56,exDVDNumPad,8)
  334. exAddKey(Alt+Ctrl,57,exDVDNumPad,9)
  335.  
  336. // Mapping Chapter support through non-existant scan keys (for use with remote control devices):
  337. exAddKey(None,20000,exChapterTrack,0)
  338. exAddKey(None,20001,exChapterTrack,1)
  339. exAddKey(None,20002,exChapterTrack,2)
  340. exAddKey(None,20003,exChapterTrack,3)
  341. exAddKey(None,20004,exChapterTrack,4)
  342. exAddKey(None,20005,exChapterTrack,5)
  343. exAddKey(None,20006,exChapterTrack,6)
  344. exAddKey(None,20007,exChapterTrack,7)
  345. exAddKey(None,20008,exChapterTrack,8)
  346. exAddKey(None,20009,exChapterTrack,9)
  347.  
  348. // Interal Skin Group Toggle
  349. ExAddKey(None,115,exGroupToggle,8193)
  350.  
  351. // Multimedia Keyboard Basic Functions
  352. mcAddKey(11,fnNextChapter)
  353. mcAddKey(12,fnPrevChapter)
  354. mcAddKey(13,fnStop)
  355. mcAddKey(14,fnPlay)
  356.  
  357. // Multimedia Mouse Basic Functions (extra buttons)
  358. mcAddKey(32770,fnSkipForward)
  359. mcAddKey(32769,fnSkipBackward)
  360.  
  361. // End of file
  362.