Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 13:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB 2008 Pixel search Problem

Discussion on VB 2008 Pixel search Problem within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2011
Posts: 15
Received Thanks: 1
VB 2008 Pixel search Problem

Hallo Leute,
ich habe folgenden Code:

Code:
    Sub test()
        Dim farbe As Integer = &H3B5100
        'Dim farbe2 As Integer = &HA72800
        'Dim farbe3 As Integer = &H6D3700
        'Dim farbe4 As Integer = &H831000
        'Dim farbe5 As Integer = &H8F2E00
        'Dim farbe6 As Integer = &HB33200
        'Dim farbe7 As Integer = &HAD3306

        Dim b As New Bitmap(My.Computer.Screen.WorkingArea.Width, My.Computer.Screen.WorkingArea.Height)
        Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(b)
        g.CopyFromScreen(0, 0, 0, 0, New Size(b.Width, b.Height))

        For i = 0 To (b.Width - 1)
            For j = 0 To (b.Height - 1)
                Dim col As Integer = (b.GetPixel(i, j).ToArgb) And &HFFFFFF
                If col = farbe Then
                    SetCursorPos(i, j)
                    System.Threading.Thread.Sleep(2000)
                    'Mausklick(Windows.Forms.MouseButtons.Left)
                    'System.Threading.Thread.Sleep(2000)
                    'ElseIf col = farbe2 Then
                    'SetCursorPos(i, j)
                    'System.Threading.Thread.Sleep(2000)
                    'ElseIf col = farbe3 Then
                    'SetCursorPos(i, j)
                    'System.Threading.Thread.Sleep(2000)
                    'ElseIf col = farbe4 Then
                    'SetCursorPos(i, j)
                    'System.Threading.Thread.Sleep(2000)
                    'ElseIf col = farbe5 Then
                    'SetCursorPos(i, j)
                    'System.Threading.Thread.Sleep(2000)
                    'ElseIf col = farbe6 Then
                    'SetCursorPos(i, j)
                    'System.Threading.Thread.Sleep(2000)
                    'ElseIf col = farbe7 Then
                    'SetCursorPos(i, j)
                    'System.Threading.Thread.Sleep(2000)
                End If
            Next
        Next
    End Sub
Ich benutze diesen code,
um bei einen flashgame die Felder zu ernten,
da es auf Dauer sehr mühsam wird dauernd zu klicken.
Der Wunsch auf so ein Programm Kamm von meiner Frau,
und Frauen was abschlagen

Er macht auch alles soweit ganz gut,
nur lässt er ziemlich viele große Lücken,
wo er nichts macht.

Wie ihr sehen könnt,
habe ich schon versucht mit mehrere Farben zu hantieren,
aber er lässt immer die gleichen Felder aus.

Verschiebe ich aber das Bild vom Spiel weiter nach oben,
dann macht er diese Felder.

Ich hoffe es kann mir einer helfen,
da ich nicht so begabt auf diesem Gebiet bin.
yuri1983 is offline  
Reply


Similar Threads Similar Threads
help with pixel search
08/08/2011 - AutoIt - 3 Replies
I need to implement in my autoit bot some changes and i am gonna use pixel search. What i exactly want is a script that start pressing a buton then compare a pixel if this pixel is grey make script 1 until pixel is not grey , when the pixel became not grey make script 2 till its finished, and when script 2 finish has to go to the compare pixel spot for starting again with script 1 till is not grey to make script 2 ...... and so on indefinitly it would be something like this?
Pixel search Bot Problem
01/10/2011 - General Coding - 6 Replies
Hallo ich habe hier folgenden Bot gemacht: Auto it Global $paused Global $i Global $a = 100 Global $Mouse Global $ii HotKeySet("{F8}", "_Scannerstart")
Problem bei Pixel search
12/07/2010 - AutoIt - 15 Replies
Heey, habe noch nie etwas mit AutoIt geschreiben... Hier mein script: Ich wollte eigentlich nur dass mein Mauszeiger auf 736, 699 klickt, dann die Pixel in dem Bereich sucht und drauf klickt. Daraufhin wieder woanders hin klickt und wieder die Pixel den dem Bereich sucht und wieder drauf klickt.
Problem mit Pixel search Autoit
06/18/2010 - AutoIt - 14 Replies
Wie der Titel schon sagt habe ich ein Problem mit der funktion Pixel search Mein Problem ist das die Maus immer über die Rausgesuchte Pixel Position geht zb O ist der ausgewählte punkt es kommt aber eher sowas raus als ob ich Ö striche ausgewählt hab Also aimt immer etwas über der angegebennen position der Code : und dann hätte ich noch die frage ob man mehrere Pixel Searches in einem Script laufen lassen kann Zb: Wenn die Lebensanzeige sinkt oder Fast lehr ist das eine Function...
Aoc Bot with Pixel search or how
07/20/2008 - General Gaming Releases - 0 Replies
Hi there sorry for my poor english I tryed a aoc bot , but i got several problems the enemys are fare away so i need to walk to them and then hit. i cannot get the next target cause first the bot need to look for 50m to see is there a enemy



All times are GMT +1. The time now is 13:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.