rob2499 Posted November 21, 2010 Share Posted November 21, 2010 (edited) Hello. I have this code: #include <ImageSearch.au3> Global $x, $y Global $begin = 0 HotKeySet("{END}", "koniec") While 1 $kontuacja = _ImageSearch("1.png", 1, $x, $y, 20) $test = _ImageSearch("3.png", 1, $x, $y, 20) If $kontuacja = 1 Then ;teraz sprawdzimy czy obrazek jest obecny przez 10 sekund Send("{ENTER}") Sleep(100) Send("{ENTER}") EndIf If $test = 1 Then If $begin <> 0 Then ;jesli licznik juz jest $diff = TimerDiff($begin) ;wyciaga roznice czasu If $diff > 10 * 1000 Then ;jesli roznica jest wieksza niz 10 sekund Send("{ENTER}") Sleep(100) Send("{ENTER}") $begin = 0 ;zeruje zmienna EndIf Else $begin = TimerInit() ;w przeciwnym wypadku, gdy licznik nie istnieje, tworzy go EndIf EndIf Sleep(100) WEnd Func koniec() Exit EndFunc ;==>koniec And the question is whether the functions it is possible to replace imageSearch some other function that works on a minimized window? On mpcforum I found this information: I do not know what it is the case with flash because it will never go into details but it certainly simple pictures (jpg, bmp, etc) can go to standard pixels anywhere without displaying the page. Standard Autoit most basic functions allow to find pictures not only names but also the sizes, dates, etc. ..So I say enough already, the pictures are 3.png 1.png and the windows of the game, which showing up. Is By making use addresses / names of these windows I am able to replace the functions imageSearch? Sory for my bad english! Edited November 21, 2010 by rob2499 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now