Terry,
Ok, You can send quite a few mouse event messages to windows. To see a list
lookup the following MSDN Platform SDK article "Mouse Input Messages".
I would suggest the WM_LBUTTONUP message since it is only recieved when a
the mouse button is let go on a control.
To send this message call the User32.dll api function PostMessage();
Hope this helps.
--
Glen Jones MCSD
"Terry Redmond" <re***@ntlworld.com> wrote in message
news:1%****************@newsfep3-gui.server.ntli.net...
i need a bit of code to make the computer think i have clicked the left
mouse button.
i.e
If <condition> then
<click left mouse button>
If this is possible is it possible to hold the left mouse button down?
ie
If <condition> then
Do <hold left mouse button down>
until <condition>
<release mouse button>