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 >
Wrap
Text File
|
2003-11-11
|
14KB
|
362 lines
// This is a key list file that represents the
// default keys used in Zoom Player. It is not
// required for operation, it's only a sample file.
//
// There are two function that can be used to add keys:
//
// AddKey(KeyState,ScanCode,Function)
// - "KeyState" is the value of the modifier key. Values can be "Alt", "Ctrl", "Shift" and "None".
// You can see how to combine multiple keystate values in this example:
// AddKey(Alt+Shift,27,fnQuit)
// - "ScanKey" is the keyboard scan key, you can use the ScanCode button on the Zoom Player
// Options Key dialog to get scan codes for every key.
// - "Function" is the command you want the key to perform, you can get a list of functions
// by looking at the "CreateButton" procedure in the "brownish.skn" file.
//
// exAddKey(KeyState,ScanCode,exFunction,Value)
// - The first two parameters are identical to the AddKey function.
// - The exFunction is a special function which is limited to keyboard keys and windows messages.
// You can find a function list below.
// - The Value parameter contains the data to be sent to the function.
//
// mcAddKey(CommandCode,Function)
// - Used to set a funtion to Multimedia Command (Multimedia Keyboard and other devices), the
// first parameter specifies the command code value while the second parameter specifies the Zoom Player
// function (see below for examples).
// I have included a list of known Multimedia Commands, not all multimedia devices may have buttons for
// all the commands, but feel free to experiment: http://www.inmatrix.com/zplayer/mediacommandlist.shtml
//
// Extended Function List:
//
// 000 - exSetAR - Set Aspect Ratio - Value = 0-6
// 001 - exApplyPR - Apply Zoom Preset - Value = 0-9
// 002 - exSavePR - Save Zoom Preset - Value = 0-9
// 003 - exChapterTrack - Chapter/Track Selector - Value = 0-9 (Opens chapter/track dialog with 5 seconds timeout for a second key)
// 004 - exBlanking - Set Blanking Preset - Value = 0-9 (Automatically enables blanking)
// 005 - exSetMode - Set Playback Mode - Value = 0-Media Mode, 1-DVD Mode
// 006 - exInterface - Toggle Interfaces - Value = 00-Turn ON Control Bar
// 01-Turn OFF Control Bar
// 02-Turn ON Play List Editor
// 03-Turn OFF Play List Editor
// 04-Turn ON Chapter/Bookmark Editor
// 05-Turn OFF Chapter/Bookmark Editor
// 007 - exSetPlayRate - Set Media Play Rate - Value = 1-22670 (where 10000 = Standard Play)
// 008 - exSetCustomAR - Set Custom Aspect Ratio - Value = 0-9 (Automatically switches AR to Custom mode)
// 009 - exOverlayColor - Set Color Control Preset - Value = 0-9
// 010 - exPlayComplete - Set Play Complete Mode - Value = 0-6 (may expand in a future version)
// 011 - exDVDNumPad - Select DVD Number Pad - Value = 0-9
// 012 - exOpenDrive - Open an entire drive - Value = 0-25 (0 = A:, 2 = C: ... 25 = Z:)
// 013 - exSeekAhead - Seek Ahead [n] Seconds - Value = 1-999999999
// 014 - exSeekBack - Seek Back [n] Seconds - Value = 1-999999999
// 015 - exSeekTo - Seek to Position [n] Sec - Value = 1-999999999
// 016 - exGroupToggle - Toggle Skin Groups - Value = 0-1^32 (Bitmask indicating which groups to toggle)
// 017 - exGroupEnable - Enable Skin Groups - Value = 0-1^32 (Bitmask indicating which groups to enable)
// 018 - exGroupDisable - Disable Skin Groups - Value = 0-1^32 (Bitmask indicating which groups to disable)
// 019 - exGroupSet - Set the Skin Groups Mask - Value = 0-1^32 (Bitmask indicating the group mask)
// 020 - exSetVolume - Set the Audio Volume - Value = 0-100 (Percentage of volume level)
//
//
// Example:
// exAddKey(None,81,exSetAR,1) would assign the "Source Aspect Ratio" to the letter "Q".
//
// You can even combine several functions on one key if you want to.
// Just use the AddKey command several times on the same ScanCode and
// the functions will be executed in sequence according to the order
// you wrote them at.
//
//
// Zoom Player further supports a method of emulating keystrokes through Windows messages.
// This interface is useful for remote control devices.
// There are two types of message control. The first tell Zoom Player to execute a specific
// function (see "skins/brownish.skn" file for a list of function numbers) and the second
// tells Zoom Player to simulate a key press.
// The Zoom Player Windows messange number is "32817".
// The LParam can have the following values:
// (LParam = 0) - WParam holds a specific function number.
// (LParam = 1) - WParam holds a keyboard scancode.
// (LParam = 2) - WParam holds a keyboard scancode with ALT pressed.
// (LParam = 3) - WParam holds a keyboard scancode with CTRL pressed.
// (LParam = 4) - WParam holds a keyboard scancode with SHIFT pressed.
// (LParam = 5) - WParam holds a keyboard scancode with ALT+SHIFT pressed.
// (LParam = 6) - WParam holds a keyboard scancode with ALT+CTRL pressed.
// (LParam = 7) - WParam holds a keyboard scancode with CTRL+SHIFT pressed.
// (LParam = 8) - WParam holds a keyboard scancode with ALT+SHIFT+CTRL pressed.
// (LParam = 100) - WParam Value : [0 = Mouse Middle Button Click, 1 = Mouse Wheel Up, 2 = Mouse Wheel Down].
//
// Extended functions are not directly supported through windows messages, but you can easily
// support them by using scankey numbers that aren't mapped to keyboard keys (basically any number
// higher than 16000 should be fine).
//
//
// There are however some reserved keys which you shouldn't use:
// 1. Arrow keys (and keypad arrows if numlock is off).
// 2. PageUP, PageDOWN, Home, End.
// 3. Space, Enter and Esc keys.
// 4. Alt, Shift and Ctrl keys (as a ScanCode key entry).
//
// And lastly, there is a limitation of 500 keys and the parser doesn't check for errors, so
// make sure that all the command structures are valid.
//
// No Modifier:
AddKey(None,219,fnPrevTrack)
AddKey(None,221,fnNextTrack)
AddKey(None,188,fnSkipBackward)
AddKey(None,190,fnSkipForward)
AddKey(None,68,fnMPEG4)
AddKey(None,90,fnZoom)
AddKey(None,79,fnOpen)
AddKey(None,87,fnRewind)
AddKey(None,80,fnPlay)
AddKey(None,83,fnStop)
AddKey(None,65,fnPause)
AddKey(None,67,fnAddChapter)
AddKey(None,78,fnSkin)
AddKey(None,82,fnARCycle)
AddKey(None,73,fnInfo)
AddKey(None,192,fnFitSource)
AddKey(None,77,fnMax)
AddKey(None,70,fnFastForward)
AddKey(None,76,fnSlowMotion)
AddKey(None,107,fnZoomIn)
AddKey(None,109,fnZoomOut)
AddKey(None,189,fnZoomOut)
AddKey(None,112,fnKeyHelp)
AddKey(None,121,fnDVDMode)
AddKey(None,191,fnEject)
AddKey(None,186,fnDVDRootMenu)
AddKey(None,222,fnDVDTitleMenu)
AddKey(None,122,fnOverlayReset)
AddKey(None,123,fnOverlayApply)
AddKey(None,85,fnUnpause)
AddKey(None,66,fnAddALBookmark)
AddKey(None,84,fnSeekToStart)
AddKey(None,75,fnBlankingNav)
AddKey(None,71,fnGoTo)
AddKey(None,69,fnFileNav)
AddKey(None,88,fnRadioManager)
AddKey(None,81,fnEqualizer)
exAddKey(None,48,exApplyPR,0)
exAddKey(None,49,exApplyPR,1)
exAddKey(None,50,exApplyPR,2)
exAddKey(None,51,exApplyPR,3)
exAddKey(None,52,exApplyPR,4)
exAddKey(None,53,exApplyPR,5)
exAddKey(None,54,exApplyPR,6)
exAddKey(None,55,exApplyPR,7)
exAddKey(None,56,exApplyPR,8)
exAddKey(None,57,exApplyPR,9)
exAddKey(None,96,exApplyPR,0)
exAddKey(None,97,exApplyPR,1)
exAddKey(None,98,exApplyPR,2)
exAddKey(None,99,exApplyPR,3)
exAddKey(None,100,exApplyPR,4)
exAddKey(None,101,exApplyPR,5)
exAddKey(None,102,exApplyPR,6)
exAddKey(None,103,exApplyPR,7)
exAddKey(None,104,exApplyPR,8)
exAddKey(None,105,exApplyPR,9)
// Shift Modifier:
AddKey(Shift,219,fnPrevChapter)
AddKey(Shift,221,fnNextChapter)
AddKey(Shift,188,fnPrevFrame)
AddKey(Shift,190,fnNextFrame)
AddKey(Shift,187,fnZoomIn)
AddKey(Shift,82,fnRevARCycle)
AddKey(Shift,67,fnChapter)
AddKey(Shift,80,fnPattern)
AddKey(Shift,79,fnOverlayControl)
AddKey(Shift,186,fnDVDSubMenu)
AddKey(Shift,222,fnDVDAudioMenu)
AddKey(Shift,65,fnAudioDecoder)
AddKey(Shift,78,fnPlayListNav)
AddKey(Shift,83,fnResizeNav)
AddKey(Shift,66,fnDisableDVDSub)
AddKey(Shift,70,fnFileNav)
AddKey(Shift,33,fnPrevVid)
AddKey(Shift,34,fnNextVid)
AddKey(Shift,35,fnVolDown)
AddKey(Shift,36,fnVolUp)
AddKey(Shift,84,fnSceneCut)
AddKey(Shift,68,fnOpenDrive)
AddKey(Shift,77,fnMediaPathEdit)
AddKey(Shift,87,fnWebNav)
AddKey(Shift,88,fnContextNav)
AddKey(Shift,107,fnResyncAhead)
AddKey(Shift,109,fnResyncBack)
AddKey(Shift,90,fnFastPlay)
AddKey(Shift,85,fnOpenURL)
exAddKey(Shift,48,exBlanking,0)
exAddKey(Shift,49,exBlanking,1)
exAddKey(Shift,50,exBlanking,2)
exAddKey(Shift,51,exBlanking,3)
exAddKey(Shift,52,exBlanking,4)
exAddKey(Shift,53,exBlanking,5)
exAddKey(Shift,54,exBlanking,6)
exAddKey(Shift,55,exBlanking,7)
exAddKey(Shift,56,exBlanking,8)
exAddKey(Shift,57,exBlanking,9)
// Ctrl Modifier:
AddKey(Ctrl,70,fnHalfFF)
AddKey(Ctrl,76,fnHalfSM)
AddKey(Ctrl,77,fnMute)
AddKey(Ctrl,79,fnOptions)
AddKey(Ctrl,80,fnPresets)
AddKey(Ctrl,83,fnStopToFirst)
AddKey(Ctrl,107,fnZoomInWidth)
AddKey(Ctrl,109,fnZoomOutWidth)
AddKey(Ctrl,190,fnSeekForward)
AddKey(Ctrl,188,fnSeekBackward)
AddKey(Ctrl,65,fnAudioTrack)
AddKey(Ctrl,66,fnDVDSub)
AddKey(Ctrl,78,fnDVDAngle)
AddKey(Ctrl,67,fnDVDCC)
AddKey(Ctrl,68,fnSaveDF)
AddKey(Ctrl,116,fnDecBrightness)
AddKey(Ctrl,117,fnDecContrast)
AddKey(Ctrl,118,fnDecGamma)
AddKey(Ctrl,119,fnDecHue)
AddKey(Ctrl,120,fnDecSaturation)
AddKey(Ctrl,222,fnDVDMenuPrev)
AddKey(Ctrl,75,fnBlankingPreset)
AddKey(Ctrl,82,fnRandomPlay)
AddKey(Ctrl,221,fnBlankCycle)
AddKey(Ctrl,219,fnRevBlankCycle)
AddKey(Ctrl,33,fnPrevArrowFunc)
AddKey(Ctrl,34,fnNextArrowFunc)
AddKey(Ctrl,84,fnAutoARToggle)
AddKey(Ctrl,90,fnPauseAtEOF)
AddKey(Ctrl,72,fnSrcRelStretch)
exAddKey(Ctrl,48,exSavePR,0)
exAddKey(Ctrl,49,exSavePR,1)
exAddKey(Ctrl,50,exSavePR,2)
exAddKey(Ctrl,51,exSavePR,3)
exAddKey(Ctrl,52,exSavePR,4)
exAddKey(Ctrl,53,exSavePR,5)
exAddKey(Ctrl,54,exSavePR,6)
exAddKey(Ctrl,55,exSavePR,7)
exAddKey(Ctrl,56,exSavePR,8)
exAddKey(Ctrl,57,exSavePR,9)
exAddKey(Ctrl,96,exSavePR,0)
exAddKey(Ctrl,97,exSavePR,1)
exAddKey(Ctrl,98,exSavePR,2)
exAddKey(Ctrl,99,exSavePR,3)
exAddKey(Ctrl,100,exSavePR,4)
exAddKey(Ctrl,101,exSavePR,5)
exAddKey(Ctrl,102,exSavePR,6)
exAddKey(Ctrl,103,exSavePR,7)
exAddKey(Ctrl,104,exSavePR,8)
exAddKey(Ctrl,105,exSavePR,9)
// Alt Modifier:
AddKey(Alt,80,fnPlayEndCycle)
AddKey(Alt,90,fnZoomAxis)
AddKey(Alt,82,fnABRepeat)
AddKey(Alt,83,fnSub)
AddKey(Alt,79,fnOSD)
AddKey(Alt,67,fnSaveChapter)
AddKey(Alt,190,fnJumpForward)
AddKey(Alt,188,fnJumpBackward)
AddKey(Alt,107,fnZoomInHeight)
AddKey(Alt,109,fnZoomOutHeight)
AddKey(Alt,84,fnStayOnTop)
AddKey(Alt,65,fnAudioFilter)
AddKey(Alt,35,fnDecRate)
AddKey(Alt,36,fnIncRate)
AddKey(Alt,68,fnOpenDir)
AddKey(Alt,70,fnFrameCapture)
AddKey(Alt,76,fnPlayList)
AddKey(Alt,186,fnDVDChapterMenu)
AddKey(Alt,222,fnDVDAngleMenu)
AddKey(Alt,116,fnIncBrightness)
AddKey(Alt,117,fnIncContrast)
AddKey(Alt,118,fnIncGamma)
AddKey(Alt,119,fnIncHue)
AddKey(Alt,120,fnIncSaturation)
AddKey(Alt,78,fnChapterNav)
AddKey(Alt,75,fnBlanking)
AddKey(Alt,221,fnPresetCycle)
AddKey(Alt,219,fnRevPresetCycle)
AddKey(Alt,85,fnDVDPlayStart)
AddKey(Alt,66,fnFrameZeroALBM)
AddKey(Alt,71,fnGoToNav)
AddKey(Alt,87,fnMWFuncNav)
AddKey(Alt,88,fnExit)
AddKey(Alt,77,fnMediaNav)
AddKey(Alt,48,fnBringToFront)
AddKey(Alt,49,fnZoom50)
AddKey(Alt,50,fnZoom100)
AddKey(Alt,51,fnZoom200)
AddKey(Alt,52,fnZoom400)
AddKey(Alt,53,fnZoom800)
AddKey(Alt,72,fnPlayHistory)
AddKey(Alt,86,fnPLGetDuration)
// Alt+Shift Modifier:
AddKey(Alt+Shift,188,fnBalanceLeft)
AddKey(Alt+Shift,190,fnBalanceRight)
AddKey(Alt+Shift,68,fnLoadDF)
exAddKey(Alt+Shift,48,exSetCustomAR,0)
exAddKey(Alt+Shift,49,exSetCustomAR,1)
exAddKey(Alt+Shift,50,exSetCustomAR,2)
exAddKey(Alt+Shift,51,exSetCustomAR,3)
exAddKey(Alt+Shift,52,exSetCustomAR,4)
exAddKey(Alt+Shift,53,exSetCustomAR,5)
exAddKey(Alt+Shift,54,exSetCustomAR,6)
exAddKey(Alt+Shift,55,exSetCustomAR,7)
exAddKey(Alt+Shift,56,exSetCustomAR,8)
exAddKey(Alt+Shift,57,exSetCustomAR,9)
// Ctrl+Shift Modifier:
exAddKey(Ctrl+Shift,48,exOverlayColor,0)
exAddKey(Ctrl+Shift,49,exOverlayColor,1)
exAddKey(Ctrl+Shift,50,exOverlayColor,2)
exAddKey(Ctrl+Shift,51,exOverlayColor,3)
exAddKey(Ctrl+Shift,52,exOverlayColor,4)
exAddKey(Ctrl+Shift,53,exOverlayColor,5)
exAddKey(Ctrl+Shift,54,exOverlayColor,6)
exAddKey(Ctrl+Shift,55,exOverlayColor,7)
exAddKey(Ctrl+Shift,56,exOverlayColor,8)
exAddKey(Ctrl+Shift,57,exOverlayColor,9)
// Alt+Ctrl Modifier:
exAddKey(Alt+Ctrl,48,exDVDNumPad,0)
exAddKey(Alt+Ctrl,49,exDVDNumPad,1)
exAddKey(Alt+Ctrl,50,exDVDNumPad,2)
exAddKey(Alt+Ctrl,51,exDVDNumPad,3)
exAddKey(Alt+Ctrl,52,exDVDNumPad,4)
exAddKey(Alt+Ctrl,53,exDVDNumPad,5)
exAddKey(Alt+Ctrl,54,exDVDNumPad,6)
exAddKey(Alt+Ctrl,55,exDVDNumPad,7)
exAddKey(Alt+Ctrl,56,exDVDNumPad,8)
exAddKey(Alt+Ctrl,57,exDVDNumPad,9)
// Mapping Chapter support through non-existant scan keys (for use with remote control devices):
exAddKey(None,20000,exChapterTrack,0)
exAddKey(None,20001,exChapterTrack,1)
exAddKey(None,20002,exChapterTrack,2)
exAddKey(None,20003,exChapterTrack,3)
exAddKey(None,20004,exChapterTrack,4)
exAddKey(None,20005,exChapterTrack,5)
exAddKey(None,20006,exChapterTrack,6)
exAddKey(None,20007,exChapterTrack,7)
exAddKey(None,20008,exChapterTrack,8)
exAddKey(None,20009,exChapterTrack,9)
// Interal Skin Group Toggle
ExAddKey(None,115,exGroupToggle,8193)
// Multimedia Keyboard Basic Functions
mcAddKey(11,fnNextChapter)
mcAddKey(12,fnPrevChapter)
mcAddKey(13,fnStop)
mcAddKey(14,fnPlay)
// Multimedia Mouse Basic Functions (extra buttons)
mcAddKey(32770,fnSkipForward)
mcAddKey(32769,fnSkipBackward)
// End of file