Developers Jos Posted April 26, 2020 Developers Share Posted April 26, 2020 (edited) Here is a working version, as the build in regread doesn't support "REG_NONE" types. 1. Download _RegFuns.au3 from this topic: 2. Edit the file and comment the line 20: ;~ Global Const $REG_QWORD = 11 Use this script: #include "_RegFunc.au3" $kvalue = _RegRead("HKEY_CURRENT_USER\Software\DownloadManager\4705","FileSize",True) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $kvalue = ' & $kvalue & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console;~ "FileSize"=hex(0):f4,c0,bb,7f,00,00,00,00 at Internet Download Manager result : 1,99 GB (2143011060 Bytes) $hSize = "" For $x = StringLen($kvalue)-1 to 2 Step -2 $hSize &= StringMid($kvalue,$x,2) Next ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : Dec($hSize) = ' & Dec($hSize) & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console Jos Edited April 26, 2020 by Jos drmusti 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted April 26, 2020 Share Posted April 26, 2020 (edited) And out of curiosity, would you be kind enough, to test this : #include <APIRegConstants.au3> #include <Array.au3> #include <MsgBoxConstants.au3> #include <WinAPIError.au3> #include <WinAPIReg.au3> Local $hKey = _WinAPI_RegOpenKey($HKEY_CURRENT_USER, 'Software\DownloadManager\4950') If @error Then MsgBox(BitOR($MB_ICONERROR, $MB_SYSTEMMODAL), @extended, _WinAPI_GetErrorMessage(@extended)) Exit EndIf Local $tData = DllStructCreate('byte string[260]') _WinAPI_RegQueryValue ($hKey, "FileSize", $tData) ConsoleWrite ($tData.string & @CRLF) _WinAPI_RegCloseKey($hKey) Edited April 26, 2020 by Nine drmusti 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
drmusti Posted April 26, 2020 Author Share Posted April 26, 2020 7 minutes ago, Nine said: And out of curiosity, would you be kind enough, to test this : #include <APIRegConstants.au3> #include <Array.au3> #include <MsgBoxConstants.au3> #include <WinAPIError.au3> #include <WinAPIReg.au3> Local $hKey = _WinAPI_RegOpenKey($HKEY_CURRENT_USER, 'Software\DownloadManager\4950') If @error Then MsgBox(BitOR($MB_ICONERROR, $MB_SYSTEMMODAL), @extended, _WinAPI_GetErrorMessage(@extended)) Exit EndIf Local $tData = DllStructCreate('byte string[260]') _WinAPI_RegQueryValue ($hKey, "FileSize", $tData) ConsoleWrite ($tData.string & @CRLF) _WinAPI_RegCloseKey($hKey) thanks i tested. result:0xF4C0BB7F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Link to comment Share on other sites More sharing options...
Nine Posted April 26, 2020 Share Posted April 26, 2020 Woot ! Working ! drmusti and Musashi 1 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now