jacky998877 Posted February 23, 2023 Share Posted February 23, 2023 (edited) it cant capture the correct area that i defined when the resolution is 1920*1080 Edited February 23, 2023 by jacky998877 Link to comment Share on other sites More sharing options...
mistersquirrle Posted February 23, 2023 Share Posted February 23, 2023 (edited) Show the code that you're using that's not working, so we can see what you've tried. I can use _ScreenCapture_Capture at 1920x1080 no problem: #include <ScreenCapture.au3> _ScreenCapture_Capture(@ScriptDir & '\meow.bmp', 0, 0, 1920, 1080, True) Exit Edit: Above is on a monitor that's 3440x1440, I also tried on a 1080p monitor (-1920, 0, 0, 1080), no problems Edited February 23, 2023 by mistersquirrle We ought not to misbehave, but we should look as though we could. Link to comment Share on other sites More sharing options...
jacky998877 Posted February 23, 2023 Author Share Posted February 23, 2023 (edited) 3 hours ago, mistersquirrle said: Show the code that you're using that's not working, so we can see what you've tried. I can use _ScreenCapture_Capture at 1920x1080 no problem: #include <ScreenCapture.au3> _ScreenCapture_Capture(@ScriptDir & '\meow.bmp', 0, 0, 1920, 1080, True) Exit Edit: Above is on a monitor that's 3440x1440, I also tried on a 1080p monitor (-1920, 0, 0, 1080), no problems thx for participation, the problem is my system, when i use other capturing software to test it , as long as it is 1920 1080, the screen will be amplified for unknown reason Edited February 23, 2023 by jacky998877 Link to comment Share on other sites More sharing options...
Solution mistersquirrle Posted February 23, 2023 Solution Share Posted February 23, 2023 I'm not sure what you mean by amplified. Sounds like that it's not an AutoIt problem, then? Have you tried checking your windows scaling size? Check out these links: View display settings in Windows: https://support.microsoft.com/en-us/windows/view-display-settings-in-windows-37f0e05e-98a9-474c-317a-e85422daa8bb Windows scaling issues for high-DPI devices: https://support.microsoft.com/en-us/topic/windows-scaling-issues-for-high-dpi-devices-508483cd-7c59-0d08-12b0-960b99aa347d We ought not to misbehave, but we should look as though we could. Link to comment Share on other sites More sharing options...
jacky998877 Posted February 24, 2023 Author Share Posted February 24, 2023 14 hours ago, mistersquirrle said: I'm not sure what you mean by amplified. Sounds like that it's not an AutoIt problem, then? Have you tried checking your windows scaling size? Check out these links: View display settings in Windows: https://support.microsoft.com/en-us/windows/view-display-settings-in-windows-37f0e05e-98a9-474c-317a-e85422daa8bb Windows scaling issues for high-DPI devices: https://support.microsoft.com/en-us/topic/windows-scaling-issues-for-high-dpi-devices-508483cd-7c59-0d08-12b0-960b99aa347d it seems that it can be solved programmatically if one knows how, for example , if i use lightshot to capture the screen, even if it is 1920 1080, no amplification will occur Link to comment Share on other sites More sharing options...
ioa747 Posted February 24, 2023 Share Posted February 24, 2023 try this to see if everything is in its expected position, maybe you can draw a conclusion ;Get DeskTop size Local $DTs = WinGetPos("[CLASS:Shell_TrayWnd]") ConsoleWrite("TaskBar:" & @CRLF & "X=" & $DTs[0] & " Y=" & $DTs[1] & " W=" & $DTs[2] & " H=" & $DTs[3] & @CRLF & @CRLF) ConsoleWrite("DeskTop:" & @CRLF & "Width:" & $DTs[2] & " Height:" & $DTs[1] + $DTs[3] & @CRLF) ;~ TaskBar: ;~ X=0 Y=1040 W=1920 H=40 ;~ ; ;~ DeskTop: ;~ Width:1920 Height:1080 jacky998877 1 I know that I know nothing Link to comment Share on other sites More sharing options...
jacky998877 Posted February 24, 2023 Author Share Posted February 24, 2023 4 minutes ago, ioa747 said: try this to see if everything is in its expected position, maybe you can draw a conclusion ;Get DeskTop size Local $DTs = WinGetPos("[CLASS:Shell_TrayWnd]") ConsoleWrite("TaskBar:" & @CRLF & "X=" & $DTs[0] & " Y=" & $DTs[1] & " W=" & $DTs[2] & " H=" & $DTs[3] & @CRLF & @CRLF) ConsoleWrite("DeskTop:" & @CRLF & "Width:" & $DTs[2] & " Height:" & $DTs[1] + $DTs[3] & @CRLF) ;~ TaskBar: ;~ X=0 Y=1040 W=1920 H=40 ;~ ; ;~ DeskTop: ;~ Width:1920 Height:1080 this is from your code : +>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop. TaskBar: X=0 Y=680 W=1280 H=40 DeskTop: Width:1280 Height:720 +>20:52:34 AutoIt3.exe ended.rc:0 +>20:52:34 AutoIt3Wrapper Finished. >Exit code: 0 Time: 1.089 the attachment picture is from my system, when i observe it closely, there is a scale option, it might be the answer Link to comment Share on other sites More sharing options...
jacky998877 Posted February 24, 2023 Author Share Posted February 24, 2023 19 hours ago, mistersquirrle said: I'm not sure what you mean by amplified. Sounds like that it's not an AutoIt problem, then? Have you tried checking your windows scaling size? Check out these links: View display settings in Windows: https://support.microsoft.com/en-us/windows/view-display-settings-in-windows-37f0e05e-98a9-474c-317a-e85422daa8bb Windows scaling issues for high-DPI devices: https://support.microsoft.com/en-us/topic/windows-scaling-issues-for-high-dpi-devices-508483cd-7c59-0d08-12b0-960b99aa347d the problem is indeed the scaling, which i didnt even pay attention formerly , thx for the help ☺️ 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