wolf9228 Posted March 7, 2013 Author Share Posted March 7, 2013 Here a short AVI to show you the mouse coordinates when you have a second monitor to the left of the main monitor!ScreenCaptureEx_20130307_130509_.aviBr,UEZThank UEZ صرح السماء كان هنا Link to comment Share on other sites More sharing options...
wolf9228 Posted March 7, 2013 Author Share Posted March 7, 2013 UEZ is right... http://msdn.microsoft.com/en-us/library/dd145136%28v=vs.85%29.aspx #include <WinApi.au3> ; The Virtual Screen ; http://msdn.microsoft.com/en-us/library/dd145136%28v=vs.85%29.aspx ; GetSystemMetrics ; http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385%28v=vs.85%29.aspx Global Const $SM_XVIRTUALSCREEN = 76 ; The coordinates for the left side of the virtual screen. Global Const $SM_YVIRTUALSCREEN = 77 ; The coordinates for the top of the virtual screen. Global Const $SM_CXVIRTUALSCREEN = 78 ; The width of the virtual screen, in pixels. Global Const $SM_CYVIRTUALSCREEN = 79 ; The height of the virtual screen, in pixels. MsgBox(0, "", _WinAPI_GetSystemMetrics($SM_XVIRTUALSCREEN) & "x" & _WinAPI_GetSystemMetrics($SM_YVIRTUALSCREEN) & @CRLF & _WinAPI_GetSystemMetrics($SM_CXVIRTUALSCREEN) & "x" & _WinAPI_GetSystemMetrics($SM_CYVIRTUALSCREEN)) Thank KaFu صرح السماء كان هنا 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