home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / temacd / zoomplayer / zp451std.exe / default.key < prev    next >
Text File  |  2005-06-14  |  13KB  |  378 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 "skins/brownish.skn" file for a list of function numbers) and the second
  46. // tells Zoom Player to simulate a key press.
  47. // The Zoom Player Windows messange number is "32817".
  48. // The LParam can have the following values:
  49. // (LParam =   0) - WParam holds a specific function number.
  50. // (LParam =   1) - WParam holds a keyboard scancode.
  51. // (LParam =   2) - WParam holds a keyboard scancode with ALT pressed.
  52. // (LParam =   3) - WParam holds a keyboard scancode with CTRL pressed.
  53. // (LParam =   4) - WParam holds a keyboard scancode with SHIFT pressed.
  54. // (LParam =   5) - WParam holds a keyboard scancode with ALT+SHIFT pressed.
  55. // (LParam =   6) - WParam holds a keyboard scancode with ALT+CTRL pressed.
  56. // (LParam =   7) - WParam holds a keyboard scancode with CTRL+SHIFT pressed.
  57. // (LParam =   8) - WParam holds a keyboard scancode with ALT+SHIFT+CTRL pressed.
  58. // (LParam = 100) - WParam Value : [0 = Mouse Middle Button Click, 1 = Mouse Wheel Up, 2 = Mouse Wheel Down].
  59. //
  60. // Extended functions are not directly supported through windows messages, but you can easily
  61. // support them by using scankey numbers that aren't mapped to keyboard keys (basically any number
  62. // higher than 16000 should be fine).
  63. //
  64. //
  65. // The only reserved keys you shouldn't use are "Alt, Shift and Ctrl keys".
  66. //
  67. // And lastly, there is a limitation of 500 keys and the parser doesn't check for errors, so
  68. // make sure that all the command structures are valid.
  69. //
  70.  
  71. // Add Default Navigation Commands
  72. nvAddKey(None,37,nvLeft)
  73. nvAddKey(None,39,nvRight)
  74. nvAddKey(None,38,nvUp)
  75. nvAddKey(None,40,nvDown)
  76. nvAddKey(None,36,nvHome)
  77. nvAddKey(None,35,nvEnd)
  78. nvAddKey(None,33,nvPgUp)
  79. nvAddKey(None,34,nvPgDn)
  80. nvAddKey(None,13,nvSelect)
  81. nvAddKey(None,45,nvInsert)
  82. nvAddKey(None,46,nvDelete)
  83. nvAddKey(None,27,nvEscape)
  84. nvAddKey(None,8,nvBackSpace)
  85. nvAddKey(Shift,37,nvLeft)
  86. nvAddKey(Shift,39,nvRight)
  87. nvAddKey(Shift,38,nvUp)
  88. nvAddKey(Shift,40,nvDown)
  89. nvAddKey(Shift,13,nvSelect)
  90.  
  91. // No Modifier:
  92. AddKey(None,32,fnSpace)
  93. AddKey(None,219,fnPrevTrack)
  94. AddKey(None,221,fnNextTrack)
  95. AddKey(None,188,fnSkipBackward)
  96. AddKey(None,190,fnSkipForward)
  97. AddKey(None,68,fnMPEG4)
  98. AddKey(None,90,fnZoom)
  99. AddKey(None,79,fnOpen)
  100. AddKey(None,87,fnRewind)
  101. AddKey(None,80,fnPlay)
  102. AddKey(None,83,fnStop)
  103. AddKey(None,65,fnPause)
  104. AddKey(None,67,fnAddChapter)
  105. AddKey(None,78,fnSkin)
  106. AddKey(None,82,fnARCycle)
  107. AddKey(None,73,fnInfo)
  108. AddKey(None,192,fnFitSource)
  109. AddKey(None,77,fnMax)
  110. AddKey(None,70,fnFastForward)
  111. AddKey(None,76,fnSlowMotion)
  112. AddKey(None,107,fnZoomIn)
  113. AddKey(None,109,fnZoomOut)
  114. AddKey(None,189,fnZoomOut)
  115. AddKey(None,112,fnKeyHelp)
  116. AddKey(None,113,fnAudioMode)
  117. AddKey(None,121,fnDVDMode)
  118. AddKey(None,191,fnEject)
  119. AddKey(None,186,fnDVDRootMenu)
  120. AddKey(None,222,fnDVDTitleMenu)
  121. AddKey(None,122,fnOverlayReset)
  122. AddKey(None,123,fnOverlayApply)
  123. AddKey(None,85,fnUnpause)
  124. AddKey(None,66,fnAddALBookmark)
  125. AddKey(None,84,fnSeekToStart)
  126. AddKey(None,75,fnBlankingNav)
  127. AddKey(None,71,fnGoTo)
  128. AddKey(None,69,fnFileNav)
  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. exAddKey(Shift,48,exBlanking,0)
  186. exAddKey(Shift,49,exBlanking,1)
  187. exAddKey(Shift,50,exBlanking,2)
  188. exAddKey(Shift,51,exBlanking,3)
  189. exAddKey(Shift,52,exBlanking,4)
  190. exAddKey(Shift,53,exBlanking,5)
  191. exAddKey(Shift,54,exBlanking,6)
  192. exAddKey(Shift,55,exBlanking,7)
  193. exAddKey(Shift,56,exBlanking,8)
  194. exAddKey(Shift,57,exBlanking,9)
  195.  
  196. // Ctrl Modifier:
  197. AddKey(Ctrl,85,fnSceneCutToggle)
  198. AddKey(Ctrl,70,fnHalfFF)
  199. AddKey(Ctrl,76,fnHalfSM)
  200. AddKey(Ctrl,77,fnMute)
  201. AddKey(Ctrl,79,fnOptions)
  202. AddKey(Ctrl,80,fnPresets)
  203. AddKey(Ctrl,83,fnStopToFirst)
  204. AddKey(Ctrl,107,fnZoomInWidth)
  205. AddKey(Ctrl,109,fnZoomOutWidth)
  206. AddKey(Ctrl,190,fnSeekForward)
  207. AddKey(Ctrl,188,fnSeekBackward)
  208. AddKey(Ctrl,65,fnAudioTrack)
  209. AddKey(Ctrl,66,fnDVDSub)
  210. AddKey(Ctrl,78,fnDVDAngle)
  211. AddKey(Ctrl,67,fnDVDCC)
  212. AddKey(Ctrl,68,fnSaveDF)
  213. AddKey(Ctrl,116,fnDecBrightness)
  214. AddKey(Ctrl,117,fnDecContrast)
  215. AddKey(Ctrl,118,fnDecGamma)
  216. AddKey(Ctrl,119,fnDecHue)
  217. AddKey(Ctrl,120,fnDecSaturation)
  218. AddKey(Ctrl,222,fnDVDMenuPrev)
  219. AddKey(Ctrl,75,fnBlankingPreset)
  220. AddKey(Ctrl,82,fnRandomPlay)
  221. AddKey(Ctrl,221,fnBlankCycle)
  222. AddKey(Ctrl,219,fnRevBlankCycle)
  223. AddKey(Ctrl,33,fnPrevArrowFunc)
  224. AddKey(Ctrl,34,fnNextArrowFunc)
  225. AddKey(Ctrl,84,fnAutoARToggle)
  226. AddKey(Ctrl,90,fnPauseAtEOF)
  227. AddKey(Ctrl,72,fnSrcRelStretch)
  228. AddKey(Ctrl,73,fnStationNav)
  229. AddKey(Ctrl,35,fnDecPreAmp)
  230. AddKey(Ctrl,36,fnIncPreAmp)
  231. exAddKey(Ctrl,48,exSavePR,0)
  232. exAddKey(Ctrl,49,exSavePR,1)
  233. exAddKey(Ctrl,50,exSavePR,2)
  234. exAddKey(Ctrl,51,exSavePR,3)
  235. exAddKey(Ctrl,52,exSavePR,4)
  236. exAddKey(Ctrl,53,exSavePR,5)
  237. exAddKey(Ctrl,54,exSavePR,6)
  238. exAddKey(Ctrl,55,exSavePR,7)
  239. exAddKey(Ctrl,56,exSavePR,8)
  240. exAddKey(Ctrl,57,exSavePR,9)
  241. exAddKey(Ctrl,96,exSavePR,0)
  242. exAddKey(Ctrl,97,exSavePR,1)
  243. exAddKey(Ctrl,98,exSavePR,2)
  244. exAddKey(Ctrl,99,exSavePR,3)
  245. exAddKey(Ctrl,100,exSavePR,4)
  246. exAddKey(Ctrl,101,exSavePR,5)
  247. exAddKey(Ctrl,102,exSavePR,6)
  248. exAddKey(Ctrl,103,exSavePR,7)
  249. exAddKey(Ctrl,104,exSavePR,8)
  250. exAddKey(Ctrl,105,exSavePR,9)
  251.  
  252. // Alt Modifier:
  253. AddKey(Alt,37,fnDecWidth)
  254. AddKey(Alt,39,fnIncWidth)
  255. AddKey(Alt,38,fnDecHeight)
  256. AddKey(Alt,40,fnIncHeight)
  257. AddKey(Alt,13,fnFullscreen)
  258. AddKey(Alt,32,fnBar)
  259. AddKey(Alt,80,fnPlayEndCycle)
  260. AddKey(Alt,90,fnZoomAxis)
  261. AddKey(Alt,82,fnABRepeat)
  262. AddKey(Alt,83,fnSub)
  263. AddKey(Alt,79,fnOSD)
  264. AddKey(Alt,67,fnSaveChapter)
  265. AddKey(Alt,190,fnJumpForward)
  266. AddKey(Alt,188,fnJumpBackward)
  267. AddKey(Alt,107,fnZoomInHeight)
  268. AddKey(Alt,109,fnZoomOutHeight)
  269. AddKey(Alt,84,fnStayOnTop)
  270. AddKey(Alt,65,fnAudioFilter)
  271. AddKey(Alt,35,fnDecRate)
  272. AddKey(Alt,36,fnIncRate)
  273. AddKey(Alt,68,fnOpenDir)
  274. AddKey(Alt,70,fnFrameCapture)
  275. AddKey(Alt,76,fnPlayList)
  276. AddKey(Alt,186,fnDVDChapterMenu)
  277. AddKey(Alt,222,fnDVDAngleMenu)
  278. AddKey(Alt,116,fnIncBrightness)
  279. AddKey(Alt,117,fnIncContrast)
  280. AddKey(Alt,118,fnIncGamma)
  281. AddKey(Alt,119,fnIncHue)
  282. AddKey(Alt,120,fnIncSaturation)
  283. AddKey(Alt,78,fnChapterNav)
  284. AddKey(Alt,75,fnBlanking)
  285. AddKey(Alt,221,fnPresetCycle)
  286. AddKey(Alt,219,fnRevPresetCycle)
  287. AddKey(Alt,85,fnDVDPlayStart)
  288. AddKey(Alt,66,fnFrameZeroALBM)
  289. AddKey(Alt,71,fnGoToNav)
  290. AddKey(Alt,87,fnMWFuncNav)
  291. AddKey(Alt,88,fnExit)
  292. AddKey(Alt,77,fnMediaNav)
  293. AddKey(Alt,48,fnBringToFront)
  294. AddKey(Alt,49,fnZoom50)
  295. AddKey(Alt,50,fnZoom100)
  296. AddKey(Alt,51,fnZoom200)
  297. AddKey(Alt,52,fnZoom400)
  298. AddKey(Alt,53,fnZoom800)
  299. AddKey(Alt,72,fnPlayHistory)
  300. AddKey(Alt,86,fnPLGetDuration)
  301. AddKey(Alt,73,fnMinimize)
  302. AddKey(Alt,33,fnPLItemUp)
  303. AddKey(Alt,34,fnPLItemDown)
  304.  
  305. // Alt+Shift Modifier:
  306. AddKey(Alt+Shift,188,fnBalanceLeft)
  307. AddKey(Alt+Shift,190,fnBalanceRight)
  308. AddKey(Alt+Shift,68,fnLoadDF)
  309. AddKey(Alt+Shift,107,fnSubDown)
  310. AddKey(Alt+Shift,109,fnSubUp)
  311. exAddKey(Alt+Shift,48,exSetCustomAR,0)
  312. exAddKey(Alt+Shift,49,exSetCustomAR,1)
  313. exAddKey(Alt+Shift,50,exSetCustomAR,2)
  314. exAddKey(Alt+Shift,51,exSetCustomAR,3)
  315. exAddKey(Alt+Shift,52,exSetCustomAR,4)
  316. exAddKey(Alt+Shift,53,exSetCustomAR,5)
  317. exAddKey(Alt+Shift,54,exSetCustomAR,6)
  318. exAddKey(Alt+Shift,55,exSetCustomAR,7)
  319. exAddKey(Alt+Shift,56,exSetCustomAR,8)
  320. exAddKey(Alt+Shift,57,exSetCustomAR,9)
  321.  
  322. // Ctrl+Shift Modifier:
  323. exAddKey(Ctrl+Shift,48,exOverlayColor,0)
  324. exAddKey(Ctrl+Shift,49,exOverlayColor,1)
  325. exAddKey(Ctrl+Shift,50,exOverlayColor,2)
  326. exAddKey(Ctrl+Shift,51,exOverlayColor,3)
  327. exAddKey(Ctrl+Shift,52,exOverlayColor,4)
  328. exAddKey(Ctrl+Shift,53,exOverlayColor,5)
  329. exAddKey(Ctrl+Shift,54,exOverlayColor,6)
  330. exAddKey(Ctrl+Shift,55,exOverlayColor,7)
  331. exAddKey(Ctrl+Shift,56,exOverlayColor,8)
  332. exAddKey(Ctrl+Shift,57,exOverlayColor,9)
  333.  
  334. // Alt+Ctrl Modifier:
  335. AddKey(Alt+Ctrl,68,fnDateTime)
  336. AddKey(Alt+Ctrl,107,fnSubSyncAhead)
  337. AddKey(Alt+Ctrl,109,fnSubSyncBack)
  338. exAddKey(Alt+Ctrl,48,exDVDNumPad,0)
  339. exAddKey(Alt+Ctrl,49,exDVDNumPad,1)
  340. exAddKey(Alt+Ctrl,50,exDVDNumPad,2)
  341. exAddKey(Alt+Ctrl,51,exDVDNumPad,3)
  342. exAddKey(Alt+Ctrl,52,exDVDNumPad,4)
  343. exAddKey(Alt+Ctrl,53,exDVDNumPad,5)
  344. exAddKey(Alt+Ctrl,54,exDVDNumPad,6)
  345. exAddKey(Alt+Ctrl,55,exDVDNumPad,7)
  346. exAddKey(Alt+Ctrl,56,exDVDNumPad,8)
  347. exAddKey(Alt+Ctrl,57,exDVDNumPad,9)
  348.  
  349. // Mapping Chapter support through non-existant scan keys (for use with remote control devices):
  350. exAddKey(None,20000,exChapterTrack,0)
  351. exAddKey(None,20001,exChapterTrack,1)
  352. exAddKey(None,20002,exChapterTrack,2)
  353. exAddKey(None,20003,exChapterTrack,3)
  354. exAddKey(None,20004,exChapterTrack,4)
  355. exAddKey(None,20005,exChapterTrack,5)
  356. exAddKey(None,20006,exChapterTrack,6)
  357. exAddKey(None,20007,exChapterTrack,7)
  358. exAddKey(None,20008,exChapterTrack,8)
  359. exAddKey(None,20009,exChapterTrack,9)
  360.  
  361. // Multimedia Keyboard Basic Functions
  362. mcAddKey(11,fnNextChapter)
  363. mcAddKey(12,fnPrevChapter)
  364. mcAddKey(13,fnStop)
  365. mcAddKey(14,fnPlay)
  366.  
  367. // Internal SkinGroup Functions
  368. exAddKey(None,115,exGroupSet,1)
  369. exAddKey(None,116,exGroupSet,2)
  370. exAddKey(None,117,exGroupSet,8192)
  371. exAddKey(None,118,exGroupSet,64)
  372.  
  373. // Multimedia Mouse Basic Functions (extra buttons)
  374. mcAddKey(32770,fnSkipForward)
  375. mcAddKey(32769,fnSkipBackward)
  376.  
  377. // End of file
  378.