Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#91 closed Bug (No Bug)

"_ScreenCapture_CaptureWnd" does not work on Win2k

Reported by: Moto Owned by: Gary
Milestone: Component: Standard UDFs
Version: 3.2.10.0 Severity:
Keywords: ScreenCapture Cc:

Description

When I try to use "_ScreenCapture_CaptureWnd" function defined in "ScreenCapture.au3" on Windows 2000 OS, it produces following error

---------------------------
Fatal Error
---------------------------
AVector: []: Out of bounds.
---------------------------
OK   
---------------------------

However if I try the same thing on Windows XP, it takes screenshot properly.
Following is the script which I run.

#include<ScreenCapture.au3>
_ScreenCapture_CaptureWnd("test.bmp", WinGetHandle(""))

I faced this problem in AutoIt version "3.2.10.0"

Attachments (1)

screencapture.png (10.9 KB ) - added by Moto 18 years ago.
Screenshot of the screencapture error message.

Download all attachments as: .zip

Change History (5)

by Moto, 18 years ago

Attachment: screencapture.png added

Screenshot of the screencapture error message.

comment:1 by Gary, 18 years ago

Does the example in the help file work or give you an error also?

This example:

#include <ScreenCapture.au3>

_Main()

Func _Main()
   Local $hGUI

   ; Create GUI
   $hGUI = GUICreate("Screen Capture", 400, 300)
   GUISetState()

   ; Capture window
   _ScreenCapture_CaptureWnd (@MyDocumentsDir & "\GDIPlus_Image.jpg", $hGUI)

EndFunc   ;==>_Main

comment:2 by Gary, 18 years ago

Forgot because Win2k doesn't have GDIPlus included you have to install it.

Do you have it installed?

comment:3 by Gary, 18 years ago

Resolution: nobug
Status: newclosed

in reply to:  2 comment:4 by Moto, 18 years ago

Do you have it installed?

No I did not install it. And now I checked it does work for both Au3 script and the compiled executable with the dll.
Forgot to check "GDIPlus.au3".
Thanks.

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.