Sign in to follow this  
Followers 0
rob2499

The function minimized imageSearch?

1 post in this topic

#1 ·  Posted (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 by rob2499

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0