Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3601 closed Bug (Fixed)

_WinAPI_GetPwrCapabilities - Example Script not working correctly.

Reported by: Au3Builder Owned by: Jon
Milestone: Component: Documentation
Version: Severity: None
Keywords: Cc:


_ArrayDisplay won't display anything.

#include <Array.au3>
#include <WinAPISys.au3>

Local $aInfo[25][2] = _
		[['Power button', 0], _
		['Sleep button', 0], _
		['Lid switch', 0], _
		['S1', 0], _
		['S2', 0], _
		['S3', 0], _
		['S4', 0], _
		['S5', 0], _
		['HIBERFIL.SYS', 0], _
		['Wake', 0], _
		['Video display dimming', 0], _
		['APM BIOS', 0], _
		['UPS', 0], _
		['Thermal zones', 0], _
		['Throttling', 0], _
		['Throttling min level', 0], _
		['Throttling max level', 0], _
		['Hibernation', 0], _
		['HDD power down', 0], _
		['Batteries', 0], _
		['Batteries short-term', 0], _
		['AC lowest wake state', 0], _
		['Lid lowest wake state', 0], _
		['RTC lowest wake state', 0], _
		['Minimum device wake state', 0]]
Local $aData = _WinAPI_GetPwrCapabilities()

If @error Then
	For $i = 0 To UBound($aInfo) - 1
		$aInfo[$i][1] = $aData[$i]

_ArrayDisplay($aInfo, '_WinAPI_GetPwrCapabilities')

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by anonymous

I haven't tested with but i guess it's the same as changelog/history does not mention it.

I hope next AutoIt3 release is coming soon :). I will try to find as many bugs as possible..

btw. can you grant me access to my inbox even tho im banned? I would like to read old private messages. Thanks in adv.

comment:2 Changed 6 years ago by Melba23

  • Component changed from Standard UDFs to Documentation
  • Owner set to Melba23
  • Status changed from new to assigned

No bug, it is a simple typo in the example script - it should read:

If Not @error Then


comment:3 Changed 6 years ago by Melba23

  • Milestone set to
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed by revision [11977] in version:

comment:4 Changed 6 years ago by Au3Builder


1) Where Can I download and when are you going to release the new installer with amended files?

2) How much i gotta donate to have my account unbanned? Will I ever be able to use the forums (I don't mind waiting a long time for unban) or do I have to post all issues related to AutoIt here in Tickets?

comment:5 Changed 6 years ago by Au3Builder

I never insulted the stuff so why permament? put me on moderation. that's all.
As for porn content that i supposedly posted. I never put one.Logan tends to exaggerate.

comment:6 Changed 6 years ago by Jon

  • Milestone changed from to
  • Owner changed from Melba23 to Jon

Fixed by revision [11986] 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 Jon.

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

Note: See TracTickets for help on using tickets.