|
Plugins can be used to add certain features, such as hotkey support, to
Blackbox for Windows. To load a plugin, you simply need to add the
relative path of the plugin (from your Blackbox directory) to the file plugins.rc
(located in the Blackbox directory).
For example, if you installed Blackbox into c:\Blackbox, and your
plugin (let's say BBKeys.dll) is located in c:\Blackbox\plugins\BBKeys,
you should add the line...
plugins\BBKeys\BBKeys.dll
...to plugins.rc. Blackbox will even warn you if it can not find the plugin you've specified. Simple, eh? :)
[ Please note that some plugins may also have
their own configuration files (BBKeys, for instance, uses a file named
bbkeys.rc). For more information, try this crazy piece of advice: Read
the plugin documentation! <g> ]
Examples? Sure. Here's how to use BBKeys to control multiamp (the first two plugins to support bro@ms):
KeyToGrab(Left), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maPrev)
KeyToGrab(Enter), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maPlay)
KeyToGrab(Spacebar), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maPause)
KeyToGrab(Num0), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maStop)
KeyToGrab(Right), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maNext)
KeyToGrab(Add), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maOpenFile)
KeyToGrab(Mul), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maMenu)
KeyToGrab(Sub), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maPower)
KeyToGrab(Up), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maVolumeUp)
KeyToGrab(Down), WithModifier(Ctrl+Win), WithAction(ExecCommand), DoThis(@maVolumeDown)
...hopefully, that was self-explanatory... right? :)
|