Share this post

Link to post

Share on other sites

DeathRow 1

DeathRow 1

Well I need to find certain colors in an image and to get the coordinates of them. I don't need any controls or buttons... and is a standard image.

And when I use AWindow Tool its finding the color

Thankyou for replies ... and I was looking towards the method of capturing a bitmap of the window in memory and to search invisible on that bitmap the position of the pixel I want to find = > finding the pixel on a hidden window

Edited April 18, 2012 by DeathRow

Share this post

Link to post

Share on other sites

Bert 1,250

Bert 1,250

Your not making sense. You say "I need to find certain colors in an image and to get the coordinates of them" and say at the same time it is a static window. If it is static then why do you need to search for certain colors? Static means the image doesn't change. You imply the image changes. Does the image change? Either way would you care to share a screenshot of the image you are dealing with? That would make it much easier to see what we are dealing with.

Share this post

Link to post

Share on other sites

DeathRow 1

DeathRow 1

Your not making sense. You say "I need to find certain colors in an image and to get the coordinates of them" and say at the same time it is a static window. If it is static then why do you need to search for certain colors? Static means the image doesn't change. You imply the image changes. Does the image change? Either way would you care to share a screenshot of the image you are dealing with? That would make it much easier to see what we are dealing with.

O sorry I didn't know the real difference Its a webbrowser window and I want to download many photos while hidden to not interference with my usual activity like playing a game. But the images aren't moving, the browser's window is sometimes increasing or decreasing in dimention. So everytime I need to ckeck for a certain color and get the coordinates while hidden or minimized

Share this post

Link to post

Share on other sites

Bert 1,250

Bert 1,250

That makes more sense. There is a different approach that would work much better for you seeing how you are downloading pictires. If you look at IE.au3 you can get all the pictures using

_IEImgGetCollection

look in the help file and you can see an example of how to get a collection. It would be a simple matter of downloading the images once you get the collection. That way you don't need to worry about the IE window interfering with anything else you are doing.

Share this post

Link to post

Share on other sites

DeathRow 1

DeathRow 1

That makes more sense. There is a different approach that would work much better for you seeing how you are downloading pictires. If you look at IE.au3 you can get all the pictures using

_IEImgGetCollection

look in the help file and you can see an example of how to get a collection. It would be a simple matter of downloading the images once you get the collection. That way you don't need to worry about the IE window interfering with anything else you are doing.

I forgot to mention that I can't use IE or Google Chrome and can't install that plug-in for FireFox to work with the UDF because of good reasons ( long story....but trust me I can't )

Share this post

Link to post

Share on other sites

DeathRow 1

DeathRow 1

Then we can't help you for we will not be a part of you trying to evade or bypass security. Either use it for legit reasons with the owner's blessing or don't do it at all. Your choice.

What do you mean by bypass security ? What security ??

You didn't understand what Im asking for, I want to know how can I find a pixel color in a background window, the same subject was posted in other threads too but I don't know how to apply it, I appreciate if anyone could help me.

Share this post

Link to post

Share on other sites

MrMitchell 15

MrMitchell 15

You didn't understand what Im asking for, I want to know how can I find a pixel color in a background window, the same subject was posted in other threads too but I don't know how to apply it, I appreciate if anyone could help me.

Manadar's (and Greenseed's) example.au3 and _PixelGetColor.au3 provide working example of how to basically take a screenshot to memory then pixelsearch it. You've previously linked to it, here it is again. After reading about it then running it, seems to work fine for me. You need to temporarily bring up the window to search so you can get a screenshot, then hide the window, then you can search the screenshot later on in your script. For me I brought Firefox to the foreground-maximized, took the "screenshot", then hid the Firefox window again. I then searched the 10x10 pixel box in the top left corner (starting at 0,0) for the color 0xDCCEBF and found it at several locations: 0,3; 1,3; and 2,3.

Edited April 19, 2012 by MrMitchell

Share this post

Link to post

Share on other sites

Bert 1,250

Bert 1,250

You didn't understand what Im asking for, I want to know how can I find a pixel color in a background window, the same subject was posted in other threads too but I don't know how to apply it, I appreciate if anyone could help me.

You said yes to this question: "Does your location or who owns the machine block you?"

Share this post

Link to post

Share on other sites

DeathRow 1

DeathRow 1

You said yes to this question: "Does your location or who owns the machine block you?"

That means you are trying to get past a security measure.

Understand now?

Yes I said that, and its true, but you understand me wrong, its my computer and my parents blocked my computer with limited user account( they are paranoid ) and they say to not use IE and uninstalled it and with limited access I cant install it so I really need to do it on the default browser ff

Hello
i have searched a lot about how to run external programs with the administrator privileges without the script running with administrator privileges using autoit
But all my attempts failed
Finally, today I found the VBS function doing this task
I immediately transferred it to our beloved language (autoit) and i decided to share it with you
i hope you like it
This is a simple example about how to use the function

Howdy, I've gone through a lot of au3 forums, and I once had a working Imagesearch script that I got from here. However, and i'm just totally not sure how but my imagesearch scripts aren't working anymore.
I'm not new to au3 but i'm not the most experienced with it's syntax/commands.

Anyways, I've looked over the big threads involving imagesearch.

Does anyone have a working Imagesearch x64 for win10 that is currently working as of the date with the post.

Dll's and what not is fine, just when I tell the script to run, I want to be able to find the image on the screen!
Can't find a working copy so if anyone has one please send it my way lol.

I've taken all the imagesearch downloads and what not and have played with them but I can't get any of them working on my end, despite others saying they're working.
Thanks.

Changelog:
10/04/2016 (v0.4):
_WinGetClassNNList Fixed : Not Returning an Index when using $2D_ARRAY
_WinGetClassNNList Fixed : Not Properly returning $aArray[x][1] on Classes with instances > 9 when using $2D_ARRAY
10/03/2016 (v0.3):
_WinGetClassList Added : Exactly the same as WinGetClassList but returns a more civilized Array
_WinGetClassNNList Added : Returns Classes and their instances in either a 1D or 2D array depending on Flags
_WindowGetHandleList Renamed: _WinGetHandleList SCRIPT BREAKING!
_WindowGetHandleListFromPos Renamed: _WinGetHandleListFromPos SCRIPT BREAKING!
10/01/2016 (v0.2):
WindowsExConstants.au3 Added : Flags in _WindowGetHandleListFromPos
_WindowGetHandleListFromPos Removed: ConsoleWrite left in during debug
_WindowGetHandleListFromPos Added : Flag for if part of a Control is at $X, $Y return it as well.
10/01/2016 (v0.1):
_WindowGetHandleList Added : Retrieves the handles of classes from a window.
_WindowGetHandleListFromPos Added : Retrieves the handles of classes at a specific position from a window.
Known and Reported Bugs:
None reported
To Do:
To Be Decided. Opinions welcome!
Upcoming Changes:
To Be Decided.