Demete Posted September 23, 2014 Share Posted September 23, 2014 Hello, Is that possible to get pixel color from a window(for example Calculator) if its not minimized but its covered with an other window? thank you Link to comment Share on other sites More sharing options...
caramen Posted September 23, 2014 Share Posted September 23, 2014 (edited) no edit : or i guess it is maybe possible with dll include but i dont got that level to help you Edited September 23, 2014 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Bert Posted September 23, 2014 Share Posted September 23, 2014 Whats the name of the application? There is usually MUCH better ways than PixelGetColor to do what you have in mind. Using pixel searching is the worst way to interact with an application. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Demete Posted September 23, 2014 Author Share Posted September 23, 2014 Actually i want to read pixel pattern, i just dont know where to sart, I am novice Like if I type 5 to calculator, i want to my program recognize its pattern by pixels, and return me that number. Link to comment Share on other sites More sharing options...
Bert Posted September 23, 2014 Share Posted September 23, 2014 Actually i want to read pixel pattern, i just dont know where to sart, I am novice Like if I type 5 to calculator, i want to my program recognize its pattern by pixels, and return me that number. Why do you wish to read a pixel pattern? As I said before, Pixel searching is horrible in automating an application or reading controls. Seeing how you reference calculator in your post, you can simply read the output field of the Calculator application. However I know you do NOT want to read calculator so no point going down that path. I asked you the name of the application. Currently your being evasive in your response. So... I will ask you again - the name of the application please. You obviously want to automate something specific. If you are forthcoming in what you want to do and not "beat around the bush" we can help you in short order. Thanks. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jdelaney Posted September 23, 2014 Share Posted September 23, 2014 (edited) I'd be willing to bet this is game automation...but just to answer his one valid question: Run("calc.exe") $hWin = WinWait("[CLASS:CalcFrame]") WinActivate($hWin) ;click 5 ControlClick($hWin,"",135) ;Get '5' from the screen $text = ControlGetText($hWin,"",150) ConsoleWrite($text&@CRLF) ^ doesn't matter if this is hidden, or visible...no pixels search, so good to go Edited September 23, 2014 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Bert Posted September 25, 2014 Share Posted September 25, 2014 Seeing how the OP did not post a response, I bet you're right. The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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