Custom Query (3933 matches)
Results (445 - 447 of 3933)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #3601 | Fixed | _WinAPI_GetPwrCapabilities - Example Script not working correctly. | ||
| 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') |
|||
| #3659 | Fixed | InetClose() always return "False". | ||
| Description |
The reference of InetClose() says: Return Value True: if the handle was found and closed. False: if not. But in this simple example, InetClose() alway return "False": #include <InetConstants.au3>
Local $hDownload
$hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @ScriptDir & "\test.txt", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)
ConsoleWrite(@error)
Sleep(5000)
$bReturn = InetClose($hDownload)
MsgBox(0, "", $bReturn)
Even here while download is effectively interrupted, InetClose() return "False": Local $hDownload = InetGet("https://www.autoitscript.com/autoit3/files/archive/autoit/autoit-v3.3.14.5-setup.exe", @ScriptDir & "\test.exe", 1, 1)
ConsoleWrite($hDownload & @crlf)
ConsoleWrite(@error & @crlf)
$bReturn = InetClose($hDownload)
ConsoleWrite($bReturn & @crlf)
ConsoleWrite($hDownload & @crlf)
Output in console: 1 0 False 1 |
|||
| #3664 | Rejected | Spam | ||
| Description |
Text removed - M23 |
|||
Note:
See TracQuery
for help on using queries.
