DeathRow Posted April 18, 2012 Posted April 18, 2012 (edited) How can I search for a certain color in a background or masked window by other windows( no minimized ), and get the color's relative window's coordinates ?? Is it possible ? I appreciate any help.... Edited April 20, 2012 by DeathRow
Bert Posted April 18, 2012 Posted April 18, 2012 It is better to simply look at the controls of the application. The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 It is better to simply look at the controls of the application.You better didn't answer...I don't want to click anything ! I want to know the position of a certain image while the window is masked by other windows or minimized.Thanks for your high quality post
somdcomputerguy Posted April 18, 2012 Posted April 18, 2012 PixelSearch will not work on a program that is minimized or not visible. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 PixelSearch will not work on a program that is minimized or not visible.Yes,I observed, and even if is masked by other window it won't work.Pretty bad But is there any UDF for AutoIt that could do this ?Or the API from MSDN ? I don't know how to search there...
Bert Posted April 18, 2012 Posted April 18, 2012 do the images move around? The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 No, its a simple static window. I can make the window to show up and make it transparent, so I could use that thing....to capture a bitmap of the window, and to search there for the specific pixel,no ?Finded relating threads but I don't know how it works http://autoitscript.com/forum/topic/63318-get-or-read-pixel-from-memory-udf-pixelgetcolor-au3/
Bert Posted April 18, 2012 Posted April 18, 2012 (edited) If it is a simple static window then are there controls on the window? Second, is it a standard window or a custom type such as a java window? what happens when you use the AutoIt Window info tool on the window in question? Edited April 18, 2012 by Bellicus The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 (edited) 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
Bert Posted April 18, 2012 Posted April 18, 2012 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 (edited) 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 Edited April 18, 2012 by DeathRow
Bert Posted April 18, 2012 Posted April 18, 2012 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 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_IEImgGetCollectionlook 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 )I can use only Firefox lol, so I need to adapt for it ...
Bert Posted April 18, 2012 Posted April 18, 2012 Why can't you use IE? It is built into windows. Does your location or who owns the machine block you? The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 18, 2012 Author Posted April 18, 2012 Why can't you use IE? It is built into windows. Does your location or who owns the machine block you?Unfortunetly...yes..( Thats why I cant use itBut please I don't want to deviate from the subject, How can I search for a specific pixel color in a background hidden window ??
Bert Posted April 19, 2012 Posted April 19, 2012 (edited) 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. Edited April 19, 2012 by Bellicus The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 19, 2012 Author Posted April 19, 2012 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.
MrMitchell Posted April 19, 2012 Posted April 19, 2012 (edited) 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
Bert Posted April 19, 2012 Posted April 19, 2012 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.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? The Vollatran project My blog: http://www.vollysinterestingshit.com/
DeathRow Posted April 19, 2012 Author Posted April 19, 2012 (edited) 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 Edited April 19, 2012 by DeathRow
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