Jump to content

PixelGetColor from a not visible window


Demete
 Share

Recommended Posts

no

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

Edited 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 - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
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.

Link to comment
Share on other sites

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...