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