phipe Posted July 30, 2022 Posted July 30, 2022 hi Team, i try to capture the specific range of destop, but don't know why _ScreenCapture_Capture doesn't return the correct picture (e.g. i am try to capture 0, 0, 800, 800, but it only capture 0, 0, 300, 300). i used WinGetPos("") to test the screen, it returns: - 6, -6, 1459, 837 (x, y, wide, high), could anyone help, thank you! i am using: 1. Win 10 Pro 2. Autoit Version v3.3.16.0 ;_ScreenCapture_Capture(@ScriptDir & "\RIAsScreenShoot\" & $aResult[$iA] & ".jpg", 0, 0, 800, 800) ;_ScreenCapture_Capture(@ScriptDir & "\RIAsScreenShoot\" & $aResult[$iA] & ".jpg")
Deye Posted July 30, 2022 Posted July 30, 2022 phipe, Have you tried to compare what's working versus what's not working, or have you? For instance, try with a previous version of autoit v3.3.14.5
junkew Posted July 31, 2022 Posted July 31, 2022 Number of monitors? Whats the output of the help file examples? Did you try bmp file? ... FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
ioa747 Posted July 31, 2022 Posted July 31, 2022 check in Scale and layout configuration If it is 100% I know that I know nothing
phipe Posted July 31, 2022 Author Posted July 31, 2022 @Deye Indeed, i upgrade from previous version (installed in 2021, forgot to check version number) to latest version due to this issue. Thank you! @junkew i am using notebook computer, only one monitor, sorry, don't know how to try BPM file, i am finance background, only know how to apply basic autoit3 functions. The example script from help file shows the same issue, seems _screencapture doesn't work on my PC, Thank you! @ioa747 could you guide me how to check scale and layout configuration. Thank you!
Solution ioa747 Posted July 31, 2022 Solution Posted July 31, 2022 right click on desktop and point to display setting then you find it. I know that I know nothing
phipe Posted August 2, 2022 Author Posted August 2, 2022 @ioa747 Thank you, my scale and display is 250%, i think this is the issue come from, but i can't change it to 100%, the screen will become very small.
ioa747 Posted August 2, 2022 Posted August 2, 2022 But you can check it if the problem is solved or is something else 😉 I know that I know nothing
ioa747 Posted August 2, 2022 Posted August 2, 2022 But it is definitely to blame for the huge photo that you post I know that I know nothing
phipe Posted August 3, 2022 Author Posted August 3, 2022 @ioa747Thank you, my issue solved if i change it to 100%. But 😥 seems i can't change it to 100%, the desktop become too small to read. Anyway, thank you so much!!!
junkew Posted August 3, 2022 Posted August 3, 2022 ioa747 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
ioa747 Posted August 3, 2022 Posted August 3, 2022 (edited) junkew Thanks for en-lighting with a few words that is all they need #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_HiDpi=Y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** If Not (@Compiled ) Then DllCall("User32.dll","bool","SetProcessDPIAware") Edited August 3, 2022 by ioa747 junkew 1 I know that I know nothing
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