#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 Changed 7 years ago by anonymous
comment:2 Changed 7 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
M23
comment:3 Changed 7 years ago by Melba23
- Milestone set to 3.3.15.1
- Resolution set to Fixed
- Status changed from assigned to closed
Fixed by revision [11977] in version: 3.3.15.1
comment:4 Changed 7 years ago by Au3Builder
@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 Changed 7 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 7 years ago by Jon
- Milestone changed from 3.3.15.1 to 3.3.14.4
- Owner changed from Melba23 to Jon
Fixed by revision [11986] in version: 3.3.14.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.
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.