so.. whats the problem? :X
Well what i want it to do is search for the specific color from the COLORCODE at a LOCATION
and if it notices the COLOR in the LOCATION then it Presses the gh3 color button i configed and the down arrow
so.. whats the problem? :X
Light travels faster than sound. That's why most people seem bright until you hear them speak.
So he can impress people when he didn't do it. Doubt it's possible to make.
Explain the problem !!
i think get wants to make a "color aimbot"(thats the only way i could put it) and have it press a key when the color shows up at a certain spot.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
Well it all just depends if there's other colors the same on the screen, because you'd have to filter it out and only accept the correct GH colors. You'd also need to reduce the scan area to just the fret so it presses exactly at the right moment. It'd probably take some tweaking. I can post a source I made (I had help from google as well for parts, not claiming credit for the whole thing) if you really want.
EDIT: Okay here's the source 'cos I gtg and I cbf waiting for a reply :P
Declarations:
[php]
Private Declare Function GetPixel Lib "Gdi32.dll" (ByVal hdc As IntPtr, ByVal x As Integer, ByVal y As Integer) As Integer
Private Declare Function CreateDC Lib "Gdi32.dll" (ByVal driverName As String, ByVal deviceName As String, ByVal output As String, ByVal lpInitData As IntPtr) As IntPtr
Private Declare Function DeleteDC Lib "Gdi32.dll" (ByVal dc As IntPtr) As Boolean
Private Declare Function GetAsyncKeyState Lib "User32" (ByVal vkey As Int32) As Int16
Dim ScreenDC As IntPtr
[/php]
Add this to form1_load:
[php]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ScreenDC = CreateDC("DISPLAY", Nothing, Nothing, CType(Nothing, IntPtr))
End Sub
[/php]
This gets the device context of the screen display.
Now you need to deleteDC at formclose or you'll end up on shits creek
[php]
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
DeleteDC(ScreenDC)
End Sub
[/php]
Next you need a pixel scanner function so here's one I made, with a bit of help from google:
[php]
Function PixelScan(ByVal startX As Integer, ByVal startY As Integer, ByVal toX As Integer, ByVal toY As Integer, ByVal sColor As System.Drawing.Color)
Dim y As Integer
Dim thisPixel As Integer
Dim PixelColor As System.Drawing.Color
For x As Integer = startX To toX
For y = startY To toY
thisPixel = GetPixel(ScreenDC, x, y)
PixelColor = ColorTranslator.FromOle(thisPixel)
If PixelColor = sColor Then
'do whatever you want when the color is found here.
End If
Next
Next
Return Nothing
End Function
[/php]
Then to use it just do this:
[php]
PixelScan(0, 0, 1366, 768, Color.Blue) '<- this will scan my entire screen (resolution 1366x768) for the color "blue"
[/php]
And that's about all you need. Now it's a matter of making it do whatever you want.
Last edited by Jason; 08-12-2010 at 12:42 PM.
You can win the rat race,Originally Posted by Jeremy S. Anderson
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)
J-Deezy is too pro for mpgh.
Haha I'm actually learning a bit of C++ on the side, but I prefer OOP personally, although the power of C++ IS tempting. Also, if you've been to a forum like VBforums you'll realize I'm actually a real beginner in VB. I joined that forum last night for more challenging and engaging VB discussion and realized exactly how much more I have to learn. The people there are real pros and their questions are advanced ones, it's a good learning resource though.
You can win the rat race,Originally Posted by Jeremy S. Anderson
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)
@J-Deezy thank you (I got bigger screen than you (1980x1080)Try to pwn me xD)
You can win the rat race,Originally Posted by Jeremy S. Anderson
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)
Great Work Jason. You are moving to the pro side. I think you joined the same forum I joined a week ago.
You can win the rat race,Originally Posted by Jeremy S. Anderson
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)