类似百度网盘登录ui界面wke模块源码

易语言 2019-10-13 21:50:07

类似百度网盘登录ui界面wke模块源码

注菜单事件 只能在 ewe里 没办调用右键事件 只能在 wke里调用,需要的 朋友 请自行改成wke

调试输出 (“载入完成:”, WkeW2A_Point (参数_url), 参数_是否失败, WkeW2A_Point (参数_失败原因))
confing_file = 取运行目录 () + “\data\Config.ini”
局_用户名 = 读配置项 (confing_file, “login”, “user”, “admin”)
局_密码 = 到文本 (解密数据 (deBase64 (读配置项 (confing_file, “login”, “pwd”, “”)), “QQ1078350533”, #DES算法))
局_记住我 = 选择 (读配置项 (confing_file, “login”, “save”, “false”) = “true”, 真, 假)
局_自动登录 = 选择 (读配置项 (confing_file, “login”, “auto”, “false”) = “true”, 真, 假)
wke.运行JS (“document.getElementById('window_title').innerHTML = '” + #window_title + “';”)
wke.运行JS (格式化文本 (“document.getElementById('%s').value = '%s';”, “user_name”, 局_用户名))
.如果真 (局_记住我)
wke.运行JS (格式化文本 (“document.getElementById('%s').value = '%s';”, “user_pass”, 局_密码))
wke.运行JS (“document.getElementById('login_save').checked = ” + 选择 (局_记住我, “true”, “false”))
.如果真结束
.如果真 (局_自动登录)
wke.运行JS (“document.getElementById('login_auto').checked = ” + 选择 (局_自动登录, “true”, “false”))