Short: Replaces ClickToFront w/middle button. MidToFront v2.0 Copyright © 1997 Jack Perry LEGAL STUFF: The author cannot be held responsible for any damage done to your computer system, whether through his negligence or yours. This software is Freely Redistributable. REQUIREMENTS: An Amiga with WB 2.04+. WHAT IT IS: Have you ever wanted to bring a window up to the front of the screen, but other windows were in the way? MidToFront is my way of getting around that. It is a Commodity which brings the window beneath the pointer to the front of the screen using the middle mouse button. Version 2.0 is significantly improved over the previous versions; instead of a two- or three-hour hack, it took me all day. Besides rewriting it from scratch in SAS/C 6.51 (it used to be in Benchmark Modula-2), I added an options window and Tooltypes. I learned a lot about programming today. :) WHAT'S INCLUDED: I included four versions of the executable for the processors available: 68000, 68020, 68030, and 68040. Install whichever one you prefer. HOW IT WORKS: To start from the Workbench, double-click on the icon. To start from a CLI, type "[path]MidToFront". Or just put it in your WBStartup drawer like I do, and it takes care of itself. Once it's working, IF you have a three-button mouse, you can click on any window with the middle button, and it will come to the front of the screen. Backdrop windows are excluded from this, of course... :) SPECIAL OPTIONS: There are the standard AmigaDOS Tooltypes which seemed relevant: CX_POPUP, CX_PRIORITY, CX_POPKEY, DONOTWAIT. MidToFront likes its own tooltypes as well: ACTIVATE: If set to YES, the window will not only be brought to the front, but activated (default is YES). PUSHBACK: If set to YES, and the window under the pointer is already in front, it will be pushed to the back (default is NO; see TROUBLESHOOTING below). TROUBLESHOOTING: I'm afraid this simply won't work without WB 2.x+. On the other hand, it works very nicely with WB 2.x+. There appears to be a bug in AmigaDOS; Commodities refuses to notify me of the middle mouse button unless I place it in the timer class (i.e., "timer midbutton" as opposed to "rawmouse midbutton" which would make more sense IMHO). I've tried every other combination I could think of. I know someone else emailed me once asking how *I* managed to get Commodities to recognize the middle mouse button, so it's not just me! :) Because of the bizarre behaviour, there are two side effects: (a) You might have to do more than just click the mouse button (i.e., hold it down for a moment, but not too long). (b) If you have set PUSHBACK=YES, and you hold the button a while, you get to see all the windows under the mousebutton coming flying by. This can be amusing, but not for very long. Because of this, I don't like PUSHBACK as much as I thought I might. If anyone knows how to get around this, please email me ASAP. KNOWN BUGS: As far as I can tell, there are no bugs in MY code. If you find any, email me. SPECIAL THANKS: I'd like to thank the designers of AmigaDOS. I really, really like this system; it's fun to use and to program. If you can ever add crash pro- tection and optional memory defragmentation, I will be in heaven. I'd also like to thank Tom Ekstrom for Iconographix. It's far superior to the rest, mostly in that even an artistic nincompoop like myself can make icons in its style. BUG REPORTS, PROGRAMMING TIPS, AND COMMENTS: Jack Perry jperry6@ix.netcom.com If you can give me a hint on a better way to have written this, please do so. I'm not a very good programmer, but I enjoy little things like this. P.S.- You may notice that the program calls its author John Perry. We're the same dude. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 628 270 57.0% 10-Jan-97 22:16:48 MidToFront.info 8180 4640 43.2% 10-Jan-97 22:05:08 +MidToFront.000 3460 641 81.4% 10-Jan-97 22:16:48 +MidToFront.000.info 8164 4634 43.2% 10-Jan-97 22:05:08 +MidToFront.020 3460 638 81.5% 10-Jan-97 22:16:48 +MidToFront.020.info 8164 4634 43.2% 10-Jan-97 22:05:06 +MidToFront.030 3460 643 81.4% 10-Jan-97 22:16:48 +MidToFront.030.info 8228 4654 43.4% 10-Jan-97 22:05:06 +MidToFront.040 3460 636 81.6% 10-Jan-97 22:16:48 +MidToFront.040.info 3804 2012 47.1% 10-Jan-97 22:06:50 +MidToFront.doc 3301 365 88.9% 10-Jan-97 22:16:48 +MidToFront.doc.info -------- ------- ----- --------- -------- 54309 23767 56.2% 11-Jan-97 20:18:10 11 files