Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

[SOLVED/TICKET] _Capture wrong size

$
0
0
Hi all, this is an example script:
[ autoit ]      
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ScreenCapture.au3> $hGUI = GUICreate("", 200, 200, -1, -1) $Button = GUICtrlCreateButton("Click", 64, 80, 105, 41) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button _ScreenCapture_Capture(@ScriptDir & "\Test_1.jpg", 0, 0, -1, -1, True) $hJpg = _ScreenCapture_Capture("") _ScreenCapture_SaveImage(@ScriptDir & "\Test_2.jpg", $hJpg) EndSwitch WEnd

All the parameter are to default, both method but is the same result:
The finale image has 1 pixel more then the real desktop size, so if the desktop is 1024-768, the image is 1025x769

I don't want to say that word so i'll think it :D

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>