home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February / PCWorld_2008-02_cd.bin / temacd / zoomplayer / zp501std.exe / default.key < prev    next >
Text File  |  2006-12-13  |  14KB  |  390 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. //     in the online help skinning tutorial.
  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 the command you want the key to perform, you can get a list of functions
  24. //     in the online help skinning tutorial.
  25. //     You can find a function list below.
  26. //   - The Value parameter contains the data to be sent to the function.
  27. //
  28. // mcAddKey(CommandCode,Function)
  29. //   - Used to set a funtion to Multimedia Command (Multimedia Keyboard and other devices), the
  30. //     first parameter specifies the command code value while the second parameter specifies the Zoom Player
  31. //     function (see below for examples).
  32. //     I have included a list of known Multimedia Commands, not all multimedia devices may have buttons for
  33. //     all the commands, but feel free to experiment: http://www.inmatrix.com/zplayer/mediacommandlist.shtml
  34. //
  35. //
  36. // You can even combine several functions on one key if you want to.
  37. // Just use the AddKey command several times on the same ScanCode and
  38. // the functions will be executed in sequence according to the order
  39. // you wrote them at.
  40. //
  41. //
  42. // Zoom Player further supports a method of emulating keystrokes through Windows messages.
  43. // This interface is useful for remote control devices.
  44. // There are two types of message control.  The first tell Zoom Player to execute a specific
  45. // function (see the online skinning tutorial for a list of function numbers at
  46. // http://www.inmatrix.com/zplayer/highlights/skintutorial.shtml) and the second
  47. // tells Zoom Player to simulate a key press.
  48. // The Zoom Player Windows messange number is "32817".
  49. // The LParam can have the following values:
  50. // (LParam =   0) - WParam holds a specific function number.
  51. // (LParam =   1) - WParam holds a keyboard scancode.
  52. // (LParam =   2) - WParam holds a keyboard scancode with ALT pressed.
  53. // (LParam =   3) - WParam holds a keyboard scancode with CTRL pressed.
  54. // (LParam =   4) - WParam holds a keyboard scancode with SHIFT pressed.
  55. // (LParam =   5) - WParam holds a keyboard scancode with ALT+SHIFT pressed.
  56. // (LParam =   6) - WParam holds a keyboard scancode with ALT+CTRL pressed.
  57. // (LParam =   7) - WParam holds a keyboard scancode with CTRL+SHIFT pressed.
  58. // (LParam =   8) - WParam holds a keyboard scancode with ALT+SHIFT+CTRL pressed.
  59. // (LParam = 100) - WParam Value : [0 = Mouse Middle Button Click, 1 = Mouse Wheel Up, 2 = Mouse Wheel Down].
  60. //
  61. // Extended functions are not directly supported through windows messages, but you can easily
  62. // support them by using scankey numbers that aren't mapped to keyboard keys (basically any number
  63. // higher than 16000 should be fine).
  64. //
  65. //
  66. // The only reserved keys you shouldn't use are "Alt, Shift and Ctrl keys".
  67. //
  68. // And lastly, there is a limitation of 500 keys and the parser doesn't check for errors, so
  69. // make sure that all the command structures are valid.
  70. //
  71.  
  72. // Add Default Navigation Commands
  73. nvAddKey(None,37,nvLeft)
  74. nvAddKey(None,39,nvRight)
  75. nvAddKey(None,38,nvUp)
  76. nvAddKey(None,40,nvDown)
  77. nvAddKey(None,36,nvHome)
  78. nvAddKey(None,35,nvEnd)
  79. nvAddKey(None,33,nvPgUp)
  80. nvAddKey(None,34,nvPgDn)
  81. nvAddKey(None,13,nvSelect)
  82. nvAddKey(None,45,nvInsert)
  83. nvAddKey(None,46,nvDelete)
  84. nvAddKey(None,27,nvEscape)
  85. nvAddKey(None,8,nvBackSpace)
  86. nvAddKey(Shift,37,nvLeft)
  87. nvAddKey(Shift,39,nvRight)
  88. nvAddKey(Shift,38,nvUp)
  89. nvAddKey(Shift,40,nvDown)
  90. nvAddKey(Shift,13,nvSelect)
  91.  
  92. // No Modifier:
  93. AddKey(None,32,fnSpace)
  94. AddKey(None,219,fnPrevTrack)
  95. AddKey(None,221,fnNextTrack)
  96. AddKey(None,188,fnSkipBackward)
  97. AddKey(None,190,fnSkipForward)
  98. AddKey(None,68,fnMPEG4)
  99. AddKey(None,90,fnZoom)
  100. AddKey(None,79,fnOpen)
  101. AddKey(None,87,fnRewind)
  102. AddKey(None,80,fnPlay)
  103. AddKey(None,83,fnStop)
  104. AddKey(None,65,fnPause)
  105. AddKey(None,67,fnAddChapter)
  106. AddKey(None,78,fnSkin)
  107. AddKey(None,82,fnARCycle)
  108. AddKey(None,73,fnInfo)
  109. AddKey(None,192,fnFitSource)
  110. AddKey(None,77,fnMax)
  111. AddKey(None,70,fnFastForward)
  112. AddKey(None,76,fnSlowMotion)
  113. AddKey(None,107,fnZoomIn)
  114. AddKey(None,187,fnZoomIn)
  115. AddKey(None,109,fnZoomOut)
  116. AddKey(None,189,fnZoomOut)
  117. AddKey(None,112,fnKeyHelp)
  118. AddKey(None,113,fnAudioMode)
  119. AddKey(None,121,fnDVDMode)
  120. AddKey(None,191,fnEject)
  121. AddKey(None,186,fnDVDRootMenu)
  122. AddKey(None,222,fnDVDTitleMenu)
  123. AddKey(None,122,fnOverlayReset)
  124. AddKey(None,123,fnOverlayApply)
  125. AddKey(None,85,fnUnpause)
  126. AddKey(None,66,fnAddALBookmark)
  127. AddKey(None,84,fnSeekToStart)
  128. AddKey(None,71,fnGoTo)
  129. AddKey(None,88,fnRadioManager)
  130. AddKey(None,81,fnEqualizer)
  131. AddKey(None,74,fnPLControl)
  132. exAddKey(None,48,exApplyPR,0)
  133. exAddKey(None,49,exApplyPR,1)
  134. exAddKey(None,50,exApplyPR,2)
  135. exAddKey(None,51,exApplyPR,3)
  136. exAddKey(None,52,exApplyPR,4)
  137. exAddKey(None,53,exApplyPR,5)
  138. exAddKey(None,54,exApplyPR,6)
  139. exAddKey(None,55,exApplyPR,7)
  140. exAddKey(None,56,exApplyPR,8)
  141. exAddKey(None,57,exApplyPR,9)
  142. exAddKey(None,96,exApplyPR,0)
  143. exAddKey(None,97,exApplyPR,1)
  144. exAddKey(None,98,exApplyPR,2)
  145. exAddKey(None,99,exApplyPR,3)
  146. exAddKey(None,100,exApplyPR,4)
  147. exAddKey(None,101,exApplyPR,5)
  148. exAddKey(None,102,exApplyPR,6)
  149. exAddKey(None,103,exApplyPR,7)
  150. exAddKey(None,104,exApplyPR,8)
  151. exAddKey(None,105,exApplyPR,9)
  152.  
  153. // Shift Modifier:
  154. AddKey(Shift,32,fnBar)
  155. AddKey(Shift,219,fnPrevChapter)
  156. AddKey(Shift,221,fnNextChapter)
  157. AddKey(Shift,188,fnPrevFrame)
  158. AddKey(Shift,190,fnNextFrame)
  159. AddKey(Shift,187,fnZoomIn)
  160. AddKey(Shift,82,fnRevARCycle)
  161. AddKey(Shift,67,fnChapter)
  162. AddKey(Shift,80,fnPattern)
  163. AddKey(Shift,79,fnOverlayControl)
  164. AddKey(Shift,186,fnDVDSubMenu)
  165. AddKey(Shift,222,fnDVDAudioMenu)
  166. AddKey(Shift,65,fnAudioDecoder)
  167. AddKey(Shift,78,fnPlayListNav)
  168. AddKey(Shift,83,fnResizeNav)
  169. AddKey(Shift,66,fnDisableDVDSub)
  170. AddKey(Shift,70,fnFileNav)
  171. AddKey(Shift,33,fnPrevVid)
  172. AddKey(Shift,34,fnNextVid)
  173. AddKey(Shift,35,fnVolDown)
  174. AddKey(Shift,36,fnVolUp)
  175. AddKey(Shift,84,fnSceneCut)
  176. AddKey(Shift,68,fnOpenDrive)
  177. AddKey(Shift,77,fnMediaPathEdit)
  178. AddKey(Shift,87,fnWebNav)
  179. AddKey(Shift,88,fnContextNav)
  180. AddKey(Shift,107,fnResyncAhead)
  181. AddKey(Shift,109,fnResyncBack)
  182. AddKey(Shift,90,fnFastPlay)
  183. AddKey(Shift,85,fnOpenURL)
  184. AddKey(Shift,86,fnSSaverToggle)
  185. AddKey(Shift,73,fnMainNav)
  186. AddKey(Shift,76,fnCBarButToggle)
  187. AddKey(Shift,75,fnBlankingNav)
  188. AddKey(Shift,81,fnEQNav)
  189. AddKey(Shift,72,fnPlayHistoryNav)
  190. AddKey(Shift,27,fnCloseNavs)
  191. AddKey(Shift,74,fnReloadCurrent)
  192. exAddKey(Shift,48,exBlanking,0)
  193. exAddKey(Shift,49,exBlanking,1)
  194. exAddKey(Shift,50,exBlanking,2)
  195. exAddKey(Shift,51,exBlanking,3)
  196. exAddKey(Shift,52,exBlanking,4)
  197. exAddKey(Shift,53,exBlanking,5)
  198. exAddKey(Shift,54,exBlanking,6)
  199. exAddKey(Shift,55,exBlanking,7)
  200. exAddKey(Shift,56,exBlanking,8)
  201. exAddKey(Shift,57,exBlanking,9)
  202.  
  203. // Ctrl Modifier:
  204. AddKey(Ctrl,85,fnSceneCutToggle)
  205. AddKey(Ctrl,70,fnHalfFF)
  206. AddKey(Ctrl,76,fnHalfSM)
  207. AddKey(Ctrl,77,fnMute)
  208. AddKey(Ctrl,79,fnOptions)
  209. AddKey(Ctrl,80,fnPresets)
  210. AddKey(Ctrl,83,fnStopToFirst)
  211. AddKey(Ctrl,107,fnZoomInWidth)
  212. AddKey(Ctrl,109,fnZoomOutWidth)
  213. AddKey(Ctrl,190,fnSeekForward)
  214. AddKey(Ctrl,188,fnSeekBackward)
  215. AddKey(Ctrl,65,fnAudioTrack)
  216. AddKey(Ctrl,66,fnDVDSub)
  217. AddKey(Ctrl,78,fnDVDAngle)
  218. AddKey(Ctrl,67,fnDVDCC)
  219. AddKey(Ctrl,68,fnSaveDF)
  220. AddKey(Ctrl,116,fnDecBrightness)
  221. AddKey(Ctrl,117,fnDecContrast)
  222. AddKey(Ctrl,118,fnDecGamma)
  223. AddKey(Ctrl,119,fnDecHue)
  224. AddKey(Ctrl,120,fnDecSaturation)
  225. AddKey(Ctrl,222,fnDVDMenuPrev)
  226. AddKey(Ctrl,75,fnBlankingPreset)
  227. AddKey(Ctrl,82,fnRandomPlay)
  228. AddKey(Ctrl,221,fnBlankCycle)
  229. AddKey(Ctrl,219,fnRevBlankCycle)
  230. AddKey(Ctrl,33,fnPrevArrowFunc)
  231. AddKey(Ctrl,34,fnNextArrowFunc)
  232. AddKey(Ctrl,84,fnAutoARToggle)
  233. AddKey(Ctrl,90,fnPauseAtEOF)
  234. AddKey(Ctrl,72,fnSrcRelStretch)
  235. AddKey(Ctrl,73,fnStationNav)
  236. AddKey(Ctrl,35,fnDecPreAmp)
  237. AddKey(Ctrl,36,fnIncPreAmp)
  238. AddKey(Ctrl,86,fnLibCategoryNav)
  239. exAddKey(Ctrl,48,exSavePR,0)
  240. exAddKey(Ctrl,49,exSavePR,1)
  241. exAddKey(Ctrl,50,exSavePR,2)
  242. exAddKey(Ctrl,51,exSavePR,3)
  243. exAddKey(Ctrl,52,exSavePR,4)
  244. exAddKey(Ctrl,53,exSavePR,5)
  245. exAddKey(Ctrl,54,exSavePR,6)
  246. exAddKey(Ctrl,55,exSavePR,7)
  247. exAddKey(Ctrl,56,exSavePR,8)
  248. exAddKey(Ctrl,57,exSavePR,9)
  249. exAddKey(Ctrl,96,exSavePR,0)
  250. exAddKey(Ctrl,97,exSavePR,1)
  251. exAddKey(Ctrl,98,exSavePR,2)
  252. exAddKey(Ctrl,99,exSavePR,3)
  253. exAddKey(Ctrl,100,exSavePR,4)
  254. exAddKey(Ctrl,101,exSavePR,5)
  255. exAddKey(Ctrl,102,exSavePR,6)
  256. exAddKey(Ctrl,103,exSavePR,7)
  257. exAddKey(Ctrl,104,exSavePR,8)
  258. exAddKey(Ctrl,105,exSavePR,9)
  259.  
  260. // Alt Modifier:
  261. AddKey(Alt,37,fnDecWidth)
  262. AddKey(Alt,39,fnIncWidth)
  263. AddKey(Alt,38,fnDecHeight)
  264. AddKey(Alt,40,fnIncHeight)
  265. AddKey(Alt,13,fnFullscreen)
  266. AddKey(Alt,32,fnBar)
  267. AddKey(Alt,80,fnPlayEndCycle)
  268. AddKey(Alt,90,fnZoomAxis)
  269. AddKey(Alt,82,fnABRepeat)
  270. AddKey(Alt,83,fnSub)
  271. AddKey(Alt,79,fnOSD)
  272. AddKey(Alt,67,fnSaveChapter)
  273. AddKey(Alt,190,fnJumpForward)
  274. AddKey(Alt,188,fnJumpBackward)
  275. AddKey(Alt,107,fnZoomInHeight)
  276. AddKey(Alt,109,fnZoomOutHeight)
  277. AddKey(Alt,84,fnStayOnTop)
  278. AddKey(Alt,65,fnAudioFilter)
  279. AddKey(Alt,35,fnDecRate)
  280. AddKey(Alt,36,fnIncRate)
  281. AddKey(Alt,68,fnOpenDir)
  282. AddKey(Alt,70,fnFrameCapture)
  283. AddKey(Alt,76,fnPlayList)
  284. AddKey(Alt,186,fnDVDChapterMenu)
  285. AddKey(Alt,222,fnDVDAngleMenu)
  286. AddKey(Alt,116,fnIncBrightness)
  287. AddKey(Alt,117,fnIncContrast)
  288. AddKey(Alt,118,fnIncGamma)
  289. AddKey(Alt,119,fnIncHue)
  290. AddKey(Alt,120,fnIncSaturation)
  291. AddKey(Alt,78,fnChapterNav)
  292. AddKey(Alt,75,fnBlanking)
  293. AddKey(Alt,221,fnPresetCycle)
  294. AddKey(Alt,219,fnRevPresetCycle)
  295. AddKey(Alt,85,fnDVDPlayStart)
  296. AddKey(Alt,66,fnFrameZeroALBM)
  297. AddKey(Alt,71,fnGoToNav)
  298. AddKey(Alt,87,fnMWFuncNav)
  299. AddKey(Alt,88,fnExit)
  300. AddKey(Alt,77,fnMediaNav)
  301. AddKey(Alt,48,fnBringToFront)
  302. AddKey(Alt,49,fnZoom50)
  303. AddKey(Alt,50,fnZoom100)
  304. AddKey(Alt,51,fnZoom200)
  305. AddKey(Alt,52,fnZoom400)
  306. AddKey(Alt,53,fnZoom800)
  307. AddKey(Alt,72,fnPlayHistory)
  308. AddKey(Alt,86,fnPLGetDuration)
  309. AddKey(Alt,73,fnMinimize)
  310. AddKey(Alt,33,fnPLItemUp)
  311. AddKey(Alt,34,fnPLItemDown)
  312. AddKey(Alt,69,fnLastNav)
  313.  
  314. // Alt+Shift Modifier:
  315. AddKey(Alt+Shift,188,fnBalanceLeft)
  316. AddKey(Alt+Shift,190,fnBalanceRight)
  317. AddKey(Alt+Shift,68,fnLoadDF)
  318. AddKey(Alt+Shift,107,fnSubDown)
  319. AddKey(Alt+Shift,109,fnSubUp)
  320. AddKey(Alt+Shift,219,fnPrevDVDTitle)
  321. AddKey(Alt+Shift,221,fnNextDVDTitle)
  322. AddKey(Alt+Shift,67,fnContactSheet)
  323. exAddKey(Alt+Shift,48,exSetCustomAR,0)
  324. exAddKey(Alt+Shift,49,exSetCustomAR,1)
  325. exAddKey(Alt+Shift,50,exSetCustomAR,2)
  326. exAddKey(Alt+Shift,51,exSetCustomAR,3)
  327. exAddKey(Alt+Shift,52,exSetCustomAR,4)
  328. exAddKey(Alt+Shift,53,exSetCustomAR,5)
  329. exAddKey(Alt+Shift,54,exSetCustomAR,6)
  330. exAddKey(Alt+Shift,55,exSetCustomAR,7)
  331. exAddKey(Alt+Shift,56,exSetCustomAR,8)
  332. exAddKey(Alt+Shift,57,exSetCustomAR,9)
  333.  
  334. // Ctrl+Shift Modifier:
  335. exAddKey(Ctrl+Shift,48,exOverlayColor,0)
  336. exAddKey(Ctrl+Shift,49,exOverlayColor,1)
  337. exAddKey(Ctrl+Shift,50,exOverlayColor,2)
  338. exAddKey(Ctrl+Shift,51,exOverlayColor,3)
  339. exAddKey(Ctrl+Shift,52,exOverlayColor,4)
  340. exAddKey(Ctrl+Shift,53,exOverlayColor,5)
  341. exAddKey(Ctrl+Shift,54,exOverlayColor,6)
  342. exAddKey(Ctrl+Shift,55,exOverlayColor,7)
  343. exAddKey(Ctrl+Shift,56,exOverlayColor,8)
  344. exAddKey(Ctrl+Shift,57,exOverlayColor,9)
  345.  
  346. // Alt+Ctrl Modifier:
  347. AddKey(Alt+Ctrl,68,fnDateTime)
  348. AddKey(Alt+Ctrl,107,fnSubSyncAhead)
  349. AddKey(Alt+Ctrl,109,fnSubSyncBack)
  350. exAddKey(Alt+Ctrl,48,exDVDNumPad,0)
  351. exAddKey(Alt+Ctrl,49,exDVDNumPad,1)
  352. exAddKey(Alt+Ctrl,50,exDVDNumPad,2)
  353. exAddKey(Alt+Ctrl,51,exDVDNumPad,3)
  354. exAddKey(Alt+Ctrl,52,exDVDNumPad,4)
  355. exAddKey(Alt+Ctrl,53,exDVDNumPad,5)
  356. exAddKey(Alt+Ctrl,54,exDVDNumPad,6)
  357. exAddKey(Alt+Ctrl,55,exDVDNumPad,7)
  358. exAddKey(Alt+Ctrl,56,exDVDNumPad,8)
  359. exAddKey(Alt+Ctrl,57,exDVDNumPad,9)
  360.  
  361. // Mapping Chapter support through non-existant scan keys (for use with remote control devices):
  362. exAddKey(None,20000,exChapterTrack,0)
  363. exAddKey(None,20001,exChapterTrack,1)
  364. exAddKey(None,20002,exChapterTrack,2)
  365. exAddKey(None,20003,exChapterTrack,3)
  366. exAddKey(None,20004,exChapterTrack,4)
  367. exAddKey(None,20005,exChapterTrack,5)
  368. exAddKey(None,20006,exChapterTrack,6)
  369. exAddKey(None,20007,exChapterTrack,7)
  370. exAddKey(None,20008,exChapterTrack,8)
  371. exAddKey(None,20009,exChapterTrack,9)
  372.  
  373. // Multimedia Keyboard Basic Functions
  374. mcAddKey(11,fnNextChapter)
  375. mcAddKey(12,fnPrevChapter)
  376. mcAddKey(13,fnStop)
  377. mcAddKey(14,fnPlay)
  378.  
  379. // Internal SkinGroup Functions
  380. exAddKey(None,115,exGroupSet,-1)
  381. exAddKey(None,116,exGroupSet,-2)
  382. exAddKey(None,117,exGroupSet,8192)
  383. exAddKey(None,118,exGroupSet,64)
  384.  
  385. // Multimedia Mouse Basic Functions (extra buttons)
  386. mcAddKey(32770,fnSkipForward)
  387. mcAddKey(32769,fnSkipBackward)
  388.  
  389. // End of file
  390.