home *** CD-ROM | disk | FTP | other *** search
/ MORE WinGames / WINGAMES.iso / weyes / weyes21.txt < prev    next >
Text File  |  1992-10-09  |  14KB  |  292 lines

  1. WEYES21.DOC
  2.  
  3. wEyes -- What is it?
  4.  
  5.     "wEyes" is a Windows program that, although originally 
  6. designed purely for amusement, might actually be of use to some 
  7. computer users.  Inspired by the famous "xEyes" program run on 
  8. many UNIX-based xWindows systems, this program draws two eyes 
  9. in a window; the eyes then track the movement of the mouse.
  10.  
  11.     I gave the original version of this program (archived 
  12. in "weyes.zip") to a friend of mine who owns a notebook-size 
  13. computer with an LCD screen.  It seems that whenever he ran 
  14. Microsoft Windows, he had problems keeping track of the 
  15. location of his mouse pointer -- LCDs are notoriously slow, 
  16. and if he happened to move the mouse suddenly, he would have 
  17. to scan the entire LCD screen just to locate the pointer.  
  18. wEyes helped.
  19.  
  20.     Since he seemed to benefit, I decided to upload the 
  21. program to Compuserve and some other BBSs, to see if anyone 
  22. else enjoyed it.  To my surprise, that first version was much 
  23. more popular than I ever thought it would be.  Unfortunately, 
  24. though, I had never put the original version through any kind 
  25. of quality-control test.  In short, the program was less than 
  26. flawless.
  27.  
  28.     Enter wEyes v. 1.1.  That version possessed substantial 
  29. enhancements over the original version, including custom 
  30. colorization, elimination of minor bugs, and an all-around 
  31. better interface.  
  32.  
  33.     But a few months after I released version 1.1, 
  34. Microsoft came out with Windows 3.1.  This bittersweet event 
  35. had two major ramifications for me.  First, Win 3.1 revealed a 
  36. hidden bug in wEyes v. 1.1.  It seemed that, whenever the 
  37. Mission Control dialog box was invoked, some of the text within 
  38. the 3-D area retained a white background, rather than the light 
  39. gray background that I intended.  Second, Win 3.1 provided a 
  40. new capability for its windows:  the so-called "topmost" 
  41. feature.  This feature allows a window to be visible at all 
  42. times -- even when "covered" by another window.  
  43.  
  44.     So I rewrote wEyes yet again.  This latest version, 
  45. version 2.0, fixes the aforementioned bug and takes advantage 
  46. of Win 3.1's "topmost" feature.  In addition, users now have 
  47. the ability to change the main window's background color.  
  48. wEyes 2.1 is a further refinement that takes care of a minor 
  49. bug (see "wEyes 2.1 Enhancements, below). 
  50.  
  51.     Basically, writing the program was a light exercise 
  52. in trigonometry.  The program checks the position of the mouse 
  53. pointer on a regular basis, and using slopes, arctangents, sines, 
  54. and cosines, determines where the "pupils" of the eyes -- 
  55. which are independent of each other -- should be.  
  56.  
  57.  
  58. wEyes 2.1 Enhancements
  59.  
  60.     - Bugs:  Okay, my fascination with Win 3.1 made me lose 
  61. sight of you 3.0 users.  If you pressed the "OK" button in the 
  62. wEyes Mission Control dialog box, the program crashed in 3.0.  
  63. Sorry -- but I had to find this bug on my own!  This is why I 
  64. encourage folks to write me and let me know about such problems!
  65.  
  66. wEyes 2.0 Enhancements
  67.  
  68.     - "Topmost" capabilities:  When the "wEyes Mission 
  69. Control" dialog box is invoked, one of the controls in the 
  70. dialog is a check box labeled "wEyes always on top."  If you 
  71. are running Win 3.1 and you wish to make wEyes visible at all 
  72. times, click the mouse on this check box.  If you are running 
  73. Win 3.0, the check box will be disabled and will appear grayed.
  74.  
  75.     - Background color:  Now, in addition to adjusting the 
  76. color of wEyes's pupils and outer rims, you can adjust the 
  77. background color as well.  (Neophytes:  see "wEyes 1.1 
  78. Enhancements - Colors" below for more information.)
  79.  
  80.     - Bugs:  Hard to believe, but wEyes 1.1 had a hidden 
  81. bug that was not visible in Win 3.0.  Some of the text in the 
  82. "Mission Control" dialog box appeared on a white background, 
  83. rather than on a light gray one.  Hence, these little text 
  84. items stuck out like the proverbial irritated digits.  The 
  85. problem has been rectified in wEyes v. 2.0.
  86.  
  87.     - Odds & ends:  I don't know if anyone will notice, but 
  88. I made some slight changes to the algorithm used in updating 
  89. the positions of wEyes's pupils.  It should make pupil movement 
  90. a little faster -- though perhaps the difference is 
  91. imperceptible.
  92.  
  93.  
  94. wEyes 1.1 Enhancements
  95.  
  96.     - Interface:  As of v. 1.1, wEyes sports two dialog 
  97. boxes.  The first is the traditional "About" dialog box, 
  98. which displays version and other basic information.  The 
  99. second is the "wEyes Mission Control" dialog box, explained 
  100. in more detail below.  This dialog box gives the user control 
  101. over colors and "pupil update rates." In addition to being 
  102. functional, these dialog boxes have a rather slick three-
  103. dimensional look.  No, I'm not bragging -- the 3-D effect is 
  104. due in large part to a dynamic-link library that I've 
  105. incorporated into the program.  The file is "three_d.dll," 
  106. and it was written by a guy named Ray Donahue.  (If you are a 
  107. programmer and like the look and feel of wEyes's dialog boxes, 
  108. you have my recommendation to license Donahue's libraries.  
  109. They are flexible and incredibly easy to implement.  Ray can 
  110. be reached at the following address:  Ray Donahue, 365 Mather 
  111. Street Unit 125, Hamden, CT 06514; or on Compuserve: 70324,1204.  
  112. I downloaded the DLL from the WINADV forum, on Compuserve.)  
  113. The only hitch here is that wEyes will only support VGA and 
  114. EGA monitors -- as for other monitors, I cannot guarantee 
  115. compatibility.
  116.  
  117.     - Colors:  wEyes now allows the user to define which 
  118. colors he or she wants for the "rims" and "pupils" of the 
  119. window's eyes.  To define customized colors, activate the 
  120. "Mission Control" dialog box.  This is accomplished by 
  121. clicking wEyes's control box (the little box in the top 
  122. left-hand corner of the window).  The control menu will appear.  
  123. At the very bottom, you will notice two items: "About wEyes..." 
  124. and "wEyes Mission Control...."  Click once on "Mission 
  125. Control."  The Mission Control dialog box will appear.   
  126.     Next, find the two group boxes named "Outer rim color" 
  127. and "Pupil color," respectively.  Each box contains three 
  128. horizontal scrollbars.  Each scrollbar controls the intensity 
  129. of either the red, green, or blue color elements of your 
  130. screen.  Move the scrollbars, and the color appearing in the 
  131. window beside the controls will change to reflect your 
  132. handiwork.  When satisfied, press the "OK" button.  If you 
  133. just can't get it right, that's alright -- just press the 
  134. Cancel button and your wEyes will not have changed.
  135.     Some of you probably own a notebook or laptop with a 
  136. monochrome LCD screen.  This does NOT mean that you can't take 
  137. advantage of the coloring capabilities included in this 
  138. version.  As you probably know, different people prefer 
  139. different intensity settings when using LCD screens:  some 
  140. prefer that the screen look darker, while others can only work 
  141. with a lighter-shaded screen.  To the extent that your tastes 
  142. differ from the next guy's, the red-and-black default colors 
  143. may be difficult to see on your LCD screen.  If so, the Mission 
  144. Control color features can help.
  145.  
  146.     - Timer interval:  wEyes checks the position of the 
  147. mouse pointer at a predetermined time interval, and then 
  148. readjusts the position of the pupils accordingly.  In the 
  149. original version of wEyes, this "pupil update rate" was 100 
  150. milliseconds by default.  That parameter could be changed, 
  151. however, by including a command-line parameter.  The Mission 
  152. Control dialog box has eliminated the need for such a 
  153. mechanism.  The interval can now be adjusted in much the same 
  154. way as the colors of the eyes.  When the scrollbar in the 
  155. "Timer interval" group box is adjusted, the number appearing 
  156. in the edit box to the right of the scrollbar will be 
  157. similarly adjusted.  If you want to enter a particular number 
  158. in the edit box, however, you need not use the scrollbar -- 
  159. just click your mouse on the edit box (or "tab over"), and 
  160. type in the desired number.
  161.     If you are running a number of large applications 
  162. concurrently, you may want to slow the timer down a bit, so as 
  163. not to burden the other programs.  On the other hand, unless 
  164. you have a very fast machine, intervals of less than 50 
  165. milliseconds will probably not produce any additional speed 
  166. benefits; there will always be some lower limit for a given 
  167. machine.
  168.  
  169.     - Initialization file:  The first time that you close 
  170. wEyes (or end a Windows session without closing wEyes first), 
  171. the program will create an initialization file in your WINDOWS 
  172. directory.  The file is called, appropriately enough, 
  173. "weyes.ini."  The next time that you run wEyes, the program 
  174. will "remember" the colors that you last specified, and will 
  175. automatically use them in your current session.  In addition, 
  176. unlike the original version, wEyes will store the window's 
  177. size and position.  So rather than having to move and stretch 
  178. the window every time you start wEyes, the window will 
  179. automatically pop up exactly where you want it.  
  180.  
  181.     - Minimization:  As with the original version of 
  182. wEyes, wEyes v. 1.1 still works when minimized.  So if you 
  183. need room on your display, wEyes won't take up any more room 
  184. than, say, the Windows Clock program. 
  185.  
  186.     - Bugs:  Fallible?  Me?  I encountered one minor, 
  187. although annoying, bug in the original version of wEyes.  It 
  188. seems that, if I stretched the window far enough across the 
  189. screen, I would get an unrecoverable application error.  That 
  190. problem has since been put to bed.
  191.     Also, the original version had no mechanism for 
  192. aborting the program in the unlikely event that a timer could 
  193. not be created.  Should Windows already have the maximum 
  194. number of timers running, wEyes v. 1.1 will not run, but will 
  195. display a message informing the user of the problem. This 
  196. version appears to work pretty well.  Nonetheless, because I'm 
  197. not charging money for this program, it's difficult to justify 
  198. putting hours and hours into crash-testing the thing.  Thus, 
  199. I'm relying on user input.  If you find any bugs in this 
  200. version of wEyes, please drop me a line at the address below.  
  201. Or you can send me e-mail at Compuserve.  My address there is 
  202. 70724,3347 (InterNet: "70724.3347@compuserve.com").
  203.  
  204.  
  205. DISCLAIMER
  206.  
  207.     No copyright is claimed in "weyes.exe," "weyes.ini," 
  208. "weyes2.doc," "weyes2.wri," or "weyes2.txt" (collectively, the 
  209. "Software") by its author, Rob Carty ("Author").  No rights 
  210. related to the Software are granted by Author.  The user 
  211. agrees to use the Software at his or her own risk, and agrees 
  212. not to hold Author liable for any damages, direct, indirect, 
  213. consequential, incidental or otherwise, in tort, in contract, 
  214. or upon any other theory of law or equity, regardless of 
  215. whether such damages are caused by Author's own negligence or 
  216. gross negligence.
  217.  
  218.        The file named "three_d.dll" is copyrighted 
  219. intellectual property, distributed under license.  The user, 
  220. however, need not pay royalties for copying or using that file 
  221. in conjunction with the Software, pursuant to the license 
  222. granted Author.
  223.  
  224.  
  225. Loading instructions:
  226.  
  227.     To load wEyes onto your Windows system, first copy 
  228. "weyes.exe," "weyes.txt," and "three_d.dll" to the directory 
  229. of your choice.  Next, enter Windows's Program Manager and 
  230. select a program group.  Then select "File," "New," "Program 
  231. Item" from the menu bar (in that order).  In the "Command 
  232. Line" edit box, type: "<Drive>:\<Pathname>\WEYES.EXE", where 
  233. <Drive> and <Pathname> are the drive and directory into which 
  234. you have installed the above program files.  Choose "OK."  
  235. When you want to invoke the program, simply double-click the 
  236. wEyes icon. 
  237.  
  238.     To auto-load the program upon starting a Windows 
  239. session, do the following: 
  240.  
  241.     Win 3.1
  242.  
  243.     Install wEyes in the "Startup" program group.  To run 
  244. the program as an icon, check the "Run Minimized" check box.
  245.  
  246.     Win 3.0
  247.  
  248.     Open your "win.ini" file (located in your WINDOWS 
  249. directory) by using the Windows Notepad program.  Find the 
  250. line labeled "[windows]"; then look for the "load=" statement.  
  251. Beside that statement, type "<Drive>:\<Pathname>\WEYES.EXE", 
  252. again where <Drive> and <Pathname> are the drive and directory 
  253. into which you have installed the program files.  The next time 
  254. that you invoke windows, wEyes will appear as a minimized 
  255. window at the bottom of your screen.  To run wEyes as a 
  256. regular (non-minimized) window, perform these same steps, 
  257. except rather than looking for the "load=" statement, look 
  258. for the "run=" statement.
  259.  
  260.  
  261. This program is written mostly for fun.  If you do enjoy it 
  262. and would like to find out about other products and services 
  263. provided by OutLook/PC Business System Design, drop us a line 
  264. at:
  265.  
  266. OutLook/PC Business System Design
  267. ATTN: M. Bradley, MSSI
  268. P.O. Box 684255          
  269. Austin, TX  78768-4255
  270.  
  271. Compuserve:  70724,3347
  272.  
  273. We usually specialize in more serious undertakings, 
  274. specifically management information systems.  Even more 
  275. specifically, we are seeking out small- to mid-sized law firms 
  276. in South and Central Texas that require information systems 
  277. and solutions (I have a J. D. -- University of Texas School of 
  278. Law, Class of 1991).  If you fit the above description (or if 
  279. you know anyone who does), please let us know.  We specialize 
  280. in building open, flexible information systems, and we can do 
  281. it quickly and cheaply.  And when we're done, our clients do 
  282. not become our slaves.
  283.  
  284. Thanks.
  285.  
  286. -- Rob Carty, President
  287.    9 October 1992
  288.  
  289.       
  290.   
  291. _
  292.