Jump to content

how to make _ScreenCapture_Capture() adapt 1920*1080? but it works well with 1366*768


Go to solution Solved by mistersquirrle,

Recommended Posts

  • jacky998877 changed the title to how to make _ScreenCapture_Capture() adapt 1920*1080? but it works well with 1366*768

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 by mistersquirrle

We ought not to misbehave, but we should look as though we could.

Link to comment
Share on other sites

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 by jacky998877
Link to comment
Share on other sites

  • Solution

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:

We ought not to misbehave, but we should look as though we could.

Link to comment
Share on other sites

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:

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

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

 

I know that I know nothing

Link to comment
Share on other sites

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
 

222.png

Link to comment
Share on other sites

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:

the problem is indeed the scaling, which i didnt even pay attention formerly , thx for the help ☺️

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...