Jump to content
Sign in to follow this  
TheScarletDevil

Client Window seems Invisible with pixelsearch

Recommended Posts

TheScarletDevil

hello everyone,

i made a script that on my windows7 pc that uses pixelgetcolor and pixelsearch ect. it works fine.

but when i launch it on my windows xp laptop the client window i want to search pixels in, is totaly ignored.

i used the AutoIt info tool on the client window and this also returns not the colors from the window, but the colors of my wallpaper (or whatever is behind the client window).

enable/disable cleartype did not help.

i googled and read something about api and refresh rate, but it wasnt quiet understandable because it was related to other problems.

i hope anyone can help me, thank you

Share this post


Link to post
Share on other sites
clicked

I have seen this before, I ended up saving a screenshot of the dialog (using the dialog's hwin) to the clipboard, which can then be saved to file. I have not tried doing in-memory clipboard stuff, but I would presume that works.

Share this post


Link to post
Share on other sites
TheScarletDevil

thanks for the answer

this method is an idea, however it would mean huge performance cost and slow things down.

i still hope someone out there knows a simple fix :D

Share this post


Link to post
Share on other sites
AdmiralAlkex

It would actually increase the speed, as accessing ram is many times faster than reading from "screen". That is, unless you take a new screenshot for every operation. Reuse is key.

Example: Get or Read Pixel from Memory UDF

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.