Moving Mouse Pointer?

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Is it possible to move the Mouse pointer using code?

I want to create a help system where the mouse 'points' to
a text box on the form.

Also on this subject, is it possible to 'automate' the
mouse and have it Click or select objects on a form
without touching the mouse....

Something interesting for a Monday afternoon eh?

Cheers,
Steve.
 
Steve said:
Is it possible to move the Mouse pointer using code?

I want to create a help system where the mouse 'points' to
a text box on the form.

I strongly discourage this. The screen in general, and the mouse in
particular, belong to the user. Moreover, moving the mouse gets
automated with humans, it becomes a natural task governed by muscle memory.
Software should not interfere that way.
Also on this subject, is it possible to 'automate' the
mouse and have it Click or select objects on a form
without touching the mouse....

Definately. That is common practice. That is, as long as the Click gets
catched by a Click event handler. If a button called btnAlert has a
click handler, that is called btnAlert_Click; you can call this from
code as any other procedure. If it sits in a form, be sure to call it
from inside the form, or make the procedure Public (event procedures are
Private by default)
Something interesting for a Monday afternoon eh?

It is evening here!
 
Back
Top