home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 19
/
AACD19.BIN
/
CDTools
/
Players
/
HippoPlayer
/
ARexx
/
HippoPlay.filer.doc
< prev
next >
Wrap
Text File
|
1994-05-27
|
8KB
|
193 lines
HippoPlay.filer
===============
HippoPlay.filer is an ARexx script for Filer, the file management program.
Simply, it plays all selected files with HiP, but it also has a couple
of nice features which make it more fun to use, like randomplying the
contents of a selected directory or playing a mod by double-clicking it.
It should be possible to make this script work with DirOpus etc. instead
of Filer. If you wish to do so and have problems (the code IS a mess:),
contact me (see address at the end of this file).
This script is freeware, you can do anything you please with it. However,
don't blame me if it mutates into a deadly hardcore virus and remixes
all your modules as if they were abused by a gang of brainless techno
freeks using an IBM 286 without a soundcard, that's YOUR problem, dude...
Requirements
------------
Filer, HippoPlayer, ARexx and _rexxsupport.library_ should be enough.
A couple of modules won't hurt, though... If you have lost your
rexxsupport.library, all is not lost - just delete the ADDLIB-line from
the script and off you go, but you wont be able to select directories.
Installation
------------
First edit the script a little (sorry, but you really have to!). Change
the first line of code after the comments, the one that says
HippoPath = 'dh2:Hippoplayer/HiP'
Yes, you guessed it, just replace the path with the one you use.
After that, copy the script to the place you keep your Filer-scripts,
usually REXX:. Then add a new button into Filer (Prefs-menu), and type
"RX Hippoplay.filer"
as the command. Save prefs, and you're ready to go!
*NEW in v1.2!*
If you want to get mods playing by double-clicking them then you'll
want to do this:
Edit Filer's configuration file, S:Filer.RC, and add the following line
in the end:
CLASS "(mod|MED|S3M).#?","","RX HippoPlay.filer %f"
Of course if you have mod names like "JesusLovesU.mod" instead of
"mod.JesusLovesU" then you need to do this instead:
CLASS "#?.mod","",RX HippoPlay.filer %f"
Feel free to add as many filetypes (XM|MON|OK|FAST|...) as you have/like,
just check that Hip can actually play them..
You might also want to change HiP's prefs so that it opens on FilerScreen
instead of Workbench, though the script forces HiP on FilerScreen anyway.
And while you're at it, zip HiP with your right mouse button and position
the titlebar to the upper left hand corner of FilerScreen, then save
HiP's prefs. This way HiP will show up nicely zipped next time, as if it was
always meant to be a part of Filer :)
There are also some extra things in the configuration part of the ARexx-
script that you can edit to your liking, see "Bonus Stuff" below.
Usage
-----
*NEW in v1.2!* To play a mod which has a name that identifies it as a
module, for example "mod.Nyponsoppa" then just double-click it and Njoy!
Use Filer to select all the mods you want to play and hit the play
button. That causes the following actions to take place:
1) If HiP is not loaded, it will be loaded
2) The playlist is cleared (if files were selected)
3) All selected files are added into the playlist
4) HiP starts randomplaying the modules
Note that you can also select directories! They will be scanned recursively
and all files in them will be added to playlist. So if you want HiP to
randomplay ALL your modules, just select your module directory and
press play...
If no files were selected then we ask HiP the name of the currently
playing module and display it on Filer's statusbar (unless you enable
RandomPlay, see Bonus Stuff) unless there is only one module in the list,
in which case we eject it (emulating a stop button).
Bonus Stuff
-----------
1) Making Filer tell you the composer of the module
I have the habit of putting the composer's name in the filenote, so of
course I made use of it in this script. Example: module "mod.IWantYou"
is done by "Superted of Grostesticle and Suspiria" (the filenote).
So when I select that module and hit play, the mod starts playing AND
the status line of Filer says:
'HiP: Playing "mod.IWantYou" by Superted of Grostesticle and Suspiria'
This way I don't have to remember the composer myself...
If you don't like that idea, don't panic, because if the script sees that
the comment is empty, it just says what kind of a module it is, and
how big it is. If you don't like that either, just edit the CONFIGURATION
part of the script (it is at the beginning), change "Verbose" to "0".
This way you'll only get to know the name of the module, nothing more.
2) Checking filenames for unwanted filetypes
If you have icons lying around in your module directory you naturally
don't want HiP to try to play them. And if you have readme's for your mods,
they shouldn't be played either. If that's the case, here's what you do:
- check the CONFIGURATION part of the script, it's at the beginning.
- change "CheckFileNames" to "1" instead of "0", this activates
filename checking.
- below that you see a list of unwanted suffixes and prefixes, edit
them to suit your taste.
- save the modified script and try it!
Now if you select icons or readmes, the script simply ignores them, as
it should. Note, however, that checking makes the script considerably
slower, so if you're in a hurry, keep this feature disabled (default),
or at least keep the number of prefixes/suffixes as low as possible.
3) Controlling what the script does when nothing is selected
Normally when you just push the Play button on Filer without selecting
anything first this script prints out info about currently playing
module, which is useful when you for example have hidden HiP's window.
An alternative to this behaviour is making the button act like a random
play button, thus forcing HiP to jump to next random module. If you
prefer this feature, then just activate it in the CONFIGURATION part
of the script. As always, if there's only one mod in playlist we won't
random play it, but instead we eject it.
Known bugs
----------
I use this script all the time and it seems to work with my plain vanilla
A1200 HD. Don't know how the rexxsupport.library function ShowDir() works
in exotic filesystems though.
- Filer doesn't seem to react to control-c, so you can't break the script
from Filer! :( It might take a little patience to wait if you accidentally
began loading a diskful of chip-tunes, so don't...
Contact address
---------------
If you find any bugs or have suggestions or anything, don't hesitate to
contact me:
Janne Simonen - jsimonen@cc.joensuu.fi
Merimiehenkatu 44 A 8
FIN-80100 JOENSUU
FINLAND
Especially if you put a mod or two in your letter I promise to seriously
consider implementing any features you have in mind!
Anyways, I hope this piece of code will help you get even more fun out of
HippoPlayer, the heavyweight mod player champ! :)
History
-------
pre-1.0 versions were not released because of my perfectionism...
v 1.0 - the first released version, added filename checking and
configuration part to the script. Can't think of anything
more to add, maybe it's perfect? Yeah, right! :)
Suggestions, anyone?
1.1 - double-click added, not released.
1.2 - support for double-clicking of files completed.