Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!samsung!umich!ox.com!heifetz!tbomb!time From: time@ice.com (Tim Endres) Newsgroups: comp.sys.mac.programmer Subject: CODE: Code to move the cursor... Message-ID: <1CE00001.gcspw3@tbomb.ice.com> Date: 23 May 91 15:29:11 GMT Reply-To: time@ice.com Organization: ICE Engineering, Inc. Lines: 67 X-Mailer: uAccess - Mac Release: 1.1.b6 I know this has been posted before, but here is a new incantation. This code will move the cursor from your code. tim. --------------------- #include #include #define MTemp ( * (Point *) 0x0828 ) // Low-level interrupt mouse location #define RawMouse ( * (Point *) 0x082C ) // un-jerked mouse coordinates #define CrsrNew ( * (char *) 0x08CE ) // Cursor changed? #define CrsrCouple ( * (char *) 0x08CF ) // cursor coupled to mouse? MySetMouse(h, v) int h,v; { Point where; where.h = v; where.v = h; RawMouse = where; /* into RawMouse */ MTemp = where; /* and MTemp */ CrsrNew = 0xff; /* Hit CrsrNew & CrsrCouple */ CrsrCouple = 0xff; /* Hit CrsrNew & CrsrCouple */ } main(argc, argv) int argc; char *argv[]; { long final; MySetMouse(40, 40); Delay(60, &final); MySetMouse(50, 40); Delay(60, &final); MySetMouse(60, 40); Delay(60, &final); MySetMouse(70, 40); Delay(60, &final); MySetMouse(40, 50); Delay(60, &final); MySetMouse(40, 60); Delay(60, &final); MySetMouse(40, 70); CrsrCouple = '\1'; } #ifdef NEVER_DEFINED C -w {active} Link -t "MPST" -c "MPS " -o aout 6 {active}.o 6 {Clibraries}CRunTime.o 6 {Clibraries}CInterface.o 6 {libraries}Interface.o 6 {Clibraries}StdCLib.o aout #endif ------------------------------------------------------------- Tim Endres | time@ice.com ICE Engineering | uupsi!ice.com!time 8840 Main Street | Voice FAX Whitmore Lake MI. 48189 | (313) 449 8288 (313) 449 9208