Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:13

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

Advertisement



imagesearcharea

Discussion on imagesearcharea within the AutoIt forum part of the Coders Den category.

Reply
 
Old 07/29/2014, 16:46   #16
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Lass dir doch mal $aFenster ausgeben und schau ob das nicht ein anderes Fenster ist.
alpines is offline  
Thanks
1 User
Old 07/29/2014, 17:16   #17
 
flumio's Avatar
 
elite*gold: 50
Join Date: Feb 2009
Posts: 765
Received Thanks: 927
Quote:
$aFenster[0], $aFenster[1], $aFenster[0]+$aFenster[2], $aFenster[1]+$aFenster[3], $result_x, $result_y
Quote:
$aFenster[0], $aFenster[1], $aFenster[2], $aFenster[3], $result_x, $result_y
Wenn du mir erklären kannst, was diese Variabeln bringen bzw. was die Function da genau macht, dann helfe ich dir.
Ansonsten ist das für mich ein irgendwo aufgesammelter Code.
flumio is offline  
Thanks
1 User
Old 07/29/2014, 17:24   #18
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Er holt sich die Position von dem Fenster, WinGetPos returnt dabei folgendes Array
Code:
WinGetPos
[0] x pos
[1] y pos
[2] width
[3] height
Er versucht nur das Fenster abzuscannen.
alpines is offline  
Thanks
1 User
Old 07/29/2014, 22:05   #19
 
flumio's Avatar
 
elite*gold: 50
Join Date: Feb 2009
Posts: 765
Received Thanks: 927
probiere das hier mal,

Code:
Global $x, $y

$koords = _ImageSearchArea("data/TEXT.bmp", 1, $aFenster[0], $aFenster[1], $aFenster[2], $aFenster[3],$x,$y,80)
If $koords = 1 Then
	MsgBox("0", "Eroflg", "Erfolg")
EndIf
flumio is offline  
Thanks
1 User
Old 07/30/2014, 15:08   #20
 
elite*gold: 0
Join Date: Jun 2010
Posts: 65
Received Thanks: 0
Danke für Eure Hilfe, es lag aber gar nicht am Code sondern am WinMediaPlayer da hat wingetpos falsche werte geliefert!
derrod is offline  
Reply


Similar Threads Similar Threads
ImageSearchArea
08/08/2013 - AutoIt - 7 Replies
Alright im trying to search a certain area And cant seem to wrap my head around the code. _ImageSearchArea("$vcl.bmp",$resultPosi tion,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance) The place im trying to search is: - Top Left corner : 298,211 - Bottom Right corner: 507, 279



All times are GMT +1. The time now is 05:14.


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.