home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
varia
/
mmbs
/
mmbs.doc
< prev
next >
Wrap
Text File
|
1977-12-31
|
4KB
|
91 lines
MBBS - Middle Mouse Button Switch V2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
===============================================================================
Disclaimer
===============================================================================
Copyright: © 1994-1996 BLOODROCK/(tRSi/F-Innovation); all rights reserved.
MMBS may be freely distributed as long as both program and manual (this text
document) are included in unmodified state, except crunching/packing.
===============================================================================
Description
===============================================================================
MMBS is another little utility for your middle mouse button.
Once started, MMBS activates the last active window on every Screen which pops
to front by any reason. In detail: MMBS handles a small list of Screens (up to
50 simultaneously opened Screens) with their last active windows. If a Screen
pops to front, the list is examined for this Screen. If this Screen wasn't
found (if a new Screen was opened instead of bringing a Screen to front), the
Screen's frontmost window is activated.
In addition, you may shuffle Screens using your middle mouse button (MMB).
Every time you hit the MMB, the frontmost Screen is put to back.
===============================================================================
System Requirements
===============================================================================
System: - any Amiga
Hardware: - none
Memory: - program size + the usual Amiga internals
- Stack size (4096 bytes)
Harddisk space: - about 5 KB
External files: - none
===============================================================================
Usage
===============================================================================
MMBS is started from Shell or WorkBench without any arguments or tool types.
MMBS does not return once it was started from a Shell or a script, as long
as you don't send a break signal (by hitting Control-c in the output window),
which will quit MMBS.
If you want to launch MMBS from within your user-startup, use the RUN command
to detach it from it's CLI process, for example:
run <>nil: MMBS
That's all.
===============================================================================
Techno
===============================================================================
MMBS uses a task priority of 9, because it's sleeping all the time until a
Screen pops to front or the MMB was pressed. After an event is processed,
it directly falls back to sleep mode. With a low priority (i.e. 0 or 1),
another standard task (i.e. a cruncher) may cause unpleasant delays.
Note that MMBS is not a commodity. MMBS is forced to install a small VBlank
interrupt server in order to monitor all possible ScreenToFront events, because
Intuition currently doesn't call it's own Screen depth arrangement functions
the standard way when depth-arranging Screens; so there was no other way to
catch all events. Since the interrupt was needed anyway, it's also used to
check for MMB hits the hardcore way by monitoring bit 8 of POTINP. The VBlank
server has a priority of 0 and doesn't affect Input Events anyway.
==============================================================================
History
==============================================================================
V2.0:
-----
Re-written from scratch (everyone has started small.. :^)
===============================================================================
End Of File. @ BLOODROCK/(tRSi/F-Innovation)
===============================================================================