Search the Community
Showing results for tags '_screencapture_capture'.
-
#include <ScreenCapture.au3> Local $hBmp ; Capture full screen $hBmp = _ScreenCapture_Capture("") _ScreenCapture_SaveImage("C:\Software\autoitscripts\scripts\images\prp\ocr\"&"ocr_01.PNG",$hBmp) Sleep(1000) _ScreenCapture_Capture("C:\Software\autoitscripts\scripts\images\prp\ocr\"&"ocr_02.PNG") Sleep(1000) ShellExecute("C:\Software\autoitscripts\scripts\images\prp\ocr\"&"ocr_01.PNG") Sleep(1000) ShellExecute("C:\Software\autoitscripts\scripts\images\prp\ocr\"&"ocr_02.PNG") Hi All, This is my first post and I have checked the forum. If this question has been asked and answered I apologise. The code above is intended to save the whole screen to a directory; it doesn't work. I have downloaded and copied and renamed the files referenced in https://www.autoitscript.com/forum/topic/192254-33143-fixes/ to my includes directory. Clearly there is some step that I am missing; do I need to download and register a dll? I know that I am using two different methods above but neither works for me.
- 5 replies
-
- screencapture
- _screencapture_saveimage
-
(and 1 more)
Tagged with:
-
If I set the transparency with WinSetTrans, screenshot can't be made. This is Windows 7 related. Win 10 works fine Run the attached file #include <ScreenCapture.au3> ;GUI1 $gui1 = GUICreate("gui1", 200, 200, 200, 200) GUICtrlCreateLabel("GUI 1 LABEL", 50, 50 ) GUISetState() ;GUI 2 with transparency is completely ignored by _ScreenCapture_Capture $gui2 = GUICreate("gui1", 200, 200, 200, 200, -1, -1, $gui1) GUICtrlCreateLabel("GUI 2 LABEL", 100, 100 ) GUISetState() WinSetTrans($gui2, "", 150) Sleep(2000) _ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image1.jpg", 200, 200, 405, 410) ShellExecute(@MyDocumentsDir & "\GDIPlus_Image1.jpg") As you can see, the semi transparent window will not be visible in the screenshot. I noticed that a couple of screen recording tools are acting the same. (But there are those that do work) I tried different ways on getting the screenshot and none worked. Printscreen does work. Is there a way to solve this without using Printscreen? ScreenCaptureProblem.au3
-
I would like to get a region of the screen but avoiding having to save to a file first. I believe it is a lack of knowledge on my part but the GUICtrlSetImage function does not allow you to define an image without being a file. How to do this: ;.... $Pic3 = GUICtrlCreatePic("", 8, 64, 84, 84, -1, _ $WS_EX_STATICEDGE) ;para ter borda em baixo relevo ;.... _ScreenCapture_Capture(@ScriptDir & "\areatemp.jpg", 10, 10, 200, 200) GUICtrlSetImage($Pic3, @ScriptDir & "\areatemp.jpg") ;....
-
i'm trying to use _ScreenCapture_Capture($sFileName) to cature full screen and save as a jpg file, but it always only capture the left-top about 3/4 area. but the print screen keyboard woks fine. and if i changed the display resolution from 150% to 100%, the jpg file is OK as well. so the issue only occurred when resolution is 150%. is there anybody know why or how to change resolution percentage by scripts? Thanks.
- 5 replies
-
- _screencapture_capture
- screenshot
-
(and 1 more)
Tagged with: