I tried to look into the code of Display Picture Changer script (v1.2?), and I hope this is what you are looking for.
Please open the Display Picture Changer script file and do the following changes.
1. In the function ChangeDp, after the code
code:
Messenger.MyDisplayPicture = fileName;
add the following:
code:
UpdatePsm(fileName.Path);
2. Add the following code at the bottom of the script:
code:
function UpdatePsm(NewFileName)
{
var tempFileName = NewFileName;
// extract the file name
tempFileName = tempFileName.substr(tempFileName.lastIndexOf("\\") + 1);
var extPos = tempFileName.lastIndexOf(".");
if (extPos >= 0) // the file name has an extension
{
// remove the extension
tempFileName = tempFileName.substr(0, extPos);
}
// update personal message
Messenger.MyPersonalMessage = tempFileName;
}