Opened 10 years ago

Closed 10 years ago

#2689 closed Bug (Fixed)

_ScreenCapture_Capture Error

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


_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>
;Lock your workstation during the sleep

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.

Forum discussion:

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by TicketCleanup

  • Version set to Other

Automatic ticket cleanup.

comment:2 Changed 10 years ago by guinness

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

Fixed by revision [9974] in version:

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

as closed The owner will remain guinness.

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

Note: See TracTickets for help on using tickets.