Register for your free account! | Forgot your password?

You last visited: Today at 16:40

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

Advertisement



Autoit

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

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1
Received Thanks: 0
Autoit

Hallo zusammen,

ich bräuchte mal ein wenig Hilfe und hoffe, es ist nicht unverschämt als Neuling gleich schon Fragen zu stellen.

Mein Problem:
In meinem Script (Autoit) soll ein Image gesucht werden (Image Search), ist es gefunden, sollen alle Pixel in diesem Image angeklickt werden.

Ist so etwas möglich?


Beispiel:

#include <ImageSearch.au3>
$x1 = 0
$y1 = 0
While 1
Sleep(1)
If $active = 1 Then
$result = _ImageSearch("c:\image.png", 1, $x1, $y1, 0)
If $result = 1 Then
MouseClick("LEFT", $x1, $x2)
Sleep(100)
EndIf
EndIf
Wend


Im moment wird also nur irgendwo das Image angeklickt (wo eigentlich?),
aber ich hätte gerne, dass das jedem Pixel widerfährt.


So sieht zum Beispiel ein Image aus:


Es hat in diesem Fall 25 x 25 Pixel.

Ich sage schon mal vielen Dank im voraus!
claque is offline  
Old 04/14/2011, 21:15   #2
 
derpo's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
Hier mal eine leicht editierte Version :
Diese kannst du so verwenden :
derpo is offline  
Thanks
1 User
Old 04/14/2011, 21:30   #3


 
Meikbrosoft's Avatar
 
elite*gold: 45
Join Date: Mar 2010
Posts: 1,561
Received Thanks: 350
achte bitte nächste mal darauf :
Meikbrosoft is offline  
Thanks
1 User
Old 04/18/2011, 11:41   #4

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
Adroxxx is offline  
Closed Thread




All times are GMT +1. The time now is 16:41.


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.