TheScarletDevil Posted December 4, 2011 Share Posted December 4, 2011 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 Link to comment Share on other sites More sharing options...
clicked Posted December 4, 2011 Share Posted December 4, 2011 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. Link to comment Share on other sites More sharing options...
TheScarletDevil Posted December 4, 2011 Author Share Posted December 4, 2011 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 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 5, 2011 Share Posted December 5, 2011 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 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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