Dismiss Notice
Want to Shorten Your Long URL? Check out our sister website Tiniurl to solve your needs!

Announcement Holy List of Tutorials Here

Discussion in 'C/C++' started by xzs, Dec 21, 2011.

  1. xzs

    xzs Moderator / .net Coder Staff Member

    Messages:
    685
    Likes Received:
    40
    Joined:
    Oct 21, 2009
    Gender:
    Male
    Last Updated: 23/04/2012
    --------------------------

    Verified How-Tos and Tutorials by xzs
    If you got a tutorial thread that's not in this list, feel free to PM me.

    ================
    INDEX
    ==========
    {vb.net}[Easy] Spammer (by G4Oblivion)
    {vb.net}[Easy] Emailing Application Part 1 (by xzs)
    {vb.net}[Easy] Emailing Application Part 2 (by xzs)
    {vb.net}[Easy] AutoClicker (by xzs)
    {vb.net}[Easy] MP3 Extension Searcher (by Decoy)
    {vb.net}[Easy] How to Make a Screen Capture (by Decoy)
    {vb.net}[Hard] How to Write Pointers and Floats (by Pursuited)
    {vb.net}[Hard] Converting Long to Float (and Float to Long) (by Pursuited)
    {vb.net}[HARDCORE LIST] Mega Post of Tutorials (by Derkel)
    {C/C++}[Easy] Mega Post of C/C++ Tutorials (by BaGGy)
    ==========
    ================
     
    1 person likes this.
  2. xzs

    xzs Moderator / .net Coder Staff Member

    Messages:
    685
    Likes Received:
    40
    Joined:
    Oct 21, 2009
    Gender:
    Male
    ----------- AutoClicker ------------

    This code should work for the moment (I'm trying to source for a better cleaner code)
    Code:
    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
    
    Private Sub Click() 
    Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
    mouse_event(&H2, 0, 0, 0, 1) 
    mouse_event(&H4, 0, 0, 0, 1) 
    End Sub
    
    Then under Timer1, put this :
    Code:
    Click()
    
    It SHOULD work :)

    --------------------------------
     

Share This Page