pintas Posted January 22, 2010 Posted January 22, 2010 I've a program that displays the content of an external device in one single image on the program window. Is there a way to retrieve that single image regardless of the screen resolution? I need to use my script in different desktops, and some with different resolutions. Any ideas please? Thank you.
Mat Posted January 22, 2010 Posted January 22, 2010 A control handle is the same as a window handle, so you can use it as a parameter for _ScreenCapture_CaptureWnd. _ScreenCapture_CaptureWnd(@ScriptDir & "\Img.jpg", ControlGetHandle("Window Title", "", "Control1")) Mat AutoIt Project Listing
pintas Posted January 22, 2010 Author Posted January 22, 2010 Thanks Mat, but somehow, it only takes a screenshot of a very small portion on the image :S Weird.
martin Posted January 22, 2010 Posted January 22, 2010 Thanks Mat, but somehow, it only takes a screenshot of a very small portion on the image :S Weird.Maybe ControlGetPos and take a screen shot of that area after using _WinAPI_ClientToScreen. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
pintas Posted January 22, 2010 Author Posted January 22, 2010 Well, that sounds complicated But i promise to try. Thanks Martin. I'll keep you guys posted on the results.
pintas Posted January 25, 2010 Author Posted January 25, 2010 (edited) Ok, you can just call me an idiot... i just found out the image doesn't change coordinates just because i change the screen res. Edited January 25, 2010 by pintas
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