The function returns a
VBArray. Use the toArray() function to get a regular array:
code:
var Shell = new ActiveXObject("WScript.Shell");
var path = "HKCU\\Software\\Microsoft\\MSNMessenger\\PerPassportSettings\\" + Messenger.MyUserId + "\\Sounds\\MSNMSGR_";
var keys = Array(path+"Buzz");
var enabled = Shell.RegRead(keys[0]+"\\Enabled");
var test = Shell.RegRead(keys[0]+"\\Path");
Debug.Trace("Path: " + test.toArray() + " E: " + enabled);