|
You last visited: Today at 17:21
Advertisement
_ImageSearch
Discussion on _ImageSearch within the AutoIt forum part of the Coders Den category.
04/25/2012, 19:06
|
#1
|
elite*gold: 0
Join Date: Mar 2011
Posts: 207
Received Thanks: 41
|
_ImageSearch
ImageSearch is searshing all pixels, but i want this searsh only my, selected area, how do this?
|
|
|
04/25/2012, 19:14
|
#2
|
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
|
You have to use _ImageSearchArea(), there are very good tutorials on youtube and google
|
|
|
04/25/2012, 19:41
|
#3
|
elite*gold: 0
Join Date: Mar 2011
Posts: 207
Received Thanks: 41
|
Can you say any example of your function? Please :F
Ok, polish guys help me, now **** and close thread   : 
|
|
|
04/25/2012, 20:41
|
#4
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
|
I got this from the include file.
Code:
_ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance)
Hope it helps!
|
|
|
04/25/2012, 22:22
|
#5
|
elite*gold: 0
Join Date: Mar 2011
Posts: 207
Received Thanks: 41
|
Code:
_ImageSearchArea("pathToYourImage",1,x-1,y-1,x-2,-y-2,$x,$y,5)
x-1,y-1 = from xy cords
x-2,-y-2 = to xy cords
This is easiest :P
|
|
|
Similar Threads
|
[Problem] _Imagesearch will nich :(
11/12/2010 - AutoIt - 7 Replies
Ich wollte mich ein wenig mit der Imagesearch Funktion anfreunden :)
Sie klappt soweit auch gut... aber nur wenn ich das Bild öffne :(
hier das Script:
#include <ImageSearch.au3>
#RequireAdmin
$x1=0
$y1=0
|
_ImageSearch
11/02/2010 - AutoIt - 1 Replies
Heyy leute..
Ich bin jettz schon längere zeit dran und versuche Imagesearch zum laufen zu bringen doch irgendwie klappt es nicht..
Ich verwende die version von diesem Post hier : Link
Hier mein Code (aus nem beispiel raus kopiert und daran rum probiert):
#include <ImageSearch.au3>
HotKeySet( "{F1}", "Staaaart" )
HotKeySet( "{F2}", "eeeend" )
|
All times are GMT +2. The time now is 17:21.
|
|