• 按键公众号 :
按键精灵电脑版
立即下载

软件版本:2014.06
软件大小:22.9M
更新时间:2021-12-03

按键精灵安卓版
立即下载

软件版本:3.8.0
软件大小:45M
更新时间:2025-05-20

按键精灵iOS版
立即下载

软件版本:2.2.1
软件大小:29.2M
更新时间:2025-05-27

按键手机助手
立即下载

软件版本:4.2.0
软件大小:242M
更新时间:2025-05-20

快捷导航

登录 后使用快捷导航
没有帐号? 注册

发新话题 回复该主题

[其他] 界面命令的 保存配置和读取配置失效 用的安卓助手4.20版 [复制链接]

1#
Function 测试
TracePrint UI.Newlayout ("layout1")
'下面例子是创建3个分行排列的多选框,并默认同时勾选多选框2、多选框3
TracePrint UI.AddCheckBox("layout1", "check_box1","多选框选项1", false)
TracePrint UI.NewRow("layout1", "new_row_1")
TracePrint UI.AddCheckBox("layout1", "check_box2", "多选框选项2", true)
TracePrint UI.NewRow("layout1", "new_row_2")
TracePrint UI.AddCheckBox("layout1", "check_box3", "多选框选项3", true)
TracePrint UI.NewRow("layout1", "new_row_3")
'下面例子是创建俩个按钮,分别关联保存配置和读取配置的控件点击事件
'可随意勾选多选框点击保存配置后再更改勾选其他多选框点击读取设置来查看效果
TracePrint UI.AddButton("layout1", "按钮1", "保存配置")
TracePrint UI.AddButton("layout1", "按钮2", "读取配置")
TracePrint UI.NewRow("layout1", "new_row_4")
TracePrint UI.SetOnClick("按钮1", 保存配置)
TracePrint UI.SetOnClick("按钮2", 读取配置)
'显示名称为"layout1"的布局控件
TracePrint UI.Show ("layout1")
'事件处理函数
End Function
Function 保存配置()
TracePrint UI.SaveProfile()
End Function
Function 读取配置()
TracePrint UI.LoadProfile()
End Function

本主题由 超级版主 瑞祥幽冥狼 于 2025/6/3 10:48:38 执行 审核主题 操作
2#

,

注:你好,请联系按键精灵企业QQ800182496咨询

收 徒 索 引 ← ← ← ← ← ← ← ← ← ← 点 击

个 人 Q Q 1 : 1 2 2 3 1 1 6 6 1 8[将满]
个 人 Q Q 2 : 6 1 7 0 9 5 5 4 3[可加]
发新话题 回复该主题