Results 1 to 15 of 15

Thread: Mouse Click Call

  1. #1

    Thread Starter
    Member Twango's Avatar
    Join Date
    Mar 2010
    Posts
    63

    Mouse Click Call

    How would i make a program (in the background) preform a MOUSE click?

    Thanks!

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Mouse Click Call

    You just want a random click? Why?
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3

    Thread Starter
    Member Twango's Avatar
    Join Date
    Mar 2010
    Posts
    63

    Re: Mouse Click Call

    Yes, timed click

  4. #4
    Lively Member eatmycode's Avatar
    Join Date
    Mar 2010
    Location
    Kingston upon Hull
    Posts
    74

    Re: Mouse Click Call

    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:

    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
    But you are constrained to performing this kind of action through the events associated with the form and its controls.
    Technik ... Kniff, die Welt so einzurichten, dass wir sie nicht erleben mussen

    Max Frisch

  5. #5
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Mouse Click Call

    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,
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  6. #6
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    Re: Mouse Click Call

    Quote Originally Posted by weirddemon View Post
    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....

  7. #7

    Thread Starter
    Member Twango's Avatar
    Join Date
    Mar 2010
    Posts
    63

    Re: Mouse Click Call

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

  8. #8
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    540

    Re: Mouse Click Call

    but why? Most of these questions deal with game cheats or bots.
    Where I'm from we only have one bit of advice for new comers: "If you hear banjos, turn and run".


    VS 2008 .NetFW 2.0

  9. #9

    Thread Starter
    Member Twango's Avatar
    Join Date
    Mar 2010
    Posts
    63

    Re: Mouse Click Call

    For a personal use... I have an App website and it's been requested... IS IT POSSIBLE!?

  10. #10
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    540

    Re: Mouse Click Call

    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.
    Where I'm from we only have one bit of advice for new comers: "If you hear banjos, turn and run".


    VS 2008 .NetFW 2.0

  11. #11

    Thread Starter
    Member Twango's Avatar
    Join Date
    Mar 2010
    Posts
    63

    Re: Mouse Click Call

    Ok! Does anyone else have ideas?

  12. #12
    Lively Member
    Join Date
    Jul 2009
    Posts
    124

    Re: Mouse Click Call

    Why start an app website to ask them all on a Forum.

  13. #13

    Thread Starter
    Member Twango's Avatar
    Join Date
    Mar 2010
    Posts
    63

    Re: Mouse Click Call

    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!!!

  14. #14
    Lively Member eatmycode's Avatar
    Join Date
    Mar 2010
    Location
    Kingston upon Hull
    Posts
    74

    Re: Mouse Click Call

    You sound too desperate for my liking. I'm sure Philly will help you.
    Technik ... Kniff, die Welt so einzurichten, dass wir sie nicht erleben mussen

    Max Frisch

  15. #15
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    Re: Mouse Click Call

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width