How do i make a program that would click colors

Discussion in 'Programming General' started by Mn533, Aug 25, 2009.

How do i make a program that would click colors
  1. Unread #1 - Aug 25, 2009 at 10:12 PM
  2. Mn533
    Joined:
    Aug 25, 2009
    Posts:
    17
    Referrals:
    0
    Sythe Gold:
    0

    Mn533 Newcomer

    How do i make a program that would click colors

    I found out how to do it, i made 4 programs so far, ill release soon.
     
  3. Unread #2 - Aug 26, 2009 at 2:09 AM
  4. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    How do i make a program that would click colors

  5. Unread #3 - Aug 27, 2009 at 2:31 AM
  6. OCR
    Joined:
    Aug 27, 2009
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    OCR Newcomer

    How do i make a program that would click colors

    there is alot of custom functions i have seen in forums you should maybe see if cruels lib (cruels.net) is still about i think that had everything you should need,

    i kno back in the day TerrenKiller had some sweet movemouse & mousecurve functions in his forums if there still about i dont know

    also read up on the Script control very intresting
     
  7. Unread #4 - Aug 27, 2009 at 8:24 PM
  8. DickLord
    Joined:
    Aug 18, 2009
    Posts:
    46
    Referrals:
    0
    Sythe Gold:
    0

    DickLord Member

    How do i make a program that would click colors

    I wouldn't use the findcolor in the link. It works if you want to do something basic, but if you want to code anything more advanced you'll need a decent function.

    I'm on a Mac right now so I obviously don't have access to my old vb stuff, but in a while if I have time I will unearth some functions I wrote back in the day and post them here. :)

    Oh and if you want it to be reeeallly easy you should switch to delphi. I love using scanlines.
     
  9. Unread #5 - Aug 29, 2009 at 1:30 AM
  10. Mn533
    Joined:
    Aug 25, 2009
    Posts:
    17
    Referrals:
    0
    Sythe Gold:
    0

    Mn533 Newcomer

    How do i make a program that would click colors

    Im really new to coding with mouse movements, and stuff, so can someone really make it basic for me, just a simple source code for color clicking would be nice.

    Thanks
     
  11. Unread #6 - Aug 29, 2009 at 1:58 PM
  12. Lord MuffSag
    Joined:
    Aug 28, 2009
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    Lord MuffSag Newcomer
    Banned

    How do i make a program that would click colors

    Read the second post of this thread... wow..
     
  13. Unread #7 - Aug 29, 2009 at 3:07 PM
  14. Mn533
    Joined:
    Aug 25, 2009
    Posts:
    17
    Referrals:
    0
    Sythe Gold:
    0

    Mn533 Newcomer

    How do i make a program that would click colors

    Id did, i dont know if i need CruelLib.dll, and if i do, i dont know how to add it, i dont know were to put the codes, and if i need a button or not.

    Can someone just make it easy for me?
     
  15. Unread #8 - Aug 29, 2009 at 4:02 PM
  16. Lord MuffSag
    Joined:
    Aug 28, 2009
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    Lord MuffSag Newcomer
    Banned

    How do i make a program that would click colors

    You do not need the dll for that code.

    You need to start with simpler stuff (even though this seems extremely basic to me..) if you don't know the answer to those questions.

    No one is going to just do all the work for you. This is one of the easiest languages ever, so I think you could figure it out if you spent the time.
     
  17. Unread #9 - Sep 17, 2009 at 2:36 AM
  18. ipivb
    Joined:
    Sep 17, 2009
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0

    ipivb Newcomer

    How do i make a program that would click colors

    i know you already found it but im going to post the code i use anyway
    Code:
    Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" ( _
        ByVal hwnd As IntPtr, _
        ByVal wMsg As Int32, _
        ByVal wParam As Int32, _
        ByVal lParam As Int32) As Int32
        Public Declare Function WindowFromPoint Lib "user32" ( _
        ByVal stPoint As Point) As IntPtr
        Public Const WM_LBUTTONDOWN = &H201
        Public Const WM_LBUTTONUP = &H202
        Function ScreenshotForm() As Bitmap
            Dim bmp As New Bitmap(Me.Width, Me.Height)
            Using g As Graphics = Graphics.FromImage(bmp)
                g.CopyFromScreen(Me.Location, Point.Empty, Me.Size)
            End Using
    
            Return bmp
        End Function
        Private Sub MoveMousetoPixel(ByVal Clr As Color)
            Dim BMP As Bitmap = ScreenshotForm()
    
            For x As Integer = 1 To BMP.Width - 1
                For y As Integer = 1 To BMP.Height - 1
                    If BMP.GetPixel(x, y).ToArgb = Clr.ToArgb Then
                        ax.Text = x + Me.Location.X
                        Ay.Text = y + Me.Location.Y
                        Exit Sub
                    End If
                Next
            Next
        End Sub
    
     
< How do I post a comment on youtube through a webbrowser in visual basic 6? | Bot help >

Users viewing this thread
1 guest


 
 
Adblock breaks this site