Moving Mouse Pointer?

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.
 
B

Bas Cost Budde

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top