Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:27

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

Advertisement



Autoit Pixelsearch fehler!!

Discussion on Autoit Pixelsearch fehler!! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 82
Received Thanks: 0
Autoit Pixelsearch fehler!!

hey wenn ich einen code mit pixelsearch schreib komm immer diese fehlermeldung z.B. starte ich die imagesearch demo aus einem forum hier sozusagen als beispiel:

#include <ImageSearch.au3>

;
; Demo on the functions of ImageSearch
; Assumes that you have a Recycle Bin icon at the top left of your screen
; Assumes that you have IE6 or 7 icon visible
; Please make the icon visible or we won't be able to find it
;

MsgBox(0,"MSG","You need to have the should have recycle bin, and preferably, an IE icon, a PDF icon and folder icon for the demo to go nicely. All of them should be visible on the desktop")

$x1=0
$y1=0
;
; find recycle bin and move to the center of it
; change 2nd argument to 0 to return the top left coord instead
$result = _ImageSearch("recycle2.bmp",1,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a empty recycle bin here...")
EndIf

; find recycle bin and move to the center of it
$result = _ImageSearch("recycle2.bmp",0,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a empty recycle bin here... cursor move to top left of image")
EndIf


; find recycle bin and move to the center of it
; change 2nd argument to 0 to return the top left coord instead
$result = _ImageSearch("recycle.bmp",1,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a recycle bin with stuff here...")
EndIf

; find recycle bin and move to the center of it
$result = _ImageSearch("recycle.bmp",0,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a recycle bin with stuff here... cursor move to top left of image")
EndIf



MsgBox(0,"MSG","Search for a recycle bin in the top left corner in a 200x200 box")

; find recycle bin if it is in the top left corner of screen
; change 2nd argument to 0 to return the top left coord instead
$result = _ImageSearchArea("recycle2.bmp",1,0,0,200,200,$x1, $y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a empty recycle bin in top left corner")
EndIf

; find recycle bin if it is in the top left corner of screen
; change 2nd argument to 0 to return the top left coord instead
$result = _ImageSearchArea("recycle.bmp",1,0,0,200,200,$x1,$ y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a recycle bin with stuff in top left corner")
EndIf


; I guess most people should at least have an IE icon on the desktop
$result = _ImageSearch("ie7Desktop.bmp",0,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found an IE icon here")
EndIf

; I guess most people should at least have an PDF icon on the desktop
$result = _ImageSearch("pdf.bmp",0,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a PDF icon here")
EndIf

; I guess most people should at least have an Folder icon on the desktop
$result = _ImageSearch("folder.bmp",0,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Found a Folder icon here")
EndIf

; wait for a non empty recycle bin to appear
MsgBox(0,"MSG","Empty your recycle bin and then click OK. Then throw something in the bin within 15s")
$result = _WaitForImageSearch("recycle.bmp",15,1,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Hey... your recycle bin now has stuff")
EndIf

; wait 15s for either the full or empty recycle bin
MsgBox(0,"MSG","Using WaitForImages to see whether you have a full or empty bin")
Dim $anArray[10]
$anArray[0]=2 ; two images to wait to appear
$anArray[1]="recycle.bmp" ; image 1 to wait for
$anArray[2]="recycle2.bmp" ; image 2 to wait for
$result = _WaitForImagesSearch($anArray,15,1,$x1,$y1,0)
if $result=1 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Hey... your recycle bin has stuff")
EndIf
if $result=2 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Hey... your recycle bin is empty")
EndIf
if $result=0 Then
MouseMove($x1,$y1,3)
MsgBox(0,"Found","Hey... cannot find your recycle bin")
EndIf






nd dann kommt diese fehlermeldung (datei im anhang)
Attached Images
File Type: jpg desktop.jpg (49.6 KB, 5 views)
Hacker Friends is offline  
Old 03/08/2011, 19:11   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
imagesearch.dll in dein system32 ordner kopieren.

imageaearch.dll und imagesearch.au3 in dem selben ordner wie deine test.au3 kopieren..
in deine test.au3 ganz oben das einfügen:

PHP Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** 
omer36 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
PixelSearch AutoIt !
10/19/2010 - AutoIt - 4 Replies
Hallo ich bräuchte rat ;) Ich bin noch Anfänger und kenne mich noch nicht so gut aus mit AutoIt Ich hab mal was ganz einfaches versucht unswar hier: http://img5.imagebanana.com/img/p3jwgsng/thumb/Pr oblem.png Ich Wollte das der bot einfach das start zeichen in der leiste findet Wie hier im bild rot makiert ist.
AutoIt PixelSearch
08/20/2010 - AutoIt - 18 Replies
Hallo, kann mir jemand erklären, wie PixelSearch funktioniert? Ich hab zwar schon auf mehrere Seiten was dazu gesehen... Funktion PixelSearch ... aber ich versteh das immer noch nicht. Ich hab den RGB Wert 210,133,85 und möchte, dass wenn ich die Taste UP drücke, dass sich die Maus an diese Stelle bewegt. Aber 1. hab ich keine Ahnung wie ich diesen RGB einfügen soll und 2. bewegt sich dann die Maus alleine an diese Stelle?
[AutoIt] PixelSearch Tut
06/22/2010 - AutoIt - 8 Replies
Hallo, Mir ist aufgefallen dass die meisten nicht wissen wie man bestimmte Objekt mit Autoit sucht Die "Grundgedanken": Wenn ein Pixel mit einer bestimmten Eigenschaft(z:B Pixelfarbe) in einen betimmten Bereich auftaucht dann bewegt der Bot sich da hin :D So gehts: Hier erstmal die Variable mit der der Pixel festgelegt wird.
autoit Pixelsearch?
10/24/2008 - Guild Wars - 7 Replies
Hy ich versuche mir auch einmal nen Bot zu machen, bin aber eher ein Anfänger. Deswegen brauche ich ma Hilfe!! Mir geht es jetzt darum dass der Bot rauslaufen soll bzw. dass er etwas schreibt sobald er eine bestimmte Farbe in einem feld erkennt! (das er was schreiben soll habe ich geschrieben um erstma nur das zu kappieren. Wenn ich das hinkriege das er dann halt eienen Pixel erkennt, weiß ich den rest selber^^) das habe ich geschrieben: sleep (2000) send ("v") send...



All times are GMT +1. The time now is 03:28.


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.