Simulate Mouse Click

Blitz3D Forums/Blitz3D Beginners Area/Simulate Mouse Click

Is there a way to simulate a mouse click?

Thanks

If MouseHit(1) Or fakeclick Then
  ...
End If
fakeclick=1
Just set fakeclick to 1 when the click should be simulated.

If you're talking about sending a mouse click to the system that wasn't actually performed by the user, you have to use the Windows API. Look up mouse_event or SendInput on MSDN.

That's exactly what I want to do (sending a mouse click to the system that wasn't actually performed). I checked out MSDN but it seems too complicated for my limited ability. Do you know of any Blitz examples of such a function?

Thanks

See Eikon's post:
Help needed to automate mouse

Thanks!