Modify

Opened 11 years ago

Closed 11 years ago

#2689 closed Bug (Fixed)

_ScreenCapture_Capture Error

Reported by: someonecool12@… Owned by: guinness
Milestone: 3.3.11.4 Component: Standard UDFs
Version: Other Severity: None
Keywords: Cc:

Description

_ScreenCapture_Capture crashes when computer is locked or no mouse is connected.

The error received is:
"C:\Program Files (x86)\AutoIt3\Include\ScreenCapture.au3" (60) : ==> Subscript used on non-accessible variable.:
If $aCursor[1] Then
If $aCursor ERROR

To reproduce the problem, use this code and lock the computer

#Include <ScreenCapture.au3>
Sleep(10000)
;Lock your workstation during the sleep
_ScreenCapture_Capture("C:\test.jpg")

Changing line 60 to the following solves the problem:

If @error = 0 And $aCursor[1] Then

I noticed that Bug 1040 had added some error handling, but it was removed. I wasn't sure if I should re-open Bug 1040 for this.
http://www.autoitscript.com/trac/autoit/ticket/1040

Forum discussion:
http://www.autoitscript.com/forum/topic/160026-screencapture-capture-error/

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by TicketCleanup

  • Version set to Other

Automatic ticket cleanup.

comment:2 Changed 11 years ago by guinness

  • Milestone set to 3.3.11.4
  • Owner set to guinness
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [9974] in version: 3.3.11.4

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 guinness.
Author


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

 
Note: See TracTickets for help on using tickets.