Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5871

Trying to write to REG_MULTI_SZ ( ClosedRuiFileList )

$
0
0

@Keith1634 wrote:

In RhinoScript I am having trouble writing to a REG_MULTI_SZ ( ClosedRuiFileList )

I have followed the example from here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa393465(v=vs.85).aspx

Dim strKeyPath,MultValueName,strComputer,oReg,iValues
Const HKEY_LOCAL_MACHINE = &H80000002
strKeyPath = "SOFTWARE\McNeel\Rhinoceros\5.0x64\Scheme: Default\Window Positions\Docking Toolbars"
MultValueName = "ClosedRuiFileList"
iValues = Array("string1", "string2")
strComputer = "."
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
oReg.CreateKey HKEY_LOCAL_MACHINE, strKeyPath
oReg.SetMultiStringValue HKEY_LOCAL_MACHINE, strKeyPath, MultValueName, iValues

Any help much appreciated,
Keith

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5871

Trending Articles