Uberbox

From BB4Win Wiki

Jump to: navigation, search

(Note: The following information is from the UberBox ReadMe file.)

Contents

[edit] Description

UberBox is a simple extension of BroamBox that is designed to work very much like BBZCmdEx, but supports tab completion (not shift!), auto-hiding, aliases and a very long history.

[edit] Usage

  • You can create a file called "aliases.rc" in the plugin directory, and use those aliases in UberBox. Just separate the alias from the command with a space. For example:
 vi gvim.exe
 ie "c:\program files\internet explorer\iexplore.exe"
  • You can search google by using a ? (this is builtin).
  • You can define further search aliases by including lines beginning with a '?' in the aliases. If you include the string "<args>" this will be expanded to a plus separated version of the arguments, as in:
 ?dict http://www.dictionary.com/search?q=<args>

Then using ?dict will look up the dictionary.

  • Ctrl-right clicking on the box will bring up the list of current aliases (handy!).
  • Putting a "*" in front of a command will execute it, redirect std. out to a file and open it with the blackbox editor. Example: "*dir c:\"
  • Up, down and mousewheel will scroll through the history, or through auto-completes if there is text in the box already.
  • Pressing Tab will auto-complete the current entry if something matches in the history.
  • Pressing Ctrl-L will pop up a dialog to enter a create alias for the current text in the window.


[edit] Bro@ms

 @BBBroamBoxHide -- Hides it
 @BBBroamBoxShow -- Shows it
 @BBBroamBoxToggle -- Toggles it
 @BBBroamBoxFocus -- Focuses it (very useful if you map a key to it!)
 @BBBroamBoxRelay -- relays the command (with alias substitution etc.) Example: "@BBBroamBoxRelay ? blackbox"
 broambox.rc entry example:
 broambox.autohide: false 
 broambox.x: 500
 broambox.y: 500
 broambox.width: 100
 broambox.borderWidth: 3
 broambox.bevelWidth: 3
 broambox.style: sets the style (e.g broambox.style toolbar)
 broambox.bevelStyle: sets the border style (e.g broambox.style toolbar.clock)
 broambox.borderStyle: can include any combination of noborder, nobevel, raised, sunken, edge


[edit] Additional Info from BroamBox Documentation

[edit] What is broambox?

 Broambox is a simple dialog box that gives you an easy way to execute any command in BB4Win, be it a bro@m, or shell command. Broambox helps give you full control over BB4Win with easy access to broams that could previously only be accessed through a menu or hotkey.


[edit] Sample broambox.rc (or broamboxrc)

 broambox.x: 0
 broambox.y: 0
 broambox.width: 100
 broambox.inslit: false


[edit] What commands does broambox support?

Broambox will attempt to process anything you enter as a command.

  • Anything entered that begins with an "@" is posted as a bro@m to BB4Win.
  • Anything that is encapsulated in "[" and "]" is processed as an internal command (see next question).
  • Everything else is processed as a shell command (ie, executing a program)


[edit] What internal commands does broambox support?

The syntax of the internal commands is (nearly) identical to the syntax used in menus.

[exit]            Quit BB4Win 
[quit]            Quit BB4Win
[shutdown]        Shutdown Computer
[reboot]          Reboot computer
[logoff]          Logoff Computer
[hibernate]       Hibernate
[suspend]         Suspend
[lock]            Lock Workstation
[run]             Show run dialog
[reconfig]        Reconfigure BB4Win
[restart]         Restart BB4Win
[editstyle]       Edit current style
[editmenu]        Edit menu.rc
[editplugins]     Edit plugins.rc
[editextensions]  Edit extensions.rc


[edit] Why can't I set the height?

Height of broambox is determined by the style. It uses the style file directive of "toolbar.fontHeight:" with a default height of 12. NOTE: if you can't see the box on startup, try removing and reloading the plugin.


[edit] What style directives does broambox use?

Broambox uses "toolbar:" and "toolbar.label:". It also correctly applies parentRelative.

Personal tools