Hi all, this is an example script:
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
[ 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](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/biggrin.png)