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