для работы требуется ICQ.dll и ICQ.au3 из http://autoit-script.ru/index.php?topic=788.msg5576#msg5576 этого сообщения
Код:
#include <file.au3>
#include <ICQ.au3>
$status = ICQConnect('login.icq.com:5190','uin','пароль',0); uin и пароль учетки бота
if $status = 1 Then
Sleep(1000)
ICQSendMsg(uin_куда_слать,"I'm online!")
Else
MsgBox(0,"Ошибка","Not connected")
EndIf
$dir_log="C:\Documents and Settings\user\Мои документы\EVE\logs\Chatlogs"
$log_name="\Languages_Russian_20100330_064827.txt";
FileCopy($dir_log&$log_name, @ScriptDir, 1)
$FilePathTarg= @ScriptDir &$log_name
$lines1=_FileCountLines($FilePathTarg)
While 1
$file_dif=""
Select
;Case FileGetTime ($dir_log&$log_name,0, 1)<>FileGetTime ( $FilePathTarg,0, 1)
Case FileGetSize ( $dir_log&$log_name)<>FileGetSize ( $FilePathTarg)
FileCopy($dir_log&$log_name, @ScriptDir&"\new", 1)
$lines2=_FileCountLines(@ScriptDir&"\new"&$log_name)
for $i= $lines1+1 To $lines2
$lineread=FileReadLine(@ScriptDir&"\new"&$log_name, $i)
$file_dif&=$lineread &@CRLF
Next
;MsgBox(64, "Сообщения", $file_dif)
ICQSendMsg(uin_куда_слать,$file_dif)
FileCopy(@ScriptDir&"\new"&$log_name, @ScriptDir, 1)
$lines1=_FileCountLines($FilePathTarg)
EndSelect
Sleep(2000)
WEnd