Click on the image

02/12/2014 23:24 ChrystTheEmperor#1
I want atuoit do a click on an image everytime the image come out.

What i need write for do that ?

Thank you !
02/12/2014 23:29 Croco™#2
I think the ImageSearch UDF should help u.
02/13/2014 17:53 kimboy600#3
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.
02/14/2014 03:30 ChrystTheEmperor#4
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
02/14/2014 14:48 kimboy600#5
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.
02/14/2014 15:42 SpieleHacksInfo#6
Nice packed Virus. Virustotal of his .rar archive [Only registered and activated users can see links. Click Here To Register...]
02/14/2014 16:58 kimboy600#7
Quote:
Originally Posted by SpieleHacksInfo View Post
Nice packed Virus. Virustotal of his .rar archive [Only registered and activated users can see links. Click Here To Register...]
Are you kidding me?
It's enough if I can use arrays , and you accuse to me to have created a packed virus?
02/14/2014 17:31 SpieleHacksInfo#8
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.