home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15428 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!carhart
  3. From: carhart@netcom.com (Raymond E. Carhart)
  4. Subject: i want to move mouse a random distance
  5. Message-ID: <h7xn#4q.carhart@netcom.com>
  6. Date: Mon, 14 Sep 92 00:28:30 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. Lines: 30
  9.  
  10.  
  11. I would like help on moving the mouse a random distance, because i want to
  12. choose a word at random from the thesaurus that comes with Word.
  13.  
  14. My idea is to choose a lot of random words either for the silly fun of 
  15. generating poetry, or to run through a grammar checker and generate
  16. sentences from scratch.  Here is the whole project:
  17.  
  18. I set up a macro using AutoMac, the macro program that comes with Word.  
  19. It would read six letters from a program that spits out A-Z at random,
  20. then paste the letters into Word, and use the spelling checker to
  21. turn it into the nearest word.  The problem is that the word gets 
  22. chosen by the on-screen moving of the mouse over the visual thesaurus
  23. that comes with Word.  So the words that were generated would seem
  24. random for a while, but it was really only choosing from a couple
  25. starting with A, a couple starting with B, etc., because the thesaurus
  26. displays the range of about 30 or 40 words on screen, only to a certain
  27. level of precision.
  28.  
  29. So if anyone knows of a way to designate how far to move the mouse in
  30. an AutoMac macro by a number that can be determined randomly, or has
  31. another idea of how i could make the computer do the selecting when
  32. there is a visual selection going on, i'd appreciate it.
  33.  
  34. kevin
  35. carhart@netcom.com
  36. (i hope i've made sense :) )
  37. B
  38. D
  39. (i hope i've made sense :) ) xm
  40.