quote:
Originally posted by Daerst
Hi,
I know it's a typical "use the fxxin search enigne"-question, I did but I didn't find the answer.
I've got this script:
code:
if (Message=="!test1")
{
if (ChatWnd.SendFile("C:/PICT0029.JPG")==true)
{
ChatWnd.SendMessage("successfully sent file");
} else
{
ChatWnd.SendMessage("sending of file failed");
}
}
He just says "successfully sent file" but doesn't send it. ChatWnd.SendMessage("/sendfile C:\PICT0029.JPG"); or ChatWnd.SendMessage("/dropfile C:\PICT0029.JPG"); don't work, too.
What's wrong?
Thx,
Daerst
Firstly you need to use Double Slashes.
So the code would be:
code:
if (ChatWnd.SendFile('c:\\PICT0029.JPG')){
ChatWnd.SendMessage("successfully sent file");
} else{
ChatWnd.SendMessage("sending of file failed");
}