Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by J-Deezy View Post
    Sorry about the slow reply, I forgot about it xD

    Anyways here's my code for triggering a click when mouse is over a certain color.

    [REQUIREMENTS]

    A timer with an interval of 1. That's it.

    [php]
    Option Explicit On
    Imports System.Runtime.InteropServices

    Friend Class Form1
    Inherits System.Windows.Forms.Form
    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 LEFTMOUSEUP = &H4
    Private Const LEFTMOUSEDOWN = &H2

    Private Sub MouseClicks()
    mouse_event(LEFTMOUSEDOWN, 0, 0, 0, 0)
    mouse_event(LEFTMOUSEUP, 0, 0, 0, 0)
    End Sub

    <StructLayout(LayoutKind.Sequential)> Private Structure POINTAPI
    Dim x As Integer
    Dim y As Integer
    End Structure

    Private Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As POINTAPI) As Integer
    Private Declare Function GetDC Lib "user32" Alias "GetDC" (ByVal hwnd As Integer) As Integer
    Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer) As Integer




    Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
    Timer1.Interval = 100
    Timer1.Enabled = True
    End Sub

    Private Sub Timer1_Tick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Timer1.Tick
    Dim structCursorPosition As POINTAPI
    Call GetCursorPos(structCursorPosition)
    Dim lColor As Integer = GetPixel(GetDC(0), structCursorPosition.x, structCursorPosition.y)

    Dim c As Color = ColorTranslator.FromOle(lColor)
    Dim R1, G1, B1 As Integer
    R1 = c.R
    G1 = c.G
    B1 = c.B

    If RGB(c.R, c.G, c.B) = RGB(255, 3, 3) Then ' Change the 'RGB(255, 3, 3)' to whatever color'
    Call MouseClicks()
    MsgBox("OMG IT WORKED") ' remove this, i was just testing'
    End If


    End Sub
    End Class
    [/php]

    Hope that works for you.
    He wants to search the whole screen for a specific color and move the cursor there.

  2. #17
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    FLAMESABER, I'm guessing it's a predetermined RGB color, perhaps texture chams that render block color (just guessing) So all it would have to do is move the mouse cursor to the preset RGB color (this is all hypothetical, I don't actually know if this is how he's planning to do it)

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. #18
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by J-Deezy View Post
    FLAMESABER, I'm guessing it's a predetermined RGB color, perhaps texture chams that render block color (just guessing) So all it would have to do is move the mouse cursor to the preset RGB color (this is all hypothetical, I don't actually know if this is how he's planning to do it)
    Textures can't be predetermined RGBs. So, I guess the program will have to search for the color in real-time !!

  4. #19
    SoldierFront's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    76
    Reputation
    10
    Thanks
    1
    My Mood
    In Love
    I wont get the color ingame what i am gonna do is make the other team look red (just the chest) then before i go in game on the program i am going to choose the color red, and it should work whenever i am in game.
    Its basically an aimbot.


    ¨°º¤ø„¸MPGH„ø¤º°¨
    „ø¤º°¨FØR€V€R`°º¤ø„
    (¯`'•.¸(¯`'•.¸, _________________ , .•'´¯) .•'´¯)
    (¯`'•.¸(¯`'•.¸««««««««««««»»»»»»»»»»»¸.•'´¯).•'´¯)
    --==>>>---> MPGH<---<<<==--
    (_¸.•'´(_¸.•'´««««««««««««»»»»»»»»»»»`'•¸_)'•.¸_)
    (_¸.•'´(_¸.•'´¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ `'•.¸_)`'•.¸_)

  5. #20
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by SoldierFront View Post
    I wont get the color ingame what i am gonna do is make the other team look red (just the chest) then before i go in game on the program i am going to choose the color red, and it should work whenever i am in game.
    Its basically an aimbot.
    Woo I was right. FLAME do you mean that even if the player is rendered being solid RGB(255, 0, 0) there isn't a way to get the mouse to move to that color?

    I don't know jack about DirectX

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #21
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by J-Deezy View Post
    Woo I was right. FLAME do you mean that even if the player is rendered being solid RGB(255, 0, 0) there isn't a way to get the mouse to move to that color?

    I don't know jack about DirectX
    We will hardly get a pure value of 255 for red. So we need to mix the RGB. Hence not, predefined.

    @Soldier: What will be the color of the other team before we will convert them to red. This is needed because we will compare colors, and then convert the matching pixels to red.

  7. #22
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    He's simply going to change the textures I guess, so you just gotta search for one specific red.



  8. #23
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Blubb1337 View Post
    He's simply going to change the textures I guess, so you just gotta search for one specific red.
    That's what I said, but maybe FLAMESABER knows more than me (noshit)

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  9. #24
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by J-Deezy View Post
    That's what I said, but maybe FLAMESABER knows more than me (noshit)
    Well, I guess you're right. If he is going to edit the texture, then I think it will be easy. All now we need is capture the screen and compare it every second. Correct me if I am wrong ?

  10. #25
    SoldierFront's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    76
    Reputation
    10
    Thanks
    1
    My Mood
    In Love
    Yeah that's it, I think, I don't know much about VB i just know the basics, thats why I am asking for help.
    thanks everyone even if I can't do this program you guys have been amazing and helped me a lot.


    ¨°º¤ø„¸MPGH„ø¤º°¨
    „ø¤º°¨FØR€V€R`°º¤ø„
    (¯`'•.¸(¯`'•.¸, _________________ , .•'´¯) .•'´¯)
    (¯`'•.¸(¯`'•.¸««««««««««««»»»»»»»»»»»¸.•'´¯).•'´¯)
    --==>>>---> MPGH<---<<<==--
    (_¸.•'´(_¸.•'´««««««««««««»»»»»»»»»»»`'•¸_)'•.¸_)
    (_¸.•'´(_¸.•'´¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ `'•.¸_)`'•.¸_)

  11. #26
    SoldierFront's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    76
    Reputation
    10
    Thanks
    1
    My Mood
    In Love
    I got to go now, I'll check this thread when I am back, I hope I can make this program today.


    ¨°º¤ø„¸MPGH„ø¤º°¨
    „ø¤º°¨FØR€V€R`°º¤ø„
    (¯`'•.¸(¯`'•.¸, _________________ , .•'´¯) .•'´¯)
    (¯`'•.¸(¯`'•.¸««««««««««««»»»»»»»»»»»¸.•'´¯).•'´¯)
    --==>>>---> MPGH<---<<<==--
    (_¸.•'´(_¸.•'´««««««««««««»»»»»»»»»»»`'•¸_)'•.¸_)
    (_¸.•'´(_¸.•'´¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ `'•.¸_)`'•.¸_)

  12. #27
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by SoldierFront View Post
    Yeah that's it, I think, I don't know much about VB i just know the basics, thats why I am asking for help.
    thanks everyone even if I can't do this program you guys have been amazing and helped me a lot.
    I think your program is done. All I now I have to do is write a code that will get any type of red color on the screen and click it. But there could be a problem. If it's a directX game, maybe the mouse click won't work there... xD

  13. #28
    SoldierFront's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    76
    Reputation
    10
    Thanks
    1
    My Mood
    In Love
    Quote Originally Posted by FLAMESABER View Post
    I think your program is done. All I now I have to do is write a code that will get any type of red color on the screen and click it. But there could be a problem. If it's a directX game, maybe the mouse click won't work there... xD
    I think it is a directX but i will try anyway, if it doesn't work it will help in the future.
    If you can give me a link to download the program when you finish and then give me the source so I can make a good GUI for it.
    Thank you once again.


    ¨°º¤ø„¸MPGH„ø¤º°¨
    „ø¤º°¨FØR€V€R`°º¤ø„
    (¯`'•.¸(¯`'•.¸, _________________ , .•'´¯) .•'´¯)
    (¯`'•.¸(¯`'•.¸««««««««««««»»»»»»»»»»»¸.•'´¯).•'´¯)
    --==>>>---> MPGH<---<<<==--
    (_¸.•'´(_¸.•'´««««««««««««»»»»»»»»»»»`'•¸_)'•.¸_)
    (_¸.•'´(_¸.•'´¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ `'•.¸_)`'•.¸_)

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Help Request] TEM auto-click funfando???
    By felippe9 in forum Combat Arms Brazil Help
    Replies: 3
    Last Post: 08-14-2011, 06:22 PM
  2. [Release] auto click(prototype)
    By lolmaster1 in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 10-31-2009, 04:37 AM
  3. [VB HELP]Auto-Type Combat Arms Mute
    By Pixie in forum Visual Basic Programming
    Replies: 12
    Last Post: 10-03-2009, 07:23 AM
  4. Final Auto click
    By 012g in forum Visual Basic Programming
    Replies: 6
    Last Post: 09-20-2009, 06:59 AM
  5. [Please Help] Auto-Updating
    By twistedswift in forum Hack Requests
    Replies: 0
    Last Post: 08-01-2008, 10:59 AM