Sign in to follow this  
Followers 0
Demete

PixelGetColor from a not visible window

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

no

edit : or i guess it is maybe possible with dll include but i dont got that level to help you

Edited by caramen

Share this post


Link to post
Share on other sites

Actually i want to read pixel pattern, i just dont know where to sart, I am novice  :ermm:

Like if I type 5 to calculator, i want to my program recognize its pattern by pixels, and return me that number.

Share this post


Link to post
Share on other sites

Actually i want to read pixel pattern, i just dont know where to sart, I am novice  :ermm:

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.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 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.

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