Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:58

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

Advertisement



Click on the image

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

Reply
 
Old   #1
 
ChrystTheEmperor's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 522
Received Thanks: 152
Click on the image

I want atuoit do a click on an image everytime the image come out.

What i need write for do that ?

Thank you !
ChrystTheEmperor is offline  
Old 02/12/2014, 23:29   #2
 
Croco™'s Avatar
 
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
I think the ImageSearch UDF should help u.
Croco™ is offline  
Old 02/13/2014, 17:53   #3
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
The ImageSearch UDF .

It finds specific images in your visible screen.

Here an example with some explanations.

Code:
#include <ImageSearch.au3>

$x = 0
$y = 0
$image = "something.bmp" ;I tested only with .bmp & .PNG
$imSea= _ImageSearch($image,1,$x,$y,0) ;First = Image name - Second = 0 for top left coords, 1 for Center coords - Variable name for x coord  - Variable name for y coord - tolerance
If $imSea = 1 Then
   MouseClick("left",$x,$y,1)
   MsgBox (0,"","Found at " & $x & " " & $y) 
EndIf
Hope I helped you , greets
kimboy600.
kimboy600 is offline  
Old 02/14/2014, 03:30   #4
 
ChrystTheEmperor's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 522
Received Thanks: 152
Very thank you all for support.

So, i need simpyl put that scritp inside the code of autoit ?

And where i need put he image ? In same folder of autoitscript ?

And that script you post here, will click the image if that image come out scanning the screen every seconds ?

Every how many time the autoit do a scansion of screeen for check if there is the image ?

Can i add a delay of click the image with random milliseconds ?

Thanks
ChrystTheEmperor is offline  
Old 02/14/2014, 14:48   #5
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Quote:
Originally Posted by ChrystTheEmperor View Post
Very thank you all for support.

So, i need simpyl put that scritp inside the code of autoit ?

And where i need put he image ? In same folder of autoitscript ?

And that script you post here, will click the image if that image come out scanning the screen every seconds ?

Every how many time the autoit do a scansion of screeen for check if there is the image ?

Can i add a delay of click the image with random milliseconds ?

Thanks


1)Put the ImageSearch.au3 file into AutoIt's inculde folder , ImageSearchDll.dll into windows folder.
2)You can put your image everywhere , just change the $image variable including the dir. Es.

3)The script i posted just shows how the ImageSearch function works. It just check one time if there's the image. Inserting it in a loop will scan costantly the screen (Remember , just visible screen)

4) Here there is a way to add a delay.
kimboy600 is offline  
Old 02/14/2014, 15:42   #6
 
SpieleHacksInfo's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 448
Received Thanks: 278
Nice packed Virus. Virustotal of his .rar archive
SpieleHacksInfo is offline  
Thanks
1 User
Old 02/14/2014, 16:58   #7
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Quote:
Originally Posted by SpieleHacksInfo View Post
Nice packed Virus. Virustotal of his .rar archive
Are you kidding me?
It's enough if I can use arrays , and you accuse to me to have created a packed virus?
kimboy600 is offline  
Old 02/14/2014, 17:31   #8
 
SpieleHacksInfo's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 448
Received Thanks: 278
Quote:
Originally Posted by kimboy600 View Post
Are you kidding me?
It's enough if I can use arrays , and you accuse to me to have created a packed virus?
Mustnt be you. I think your pc is infectet. A ramnit infect also other files on the pc. But pls take it off it will infect other users.
SpieleHacksInfo is offline  
Reply


Similar Threads Similar Threads
Wie verhindere ich : Click this bar to view the full image.
09/27/2013 - Off Topic - 9 Replies
Hey Leute ! Ich wollte mal fragen wie ich "Click this bar to view the full image." bei meinem Therad verhindern kann. Hier zum Therad http://www.elitepvpers.com/forum/middleman/2870492 -thoenixds-middleman-service-trusted-fast-free.htm l Danke für die Antworten, ThoenixD !
Need Help with Autoit Click on Image to run file for New game I made
07/19/2012 - AutoIt - 0 Replies
Problem is I do not know How to use Autoit to allow a user to click a button GUICtrlCreatePic and have a file run. This is the opening Screen http://78ez.com/images/open1.jpg But no matter what I do I can't get a click on a picture to open a file. I need it to http://78ez.com/images/open2.jpg have a open message for each of the levels in the game. Please How do I code a simple user click on a picture to open a file? Code that is useless.
click this bar to view the full image
06/27/2012 - Off Topic - 7 Replies
Gibt es eine Möglichkeit bei meinem Banner dies zuentfernen ? click this bar to view the full image



All times are GMT +1. The time now is 07:59.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.