Results 1 to 4 of 4

Thread: auto click macro project

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    2

    auto click macro project

    im looking for anyone that could help me with a auto click macro program that can be set to click like once a second in a certin coordiant but then like 3 minutes later click at different coordinant then move back to the reguler cooridant. If u can help me with this email me or leave a post thank yas.

  2. #2
    Lively Member
    Join Date
    Sep 2001
    Posts
    122
    is this by any chance for a banner ad clicker?
    -------------------------------------

    ICQ: 44712087 (evenings only)
    Email: [email protected]

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    2
    nope its for clicking on certin rocks on a game to mine

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Here's the basics then which should allow you to finish your rock game. You'll need a timer for the second bit - I haven't touched at using different times here, but you pass the left and top co-ordinates of the point of the screen you want the mouse to goto into this function & it'll move the mouse there & click the left button for you.

    Code:
    Private Declare Function SetCursorPos Lib "user32" (ByVal X As Long, _
     ByVal Y As Long) As Long
    
    Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, _
     ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, _
     ByVal dwExtraInfo As Long)
    
    Private Const cMOUSEEVENT_LEFTDOWN = &H2
    Private Const cMOUSEEVENT_LEFTUP = &H4
    
    
    Private Sub ClickPosition(ByVal lngLeftCOORD As Long, ByVal lngtopCOORD As Long)
        
        SetCursorPos lngLeftCOORD, lngtopCOORD
        mouse_event cMOUSEEVENT_LEFTDOWN Or cMOUSEEVENT_LEFTUP, 0&, 0&, 0&, 0&
    
    End Sub

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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