Jump to content
TheLug

Help with REG_MULTI_SZ

Recommended Posts

TheLug

This is what I have below. But something isn't correct. The key never shows. I have searched all over and read the help but it is still not working.

RegWrite ("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Live\Photo Gallery\Library" ,"DontShowAssociationsDialogExtensions","REG_MULTI_SZ","line1" & .WDP & "line2" & .BMP & "line3" & .JFIF)

Multi-String Value
HKEY_CURRENT_USER\Software\Microsoft\Windows Live\Photo Gallery\Library

 DontShowAssociationsDialogExtensions

 .WDP
.BMP
.JFIF
.JPEG
.JPE
.JPG
.PNG
.TIF
.DIB
.TIFF
.ICO

Share this post


Link to post
Share on other sites
Chimp

try like this

RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Live\Photo Gallery\Library", "DontShowAssociationsDialogExtensions", "REG_MULTI_SZ", ".WDP" & @CRLF & ".BMP" & @CRLF & ".JFIF")

 


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
TheLug

Works like a champ. It all makes sense now!!! Thanks a lot! I was really scratching my head with that one.

Share this post


Link to post
Share on other sites
TheSaint

You could probably improve upon that, by assigning the main reg key to a variable, and then writing to it for each extension using something like a For...Next loop. Each extension would be the value of another variable (i.e. $ext). You could pass the extensions as a pipe delimited string and use something like the StringSplit command.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×