The code (below) doesn't seem to be working right. I'm making a list of all my contacts and then trying to read nicknames from the registry and set them in the next column. Adding the contact works fine, but it won't set the nickname text. I've checked the value of
nickname and it is correct, it's just the function failing for some reason (Only reason in documentation is that the window may have already closed, but it hasn't)
Please help, it's driving me mad
code:
for (var objSubKey in objSubKeys){
nickname = Registry_GetKeyValue(HKCU, 'Software\\Patchou\\Messenger Plus! Live\\GlobalSettings\\Scripts\\myScript\\Settings\\'+Messenger.MyUserId+"\\"+objSubKey, "Nickname")
nick.LstView_AddItem("Contacts", findEmail(objSubKey), 0, nick.LstView_GetCount("Contacts"));
nick.LstView_SetItemText("Contacts", nick.LstView_GetCount("Contacts"), 0, nickname);
}