Simulate Mouse Click

Blitz3D Forums/Blitz3D Beginners Area/Simulate Mouse Click

nivek(Posted 2004) [#1]
Is there a way to simulate a mouse click?

Thanks


eBusiness(Posted 2004) [#2]
If MouseHit(1) Or fakeclick Then
  ...
End If
fakeclick=1
Just set fakeclick to 1 when the click should be simulated.


soja(Posted 2004) [#3]
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.


nivek(Posted 2004) [#4]
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


soja(Posted 2004) [#5]
See Eikon's post:
Help needed to automate mouse


nivek(Posted 2004) [#6]
Thanks!