INSI

Want to ImageSearch In specific Windows. how?

4 posts in this topic

i Want to image search a specific window not in desktop or not the full screen can anyone help me with a example and i am new to autoit

Share this post


Link to post
Share on other sites



Hi, @INSI welcome to the forum. There are literally dozens of example of ImageSearch  to be found on the forum if you use that neat little Search button at the top of the page. If you have searched and are not finding what you need, you need to provide some more information. What kind of window? What kind of image are you looking for? How about screenshots? What have you tried on your own (post your code)? What isn't working? Are you getting an error? The answers to all of these questions will help us help you. At present you have us trying to guess at what you're doing, and then help you troubleshoot the issue. ;)

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

There is a nice func named _ImageSearchArea ... sounds good, eh ?
Now please read JLogan's post again - particularly the first line  :)

Share this post


Link to post
Share on other sites
#include <ImageSearch.au3>
WinActivate("BlueStacks App Player","")
;ControlClick("BlueStacks App Player", "", "", "left", "1", 16, 289)
$X = 0
$Y = 0
$Search = _ImageSearchArea('smal.bmp', 1, 1, 629, 806, 629, $X, $Y, 50)
    if $search = 1 Then
    ControlClick("BlueStacks App Player", "", "", "left", "1", $X, $X)
    EndIf

While 1
    Sleep(100)
    WEnd

this is what i got so far and any one that can help.

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