Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 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 11 years ago.
Screenshot of the screencapture error message.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Moto

Screenshot of the screencapture error message.

comment:1 Changed 11 years ago by Gary

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 follow-up: Changed 11 years ago by Gary

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

Do you have it installed?

comment:3 Changed 11 years ago by Gary

  • Resolution set to nobug
  • Status changed from new to closed

comment:4 in reply to: ↑ 2 Changed 11 years ago by Moto

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Gary.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.