eyalsemo1 Posted August 2, 2016 Share Posted August 2, 2016 Hi all I'm using 2 screens for using _ScreenCapture_Capture to capture full sceen to jpg.how can I capture the secondary screen ? TNX Link to comment Share on other sites More sharing options...
InunoTaishou Posted August 2, 2016 Share Posted August 2, 2016 You'll have to define the area to capture yourself. I had a problem with @DesktopWidth and @DesktopHeight not working on my setup at home because my second monitor was in negative coordinates. This function should give you the coordinates, returning a struct. ; Get the Virutal screen x, y, width and height (supports getting the x, y, width, and height of computers with multiple monitors) Func GetDesktopMetrics() Return _GDIPlus_RectFCreate(_WinAPI_GetSystemMetrics($SM_XVIRTUALSCREEN), _WinAPI_GetSystemMetrics($SM_YVIRTUALSCREEN), _ _WinAPI_GetSystemMetrics($SM_CXVIRTUALSCREEN), _WinAPI_GetSystemMetrics($SM_CYFULLSCREEN)) EndFunc ;==>GetDesktopMetrics Link to comment Share on other sites More sharing options...
eyalsemo1 Posted August 3, 2016 Author Share Posted August 3, 2016 TNX it seems that i'm missing somthing I have included: #include <GDIPlus.au3> #include <ScreenCapture.au3> #Include <File.au3> #Include <Array.au3> #include <GUIConstants.au3> and yet I'm getting $SM_XVIRTUALSCREEN... used before declaration Eyal Link to comment Share on other sites More sharing options...
eyalsemo1 Posted August 3, 2016 Author Share Posted August 3, 2016 never mind I have found the solution by reading "multiple monitors" topics thank you very much 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