How would i make a program (in the background) preform a MOUSE click?
Thanks!
Printable View
How would i make a program (in the background) preform a MOUSE click?
Thanks!
You just want a random click? Why?
Yes, timed click
It's simple to execute, but like demon said, why would you want to. You are performing actions without the knowledge of your client/user. If things start happening they cannot comprehend then they will consider your application broken. But if you insist on doing this all you have to do is call the Click event from wherever you need it:
But you are constrained to performing this kind of action through the events associated with the form and its controls.Code:Private Sub Button1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseHover
HiddenClick(Button1, New EventArgs)
End Sub
Protected Sub HiddenClick(ByVal sender As Object, ByVal e As EventArgs)
MessageBox.Show("I am a hidden click")
End Sub
If you want to click outside of the application, you'll need to use a Windows API.
But, before we can assist further, we need to know the purpose of this. This seems... arbitrary.... I can't think of a legitimate reason why you would want to do this,
to make a macro for a program that hasn't released an API to interact with it?
execute mouse commands while you are away from the computer can be very useful and you most certainly didn't think hard enough
the user could be just Twango himself, and you have no reason to believe, eatmycode, that the user doesn't know his mouse will be moved....
Guys, here is what i want: A button, that says "Autoclick" that calls a click say... every 1000 milliseconds... that DOES NOT click IN my form but OUTSIDE of the form. Like the type event...
but why? Most of these questions deal with game cheats or bots.
For a personal use... I have an App website and it's been requested... IS IT POSSIBLE!?
Sure is, but as I think you're using this to create a cheat/bot, or help someone create a cheat/bot, I'm not going to offer any more advice.
Good luck.
Ok! Does anyone else have ideas?
Why start an app website to ask them all on a Forum.
OMG i've made a bunch of apps without you guys!
And WHY does it matter what i am using for i just need help!!!:eek2:
You sound too desperate for my liking. I'm sure Philly will help you.
plenty of people will help him, although its already been asked/answered on THIS FORUM before
http://www.vbforums.com/showthread.php?t=358458
nobody had a problem answering this question..