Welcome, Guest. Please login or register.

Author Topic: Disengage the mouse?  (Read 2340 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline ChaosLordTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Disengage the mouse?
« on: July 22, 2004, 07:33:58 PM »
What is the best way to disengage the mouse via software?

I need to know how to do this so I can code tutorials which move the mouse around and do stuff to teach the user how to do things.

I know how to move the pointer around by feeding fake input events thru the OS.  But if the user bumps the mouse during this time they knock my plans off wack.

How do I temporarily disengage the physical mouse
(The thing you roll around on the table)
from the mousepointer on the screen?

What is the easiest way to disengage the mouse via software?



I know how to make the mousepointer go blank, but the pointer is still "there" and still moves with the mouse, you just can't see it.

I know how to use Intuition WINDOW_INACTIVE to detect when my window is no longer active (so I can re-engage the mouse once you teach me how to disengage it :)

I speak C+asm.  I can read many other languages such as E, BB2, Arexx, etc.  so feel free to explain this in the language you like best.

Bonus Spells will be awarded if you post some example code that actually disengages the mouse.

My compiler is SASC.  My Assembler is DevPac.

Thank you very much for any help you provide.

P.S.  The first person who replies "Just put up a requester that says
'Please unplug your mouse now'"
will receive, absolutely free of charge, a RKRM upside the head.  :D


Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA