|

楼主 |
发表于 2023-7-2 09:41:03
|
显示全部楼层
四川省绵阳市
采用的精易模块 其余支持库都是系自带
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 变量名 | 类 型 | 数组 | 备 注 | 下载参数 | 任务参数 | | 下载任务 | 下载对象 | | 下载状态 | 整数型 | | 下载信息 | 字节集 | | 文件大小 | 双精度小数型 | | 下载地址 | 文本型 | 0 | 文件名 | 文本型 | | 版本号 | 文本型 | | 取命令行 (下载地址 )程序_禁止重复运行 (“sagdhjsadgfjdsfsdajfgsfasdklgfjasdkg”, 真, “程序已经运行,请勿重复打开”, #警告图标, ) 如果 (取数组成员数 (下载地址 ) ≠ 1 ) 销毁 () 文件名 = “\” + 文本_取右边 (下载地址 [1 ], “update/”, 1, ) 版本号 = 文本_取左边 (下载地址 [1 ], “|”, 1, ) 下载参数.类型 = #传送常量 .下载  下载参数.文件地址 = 文本_取右边 (下载地址 [1 ], “|”, 1, ) 下载参数.线程等待超时 = 1000  下载参数.默认线程数 = 5  下载参数.本地文件路径 = 取运行目录 () + 文件名  下载参数.连接超时 = 5000  下载参数.发送超时 = 5000  下载参数.接收超时 = 10000  下载参数.接收大小 = 10240  下载参数.交互回调函数 = &交互回调函数  下载任务. 增加新任务 (下载参数 ) 如果真 (文件是否存在 (取运行目录 () + 文件名 ))   透明标签1.标题 = “文件正在解压中,请稍后...” 删除文件 (取运行目录 () + 文件名 ) 进程_终止进程 (“主程序.EXE”, ) |
交互回调函数 | 整数型 | | |
消息类型 | 整数型 | | | | 线程信息 | 整数型 | | | | 参数3 | 整数型 | | | | 参数4 | 整数型 | | | | 对象信息 | 整数型 | | | |
判断 (消息类型 = #传送常量 .下载上传开始 ) 时钟1.时钟周期 = 10  时钟2.时钟周期 = 100  文件大小 = 参数3 判断 (消息类型 = #传送常量 .下载上传结束 ) 时钟1.时钟周期 = 0  时钟2.时钟周期 = 0  透明标签1.标题 = “文件正在解压中,请稍后...” ZIP压缩1. 解压 (取运行目录 () + 文件名, 取运行目录 () + “\”) 延迟 (5000 ) 删除文件 (取运行目录 () + 文件名 ) 透明标签1.标题 = “文件更新完成” 运行 (取运行目录 () + “\主程序.EXE”, 假, ) 写配置项 (取运行目录 () + “\game.ini”, “deploy”, “Version”, 版本号 ) 结束 () 判断 (消息类型 = #传送常量 .新下载线程启动 ) 判断 (消息类型 = #传送常量 .下载线程继续下载 ) 判断 (消息类型 = #传送常量 .线程正常结束 ) 判断 (消息类型 = #传送常量 .线程异常结束 ) 时钟1.时钟周期 = 0  时钟2.时钟周期 = 0 判断 (消息类型 = #传送常量 .存在同名文件 ) 判断 (消息类型 = #传送常量 .收到数据 ) 判断 (消息类型 = #传送常量 .下载数据范围 )  返回 (0)进度条1.位置 = 四舍五入 (下载任务. 取已下载长 () ÷ 文件大小 × 100, 0 )透明标签2.标题 = 到文本 (四舍五入 (下载任务. 取下载速度 () ÷ 1024, 2 )) + “ KB/s”透明标签3.标题 = 到文本 (四舍五入 (下载任务. 取已下载长 () ÷ 文件大小 × 100, 0 )) + “%”|
downlib | CCTS | (未知支持库) | iext | eCompress | spec |
|
|