JoshDB Posted May 17, 2006 Share Posted May 17, 2006 Very useful script, thanks a lot Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite Link to comment Share on other sites More sharing options...
rpolito30 Posted December 8, 2006 Share Posted December 8, 2006 I am not able to get this download. Can you send it to me? rpolito30@hotmail.comever wanted to write many registry keys at once using regwrite within a script ??tired about fileinstall a .reg file and run regedit -s ??this script helps you converting your .reg files (exported with regedit from registry)to .au3 code ready to paste into your script.yes, it can read UNICODE files (exported with windows 2000/xp).Unicode-Reading is limited to ANSI-Code only!an other handicap is that autoit could not write every kind of registryvalue types like REG_NONE or REG_LINK and others.look at my way to read a simple unicode text file ...the script is not well commented yet - give it a try.comments / ideas are welcome. Link to comment Share on other sites More sharing options...
willichan Posted May 20, 2009 Share Posted May 20, 2009 Great utility. I use it often. I removed redundant variable DIMs, and fixed the REG_BINARY type handling to work properly. Reg2au3.au3 My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
gerardsweeney Posted February 17, 2010 Share Posted February 17, 2010 (edited) I removed redundant variable DIMs, and fixed the REG_BINARY type handling to work properly. Agreed - this is a fantastic utility, and massive thanks to all involved in its development! I have one question, though... One of the reg files I'm trying to convert uses hex( - that's a b wrapped in brackets, in case the forum makes it a smiley - which is still showing as an unsupported type. [HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.0\ACAD-8005:409\MiniDump] "AccumulatedUptime"=hex( b ) : 66,8d,09,08,00,00,00,00 "AccumulatedCalUptime"=hex(B):de,de,1f,87,00,00,00,00 In the registry, this shows up as a "AccumulatedCalUptime" REG_QWORD d4 62 94 a2 00 00 00 00 "AccumulatedUptime" REG_QWORD c2 da 28 0d 00 00 00 00 Normally, I like to have a crack at things like this myself as I hate looking like some kind of leech - but I'm afraid anything to do with maths sends me into a wibbling heap!! I can modify the generated au3 script for my particular requirements by hard-coding what is meant to be put in as a QWORD, but it seems a shame that this powerful script can't handle this particular type of string. Is there any chance some kind soul out there fancies tackling this? Regards, Gerard Edited February 17, 2010 by gerardsweeney Link to comment Share on other sites More sharing options...
bluechipps Posted February 25, 2010 Share Posted February 25, 2010 (edited) since someone has already bumped this, please allow me to thank you for your work, very very handy! Edited February 25, 2010 by bluechipps Link to comment Share on other sites More sharing options...
AZJIO Posted March 19, 2010 Share Posted March 19, 2010 ;start and fileselect-dialogs if 1 then ; setup If Not FileExists(@SystemDir&'\reg2au3.au3') Then If MsgBox(4, "message", 'reg2au3.au3 >>> system32 ???')=6 Then FileCopy(@ScriptDir&'\reg2au3.au3', @SystemDir,1) RegWrite("HKCR\regfile\shell\conv","","REG_SZ","Convert reg2au3") RegWrite("HKCR\regfile\shell\conv\command","","REG_SZ",@AutoItExe&' "'&@SystemDir&'\reg2au3.au3" %1') EndIf EndIf $sTarget = StringTrimLeft($CmdLineRaw, StringLen('"'&@ScriptFullPath&'" ')) If $sTarget='' Then $file_in = FileOpenDialog("Select", @ScriptDir & "", "reg-file (*.reg)", 1 + 4 ) If @error Then Exit Else $file_in=$sTarget EndIf $file_in_size = FileGetSize($file_in) If $file_in_size = 0 Then _Error("source-file is empty") $file_out0 = StringTrimRight($file_in, 3) $i = 1 While FileExists($file_out0&$i&'.au3') $i +=1 WEnd $file_out=$file_out0&$i&'.au3' EndIf___________________________REGEDIT4# comment[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"Start_LargeMFUIcons"=dword:00000000# comment[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"Start_MinMFU"=dword:00000000# comment >>> Warning, Warning, Warning ...# comment >>> ;# comment My other projects or all Link to comment Share on other sites More sharing options...
ixy Posted March 25, 2010 Share Posted March 25, 2010 Thanks! Very useful script Link to comment Share on other sites More sharing options...
AHRIMANSEFID Posted April 9, 2010 Share Posted April 9, 2010 Hi. Plz Help For Fix Delete Reg Address. http://www.autoitscript.com/forum/index.php?showtopic=105369&st=0 Link to comment Share on other sites More sharing options...
willichan Posted July 22, 2010 Share Posted July 22, 2010 I have one question, though... One of the reg files I'm trying to convert uses hex( - that's a b wrapped in brackets, in case the forum makes it a smiley - which is still showing as an unsupported type.To my knowledge, AutoIt does not support the HEX type. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash 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