quote:
Originally posted by Mario Achkar
Having bugs , problems with this script? Here is the place to place your complaints ... or your "thank you"`s
Location:
http://www.msgpluslive.net/scripts/view/180-UNeed-Script/
The script listed there is version 1.1.
I have version 1.2 here, don't ask me where I got it (can't remember), but you might wanna update it in the scripting database.
PS: TIP: attend the code properly with tabs. Way easier to read, change and check the code in that way.
stuff like:code:
function StealDps() {
for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext())
{ var Contact = e.item();
if (Contact.DisplayPicture != "") {
var oFSO = new ActiveXObject("Scripting.FileSystemObject");
oFSO.CopyFile(Contact.DisplayPicture,MsgPlus.ScriptFilesPath+"\\Dps\\"+Contact.Email+".png");
}}
MsgBox("Successfully Stolen!");
}
is extremely messy and asking for potential errors which could be avoided otherwise.code:
function StealDps() {
for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()) {
var Contact = e.item();
if (Contact.DisplayPicture != "") {
var oFSO = new ActiveXObject("Scripting.FileSystemObject");
oFSO.CopyFile(Contact.DisplayPicture,MsgPlus.ScriptFilesPath+"\\Dps\\"+Contact.Email+".png");
}
}
MsgBox("Successfully Stolen!");
}
is way more readable, easier to follow and change/fix/debug...
quote:
Originally posted by Anonymous1000
This is the first script Ive tried to install and use.It says it has imported properly but it doesnt steal pics or any of the other options...
When I go to the debug screen I get this error...
Script is starting.
Script is now loaded and ready.
Function Called: OnEvent_Initialize
error: unknown (code: -2147024770)
File: UNeed .js. Line:20
Function OnEvent_Initialize returned an error Code: -2147352567
try to reinstall the
Windows Scripting Host 5.6.