Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3601 closed Bug (Fixed)

_WinAPI_GetPwrCapabilities - Example Script not working correctly.

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

Description

_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]
	Next
Else
	Exit
EndIf

_ArrayDisplay($aInfo, '_WinAPI_GetPwrCapabilities')

Attachments (0)

Change History (6)

comment:1 by anonymous, 8 years ago

I haven't tested with 3.3.14.3 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 by Melba23, 8 years ago

Component: Standard UDFsDocumentation
Owner: set to Melba23
Status: newassigned

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

If Not @error Then

M23

comment:3 by Melba23, 8 years ago

Milestone: 3.3.15.1
Resolution: Fixed
Status: assignedclosed

Fixed by revision [11977] in version: 3.3.15.1

comment:4 by Au3Builder, 8 years ago

@Melba23

1) Where Can I download 3.3.15.1 and when are you going to release the new installer with amended files? https://www.autoitscript.com/forum/topic/192254-33143-fixes/

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 by Au3Builder, 8 years ago

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 by Jon, 8 years ago

Milestone: 3.3.15.13.3.14.4
Owner: changed from Melba23 to Jon

Fixed by revision [11986] in version: 3.3.14.4

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


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