Imagesearch and mouseclick

05/02/2010 20:56 Dostrix#1
Hey!
I want do bot for Polish Game "footballteam.pl"
And i want do option, if press button, then click 2 time, 400 px right to the image, and its while 1 min...
Code:
While 1
        Select
		Case $msg = $button1	
			$x1=0
			$y1=0
			Dim $anArray[2]
			$anArray[0]=1
			$anArray[1]="atak.bmp"
	$result = _WaitForImagesSearch($anArray,15,1,$x1,$y1,0)
		While 1
                if $result=1 Then
	MouseClick( "left", $x1 + 400, $y1, 2, 1)
		EndIf
                sleep (60000)
                WEnd
WEnd
My problem is, this dont click on this same place....
05/03/2010 21:57 bassbanane#2
Try to use _IE Functions.
There's also a Tut for that somewhere here.
It's way easier than using pixel and image stuff and you can even let it run in the background then ;)
05/04/2010 18:48 Dostrix#3
ok, thx : >
its great idea ^^
but now how i can do, when someone write login and password in input, then bot write this in IE
#edit
and how i can do, 3 checkbox, and when someone check one of there, then bot press DOWN