home *** CD-ROM | disk | FTP | other *** search
- ExtraBar Version 0.77
- =====================
- Purpose
- =======
- Extrabar is one of those desktop utilies that you will either hate or decide
- you can't live life with out it. It has been designed to ease the use of the
- desktop. It does this by creating a new tool bar for the desktop, which can
- have buttons created on it.
-
- These buttons can do a number of things;
-
- • Opening a 'Filer_Menu' which shows the contents
- of a directory and leads to it's sub-
- directories.
- • 'Insert_text' to enter frequently used text in
- to an application.
- • 'Emulate_Key' presses for use with applications
- that do not have tool bars.
- • Move the caret.
- • Issue any star command.
- • Dynamic buttons. These can have a system variable, the current time,
- amount of free memory or freespace on a disc.
-
- and it also features;
-
- • Easy save. Just drag a file from the Save As
- window of any application on to the ExtraBar and
- it will get saved in to a central directory just
- like with a normal directory. So no more messing
- around opening filer windows.
-
- It can also issue multiple commands so that with one mouse click you could
- run your internet software, mail reader as well as a desktop publiser and
- graphics program. Why is, of course, another question :-)
-
- Connected
- =========
- If you have seen the latest pre-christmas Intel adverts about 'connectted'
- software and are wondering what this has to do Acorn, well.
-
- ***** THIS IS A CONNECTED APPLICATION *****
-
- In the Info window is a button, containing the words 'WWW home
- page',clicking on that will take you straight to the Extrabar home page
- where upgrades are placed when they become available. Upgrading is now much
- easier than before.
-
- This is only available is you have a supporting web browser loaded.
- Currently that includes Webite, Fresco and ArcWeb.
-
- Older versions
- ==============
- Version 0.40 of Extrabar contained a small buglet. When a button was setup
- the wrong bits of the data flag where setup. So when a button file was
- loaded in to a older or new version of Extrabar it would look different. The
- horizontal gaps became vertical gaps. This has been fixed in this version of
- Extrabar however it could mean that some of you tool bars could look
- different to how you expected them.
-
- Using
- =====
- To use ExtraBar you first need to load it, a window will then open. This is
- the extra bar. On the extra bar there will be an icon with the time and date
- in it. Dragging files, directories and applications on to the bar will
- create a button with the items name and sprite in it. Clicking on that icon
- runs the item that created it. Shift and Ctrl have the same effect as they
- normally would have if you where double clicking in a directory.
-
- You can also create an empty button from the 'Button > New button' menu
- item. Selecting this item creates a blank button with the name Undefined and
- a small ExtraBar file for it's sprite. It has no commands defined for it so
- clicking on it will show an error. You can alter any button that you create
- at anytime.
-
- If you click on the background of the extra bar with MENU and also have the
- Ctrl key held down then the extra bar's position will be toggled. If it is
- hidden then it will come to the front, if it is already at the front then it
- will go to the back.
-
- To save any buttons that you have created you need to use the save window.
- If you click on the save menu item that leads to the save window then the
- file will be saved to where it was loaded from or the save window will open.
-
- Auto loading a file
- ===================
- You can make Extrabar load a set of buttons every time it's loaded by saving
- a buttons file as the default. This is very simple as all you need to do is
- from the 'Toolbar' submenu select the 'Save default' menu item. So long as
- ExtraBar is not loaded via a double click on one of it's buttons it will
- load.
-
- Altering a button
- =================
- If you wish to change a button's configuration then by opening the main menu
- over it and going the to main menu and then to the;
-
- Button => Alter button
-
- dialogue box allows you change it configuration easily. The top icon is
- where you can enter the text that will appear in the button, and the icon
- below that is the sprite name for the the sprite you want to appear in the
- button. Below these are the command icons where you type in the the command
- that you want to be issued when the button is clicked on with SELECT or
- ADJUST.
-
- You can also make the button the last one on the row which forces any
- subsequent button to move downwards as well as putting a gap after the
- button.
-
- At present you can make the button run a number of commands. You can also use
- the short two letter version of the command if you wish.
-
- They can be;
-
- • A star command.
-
- Syntax: * <command>
-
- • 'Caret_Back' moves the caret back n places.
-
- Syntax: Caret_Back <places>
-
- • 'Caret_Forward' moves the caret forward n places.
-
- Syntax: Caret_Forward <places>
-
- • Emulate a key press. You will need to use
- KeyCode to find out the value to use.
-
- Syntax: Emulate_Key <Key code>
-
- • Opens a menu created from the contents of a
- directory.
-
- Syntax: Filer_Menu <Directory path>
-
- • Opens a menu created from a user definable menu file.
-
- Syntax: User_Menu <Menu file path>
-
- • 'Insert_Contents' moves the caret forward n places.
- Takes a file and sends it's contents to the the
- current application with the input focus.
-
- Syntax: Insert_Contents <file>
-
- • 'Insert' takes a string and sends to an
- application, no special actions are taken except
- changing '|m' to a Return press.
-
- Syntax: Insert "<text>"
-
- • 'Insert_text' in to an application, after
- passing it to GSTrans and inserting any time
- variables that may have been used. ie. %m3 will
- become Jun, Dec, etc.
-
- Any system variables that are named will be
- convertted to the value that they are set to.
- ie. Insert_text "<Wimp$State>" will send the
- work 'desktop' to the application.
-
- If you want to send a < or " to an application
- you must first put a | in front of it. You can
- also send a Return with |m and a | with ||.
-
- Syntax: Insert_text "<string>"
-
- • 'Save_file' opens a window allowing you to save
- a file from one place to another. For example
- you could use this call to allow the user to
- save a file to a directory after a processing
- activity (Jpeg to Sprite, etc...)
-
- Syntax: Save_File <directory>
-
- • 'Web' Will send a request to any web browsing
- software to go to a particual page. Can be
- http://, mailto:, telnet:// or any other
- protocolo.
-
- Supported by Termite and Fresco
-
- Syntax: Web <Web address>
-
- • 'Task_Loaded' will execute a command if an application is loaded or an
- optional command if it is not.
-
- Syntax: Task_loaded <appname> then <command> [else <command>]
-
- • 'Task_NotLoaded' will execute a command if an application is not loaded
- or an optional command if it is. The application name <appname> is the
- same as the one that appears in the task window. It is a case-
- sensitive. If the application's name includes spaces it should be
- surrounded by quotes.
-
- Syntax: Task_notloaded <appname> then <command> [else <command>]
-
- • 'ModTask_Loaded' will execute a command if an module task is loaded or
- an optional command if it is not.
-
- Syntax: ModTask_loaded <appname> then <command> [else <command>]
-
- • 'ModTask_NotLoaded' will execute a command if an module task is not
- loaded or an optional command if it is. The module task name <appname>
- is the same as the one that appears in the task window. It is a case-
- sensitive. If the module's name includes spaces it should be surrounded
- by quotes.
-
- Syntax: ModTask_notloaded <appname> then <command> [else <command>]
-
- • 'AllTask_Loaded' will execute a command if an module task or application
- is loaded or an optional command if it is not.
-
- Syntax: ModTask_loaded <appname> then <command> [else <command>]
-
- • 'AllTask_NotLoaded' will execute a command if an module task or
- application is not loaded or an optional command if it is. The module
- task name or application name <appname> is the same as the one that
- appears in the task window. It is a case-sensitive. If the application's
- or module's name includes spaces it should be surrounded by quotes.
-
- Syntax: ModTask_notloaded <appname> then <command> [else <command>]
-
- • 'Report' opens up a standard Risc OS error window with a message in it.
- If the message includes spaces it should be surrounded by quotes.
-
- Syntax: Report <message>
-
- • 'Task_Kill' forces a task to be killed.
-
- Syntax: Task_Kill <taskname>
-
- • 'Dragged_on' switches the commands depending on whether a command was
- run by dragging a file on to the button rather than clicking on it with
- the mouse button.
-
- Syntax: Dragged_on [<filetypes>] then <command> [else <command>]
-
- • 'Swap_sprites' switchs between two different sprites for a button.
- useful when used with dynamic buttons.
-
- Syntax: Swap_sprites <sprite 1>,<sprite 2>,<sprite 3>,<sprite 4>,etc.
-
- If <sprite n> includes a ; then the text after it is assumed to be for
- the extra info for the button and is placed in to it whe the sprite is
- swapped.
-
- Multiple commands
- =================
- You can also make it run a number of different commands. Each command must
- be seperated by {com}.
-
- Example;
-
- To run my internet software and the mail reader that came with it I would
- use;
-
- Run ADFS::4.$.Internet.!Termite{com}Run ADFS::4.$.Internet.!Offlite.
-
- so that with a single click both !Termite and !Offlite would load.
-
- User menu files
- ===============
- Users menus are simply text files which are used to define menus. The format
- is currently still under construction but the following has been set down
- already.
-
- 1st line is the title for the menu. Nothing for no title.
- Following lines are for menu items, infomation seperated by tabs.
-
- <Menu item text><tab><Command to excute when clicked on>
-
- If you want there to be an line across the menu then you will need to use a
- single dash '-' on a line of it's own. It is intended that the user menu
- should be as close to the format that StrongEd uses, however, Extrabar is
- currently lacking submenus so you need to be careful when using the tab key.
- DON'T put any at the start of a line.
-
- You can also include comments if you want by putting a # at the start of the
- line. If you have a line which is simply a - then a line will be placed in
- the menu at that point. There *could* also be problems involving the use of
- the following commands in a user menu in this version:
-
- Filer_Menu,
- User_Menu,
-
- Dragged on
- ==========
- When you select 'Run dragged on', in the alter button dialogue box, the
- command will be also be issued when a file is dragged on to it. If you want
- to make sure that it is only run when certain filetypes are dragged on then
- you need to use the dragged_on command.
-
- To insert the path of the file dragged onto it in to the command use %*0
- where you would normally put the filename. You can also insert the leaf name
- by using %*1 and get a random leaf name by using %*2.
-
- Sprites in buttons
- ==================
- It is possible to use sprites in buttons other then those that have already
- been loaded by the wimp manager. To load these sprites you must open the
- 'load sprites' window from the 'Toolbar' submenu. When you drag the sprite
- on to the window they are loaded and you can use any sprites named.
-
- If you have already loaded a sprite file then these can be cleared first
- from the 'Toolbar > Clear sprites' menu item. If it is shaded then you have
- not loaded any.
-
- When you save a button file any sprites that are used and are *NOT* in the
- Wimp sprite poll when the file is saved will be stored in the file.
-
- Dynamic buttons
- ===============
- You can now create Dynamic buttons which can change the text they display.
- These are setup via the alter button window and can can be;
-
- the current time.
- the amount of free memory.
- the freespace on a disc.
-
- To set these you click on the 'Dynamic button' tick box and in to the icon
- sprite writable icon enter;
-
- #currenttask the name of the task that the mouse pointer is
- currently over.
- #freemem to display the amount of free memory.
- #freespace to display the amount of free space on a disc.
- (Enter the path to the disc in the extra info
- writable icon, ie ADFS::4, SCSI::5)
- #machineon how long the computer has been switched on.
- #system to display a system variable.
- #time to display the current time.
- (format displayed is defined in extra info space)
- #mouse the position of the mouse.
- #whandle the window handle that the mouse pointer is over.
- #ihandle the icon handle that the mouse pointer is over.
-
- BEWARE: #mouse,#whandle,#ihandle and #currenttask both require ExtraBar to
- take much more control over the desktop than normal. If you require more
- processing power for a task, ie. downloading a file, then remove any buttons
- that make use of these functions. A good idea would be to use the
- 'Swap_sprites' command with them so that can be quickly switched of and on
- again.
-
- Changing the time format
- ========================
- The time icon can be altered by using the Choices... menu item to open the
- choices window. The time format used by Extrabar is the same as for Alarm.
- To alter it enter the format in the options window. You can also choose what
- side the clock should appear on and whether it should appear at all as three
- clocks can be a bit annoying!
-
- The time format can be made up of the following items;
-
-
- Item Description Example
- -----------------------------------------------------
- %se Seconds 12
- %mi Minutes 45
- %12 Hour in 12 hour clock 2
- %24 Hour in 24 hour clock 14
- %am AM am
- %pm PM pm
- %we Weekday Friday
- %w3 Three letter week name Fri
- %wn Weekday as a number 5
- %dy Day of the monh 05
- %st St, nd, rd or th of day st
- %mo Month name in full January
- %m3 Month name, three letters Jan
- %mn Month name, as number 1
- %ce Century 19
- %yr Year with in century 96
-
- use a 'z' after the % to remove any extra 0's
-
- Insert_text speed
- =================
- In the choices (button section) window there is an option called
- 'Type speed'. This can be a value between 1 to 19. 19 is the fastest, 1 is
- the slowest.
-
- Easy file saving
- ================
- Easy file saving works in much the same way as saving to a disc. You simply
- open up the Save As dialogue box and then drag the file icon on to an area
- of the ExtraBar and it is saved. The file name that is used in the Save as
- box is also used for the easy saving and if there is a file already with
- that name then an error message appears. If you decide to overwrite the file
- then the file will be saved as normal. If you decide not to overwrite the
- file then it will not be saved.
-
- Help!!!
- =======
-
- Q¹ When I use the Insert_text command not all the
- text I want to be sent is?
-
- A¹ Because of the way ExtraBar processes the
- Insert_text command you need to put a | before
- any < and " that you want to be sent.
-
- Q² When I use the Filer_Menu command I can only
- open the display 8 directories deep. Why?
-
- A² Because Risc OS does not like there to be more
- than 8 sub menus so I had to limit it :(
-
- If you still have any other problems *E-mail* me with the FULL command that
- is giving the trouble and I will see what I can do.
-
- Future versions
- ===============
- • Compressed file data using Squash module.
- • Possibly, but unlikely, build the ExtraBar commands in to a module.
- • Multiple tool bars. Possible floating bars but this is currently very
- unlikely cause it will quite a bit of work and I'm busy at college.
-
- Any other suggestions. ??????????
-
- Copyright
- =========
- This program is FreeWare. This means that Extrabar maybe freely copied and
- distributed as long as only a small charge is made for costs. (Small means
- less than 5 pounds. If you want to charge any more per disc ask my
- permission first). I, the author, keep full copyright over Extrabar and you
- may not alter it in any way.
-
- Disclaimer
- ==========
- I, the author, do not accept any liability for the loss or damage to your
- computer or any data stored on it, however caused, arising as a result of
- the use or misuse of this program.
-
- The main !RunImage file for ExtraBar has been compressed using Cy Bookers
- BasCompress due to the Source being over 105K of pure Basic code. If you
- want a copy then please e-mail and I will be happy to send you a copy. If
- you do use any code that has been borrowed from Extrabar I don't mind, so
- long as you give me some credit!
-
- Contacting the author
- =====================
- You can contact by any of the following methods. If you have any problems or
- if you have any suggestions for ExtraBar then please do contact me as it'll
- give me some ideas as to what other people would like adding.
-
- E-mail : davemac@rylands.demon.co.uk
-
- WWW : http://www.atlantic.oaktree.co.uk/
-
- Snail mail : David McCormack,
- 2 Cornwall Avenue,
- Beeston Rylands,
- Nottingham,
- NG9 1NL
-