Article View: comp.sys.mac
Article #12467Re: Help! Anyone know how to force the mouse to a location?
From: Brian Kendig
Date: Tue, 05 Jun 1990 14:21
Date: Tue, 05 Jun 1990 14:21
32 lines
2171 bytes
2171 bytes
In article <1990Jun5.091419.14219@portia.Stanford.EDU> canuck@portia.Stanford.EDU (William Stocker) writes:
>I'm writing a Mac program in THINK Pascal 3.0, and need to force the
>mouse to a particular screen location. I'm sure it's against Apple's
>guidelines (there's no SetMouse command I can find in Inside Mac I-V),
>but there's a good purpose for it -- trust me!
DON'T DO IT. It's *very* bad technique, and your application
won't run, besides.
To answer your question: You can change the pointer's location by
changing low-memory global variables. Which ones? I'm not sure; how
you access them depends on what compiler you're using. I'm not
familiar with THINK Pascal.
Be warned that an application that changes low-memory globals has
written its own death sentence. It will do nasty things to systems.
Besides, to have a program move the pointer for you is like having a
robot grab your hand and move it around for you. The pointer is the
user's `hand': he should have free, unconstrained movement of it at
all times.
Tell me what, exactly, this `good purpose' is that you've thought up,
and I and millions of other Netters will help you come up with a more
proper way of doing it.
<< Brian >>
--
| Brian S. Kendig \ Macintosh | Engineering, | bskendig |
| Computer Engineering |\ Thought | USS Enterprise | @phoenix.Princeton.EDU
| Princeton University |_\ Police | -= NCC-1701-D =- | @PUCC.BITNET |
... s l o w l y, s l o w l y, w i t h t h e v e l o c i t y o f l o v e.
Technical Details
Message-ID:
<16995@phoenix.Princeton.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!njin!princeton!phoenix!bskendigReferences:
<1990Jun5.091419.14219@portia.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!njin!princeton!phoenix!bskendig From: bskendig@phoenix.Princeton.EDU (Brian Kendig) Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Re: Help! Anyone know how to force the mouse to a location? Message-ID: <16995@phoenix.Princeton.EDU> Date: 5 Jun 90 14:21:04 GMT References: <1990Jun5.091419.14219@portia.Stanford.EDU> Reply-To: bskendig@phoenix.Princeton.EDU (Brian Kendig) Followup-To: comp.sys.mac Organization: Starfleet Academy: Princeton University PQC PTC CIT EECS SCI Lines: 32