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.
while 1
$B=0
MouseClick("left" , 959, 745, 1)
$B =_ImageSearch("Windows-7-Start-Orb.png",1,$x1,$y1,100)
If $B = 1 Then
Mouseclick ("left",$x1,$y1)
Else
MouseClick("left" , 1000, 745, 1)
EndIf
Sleep(1000)
WEnd
dadabei kommt dieser Fehler:
C:\Users\******\Desktop\AutoIt v3 Script (neu).au3 (25) : ==> Variable used without being declared.:
$B =_ImageSearch("Windows-7-Start-Orb.png",1,$x1,$y1,100)
$B =_ImageSearch("Windows-7-Start-Orb.png",1,^ ERROR das ist das bild dazu
while 1 $B=0 MouseClick("left" , 959, 745, 1) $B =_ImageSearch("Windows-7-Start-Orb.png",1,$x1,$y1,100) If $B = 1 Then Mouseclick ("left",$x1,$y1) Else MouseClick("left" , 1000, 745, 1) EndIf Sleep(1000) WEnd
dadabei kommt dieser Fehler:
C:\Users\******\Desktop\AutoIt v3 Script (neu).au3 (25) : ==> Variable used without being declared.:
$B =_ImageSearch("Windows-7-Start-Orb.png",1,$x1,$y1,100)
$B =_ImageSearch("Windows-7-Start-Orb.png",1,^ ERROR das ist das bild dazu
AutoIT hat dir schon die Lösung gesagt , schau mal wo der ERROR ist.
oke Funktioniert jetzt so halb:d
habe einen screen von meinem startbutton gemacht, auf den screen.jpg fährt er, aber auf das startbutton nicht, Warum das?
du musst das bild so klein wie möglich machen, und am besten nur einen kleinen teil davon,
etwas auffälliges, was sonnst nix auf dein bildschirm hatt....
xD hmm hab mal das bild verkleinert^^ und dann ist der mauszeiger nicht mehr auf das alte bild bei dem es noch komplett war...
Will eig in nem Javascriptgame das dann laufen lassen.
ist das bild "durchsichtig" ? könnte sich die farbe dahinter auf igenteine art und weise verändern?
wenn ja, wird es nciht klappen, dann müsste mann das bild transparent machen und es versuchen (ob das klappt weiß ich nciht, nur ein gedanke...habs noch nie versucht!!)
C# PixelSearch (search screen for pixel) 04/13/2019 - .NET Languages - 6 Replies This is a very similar to Auto-its PixelSearch functions (since that's what i intended to make it)
Basically it creates a bitmap of a region on the screen, converts the image to a 2d array and loops through the array searching for the inputed color.
NOTE: to compile this in a VC# 2008 you will need to allow unsafe code (HOW: Project->Properties->Build->Allow unsafe code)
public static Point PixelSearch(Rectangle rect, int PixelColor, int Shade_Variation)
{
...
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...
Pixel Search Click 04/11/2010 - AutoIt - 4 Replies Hi,
I am trying to open up Internet Explorer using Pixel Search,
But i keep getting Error.
Here is my script :
It finds the color then double clicks on it,but it cannot find the color,i hope some one can help me, +k for any one who can
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
Pixel search 02/23/2008 - Guild Wars - 18 Replies hallihallo
bin immoment dabei einen meiner eigenen bots zu optimieren und wollte ne Pixelsearchfunktion einbauen.
Leider weiß ich nicht genau wie man das macht vorallem mit den farben.
mein ziel:
3 verschiedene punkte im gw fenster(mit: x1;y1;;x2;y2;;x3;y3) sollen geprüft werden ob sie in GRÜN sind.
falls x1;y1 grün ist -> (dollerzeichen)folge = 1
falls x2;y2 grün ist -> (dollerzeichen)folge = 2
falls x3;y3 grün ist -> (dollerzeichen)folge = 3