yingyong.txt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. --小程序
  2. GITA=tdata.."git1.txt" GITB=tdata.."git2.txt"--web小程序重要参数
  3. 写入文件(GITA,"https://gitlab.com/txcgb/free/-/raw/master/tools/")
  4. 写入文件(GITB,"https://jihulab.com/txcgb/free/-/raw/master/tools/")
  5. -- 设置为竖屏模式
  6. activity.setRequestedOrientation(1)
  7. function hexToColor(hex)
  8. -- 去掉 # 前缀
  9. hex = hex:gsub("#", "")
  10. -- 将十六进制转换为数字
  11. local color = tonumber(hex, 16)
  12. return color
  13. end
  14. local hexColor = "#ff009688"
  15. local MyColor = hexToColor(hexColor)
  16. 写入文件(随机色,MyColor)
  17. 读取颜色(随机色,随机色)
  18. function 查看代码(文件名)
  19. 对话框()
  20. .设置消息(读取文件(FILES.."tools/"..文件名..".txt"))
  21. .显示()
  22. end
  23. function 布局边框(边框粗细,边框颜色,背景颜色,圆角大小)
  24. import "android.graphics.drawable.GradientDrawable"
  25. drawable=GradientDrawable()
  26. drawable.setShape(GradientDrawable.RECTANGLE)
  27. drawable.setStroke(边框粗细,tonumber(边框颜色))--边框粗细和颜色
  28. drawable.setColor(tonumber(背景颜色))--背景颜色
  29. drawable.setCornerRadius(圆角大小)--圆角
  30. return drawable
  31. end
  32. lay=
  33. {
  34. LinearLayout;
  35. orientation="vertical";
  36. background='#ffffff',
  37. {
  38. TextView;--文本控件
  39. text='网址大全';--显示文字
  40. id="隐藏功能",
  41. textSize='20sp';--文字大小
  42. textColor = '#333333',
  43. layout_marginTop = '35px',
  44. layout_gravity="center|bottom";
  45. };
  46. {
  47. LinearLayout,
  48. layout_width="100%w",
  49. layout_height="50dp",
  50. layout_weight="1.0",
  51. {
  52. Button,
  53. textSize="16dp",
  54. text="浏览器",
  55. onClick=function()
  56. 子页面("安卓",读取文件(首页地址))
  57. end,
  58. layout_width="fill",
  59. layout_height="fill",
  60. layout_weight="1.0",
  61. layout_margin='5dp';--卡片边距
  62. BackgroundDrawable=布局边框(4,MyColor,0x00000000,17);
  63. },
  64. {
  65. Button,
  66. textSize="16dp",
  67. text="代码仓库",
  68. onClick=function()
  69. WEB小程序("daima")
  70. end,
  71. layout_width="fill",
  72. layout_height="fill",
  73. layout_weight="1.0",
  74. layout_margin='5dp';--卡片边距
  75. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  76. },
  77. {
  78. Button,
  79. textSize="16dp",
  80. text="建站资源",
  81. onClick=function()
  82. WEB小程序("zhan")
  83. end,
  84. layout_width="fill",
  85. layout_height="fill",
  86. layout_weight="1.0",
  87. layout_margin='5dp';--卡片边距
  88. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  89. },
  90. },
  91. {
  92. LinearLayout,
  93. layout_width="100%w",
  94. layout_height="50dp",
  95. layout_weight="1.0",
  96. {
  97. Button,
  98. textSize="16dp",
  99. text="应用推荐",
  100. onClick=function()
  101. WEB小程序("vip")
  102. end,
  103. layout_width="fill",
  104. layout_height="fill",
  105. layout_weight="1.0",
  106. layout_margin='5dp';--卡片边距
  107. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  108. },
  109. {
  110. Button,
  111. textSize="16dp",
  112. text="影视推荐",
  113. onClick=function()
  114. WEB小程序("ysdq")
  115. end,
  116. layout_width="fill",
  117. layout_height="fill",
  118. layout_weight="1.0",
  119. layout_margin='5dp';--卡片边距
  120. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  121. },
  122. {
  123. Button,
  124. textSize="16dp",
  125. text="常用网站",
  126. onClick=function()
  127. WEB小程序("changyong")
  128. end,
  129. layout_width="fill",
  130. layout_height="fill",
  131. layout_weight="1.0",
  132. layout_margin='5dp';--卡片边距
  133. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  134. },
  135. },
  136. {
  137. LinearLayout,
  138. layout_width="100%w",
  139. layout_height="50dp",
  140. layout_weight="1.0",
  141. {
  142. Button,
  143. textSize="16dp",
  144. text="网址导航",
  145. onClick=function()
  146. WEB小程序("dh")
  147. end,
  148. layout_width="fill",
  149. layout_height="fill",
  150. layout_weight="1.0",
  151. layout_margin='5dp';--卡片边距
  152. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  153. },
  154. {
  155. Button,
  156. textSize="16dp",
  157. text="电视直播",
  158. onClick=function()
  159. WEB小程序("tvlive")
  160. end,
  161. layout_width="fill",
  162. layout_height="fill",
  163. layout_weight="1.0",
  164. layout_margin='5dp';--卡片边距
  165. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  166. },
  167. {
  168. Button,
  169. textSize="16dp",
  170. text="自有频道",
  171. id="自有频道",
  172. layout_width="fill",
  173. layout_height="fill",
  174. layout_weight="1.0",
  175. layout_margin='5dp';--卡片边距
  176. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  177. },
  178. },
  179. {
  180. LinearLayout,
  181. layout_width="100%w",
  182. layout_height="50dp",
  183. layout_weight="1.0",
  184. {
  185. Button,
  186. textSize="16dp",
  187. text="收藏夹",
  188. id="删除收藏夹",
  189. onClick=function()
  190. WEB小程序("shoucang")
  191. end,
  192. layout_width="fill",
  193. layout_height="fill",
  194. layout_weight="1.0",
  195. layout_margin='5dp';--卡片边距
  196. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  197. },
  198. {
  199. Button,
  200. textSize="16dp",
  201. text="历史记录",
  202. onClick=function()
  203. 子页面('安卓','file:///'..tdata..'His.html')
  204. end,
  205. layout_width="fill",
  206. layout_height="fill",
  207. layout_weight="1.0",
  208. layout_margin='5dp';--卡片边距
  209. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  210. },
  211. {
  212. Button,
  213. textSize="16dp",
  214. text="预留入口",
  215. layout_width="fill",
  216. layout_height="fill",
  217. layout_weight="1.0",
  218. layout_margin='5dp';--卡片边距
  219. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  220. },
  221. },
  222. {
  223. TextView;--文本控件
  224. text='云程序';--显示文字
  225. textSize='20sp';--文字大小
  226. textColor = '#333333',
  227. layout_marginTop = '35px',
  228. layout_gravity="center|bottom";
  229. };
  230. {
  231. LinearLayout,
  232. layout_width="100%w",
  233. layout_height="50dp",
  234. layout_weight="1.0",
  235. {
  236. Button,
  237. textSize="16dp",
  238. text="RC4加解密",
  239. id="快解密";
  240. onClick=function()
  241. WEB小程序("jiemi")
  242. end,
  243. layout_width="fill",
  244. layout_height="fill",
  245. layout_weight="1.0",
  246. layout_margin='5dp';--卡片边距
  247. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  248. },
  249. {
  250. Button,
  251. textSize="16dp",
  252. text="Base64编码",
  253. onClick=function()
  254. WEB小程序("base64")
  255. end,
  256. layout_width="fill",
  257. layout_height="fill",
  258. layout_weight="1.0",
  259. layout_margin='5dp';--卡片边距
  260. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  261. },
  262. {
  263. Button,
  264. textSize="16dp",
  265. text="URL编码",
  266. onClick=function()
  267. WEB小程序("urlcode")
  268. end,
  269. layout_width="fill",
  270. layout_height="fill",
  271. layout_weight="1.0",
  272. layout_margin='5dp';--卡片边距
  273. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  274. },
  275. },
  276. {
  277. LinearLayout,
  278. layout_width="100%w",
  279. layout_height="50dp",
  280. layout_weight="1.0",
  281. {
  282. Button,
  283. textSize="16dp",
  284. text="MD5加密",
  285. onClick=function()
  286. WEB小程序("md5")
  287. end,
  288. layout_width="fill",
  289. layout_height="fill",
  290. layout_weight="1.0",
  291. layout_margin='5dp';--卡片边距
  292. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  293. },
  294. {
  295. Button,
  296. textSize="16dp",
  297. text="特殊字符",
  298. onClick=function()
  299. WEB小程序("zifu")
  300. end,
  301. layout_width="fill",
  302. layout_height="fill",
  303. layout_weight="1.0",
  304. layout_margin='5dp';--卡片边距
  305. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  306. },
  307. {
  308. Button,
  309. textSize="16dp",
  310. text="指南针",
  311. onClick=function()
  312. WEB小程序("zhinanzhen")
  313. end,
  314. layout_width="fill",
  315. layout_height="fill",
  316. layout_weight="1.0",
  317. layout_margin='5dp';--卡片边距
  318. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  319. },
  320. },
  321. {
  322. LinearLayout,
  323. layout_width="100%w",
  324. layout_height="50dp",
  325. layout_weight="1.0",
  326. {
  327. Button,
  328. textSize="16dp",
  329. text="Lua编辑器",
  330. id="编辑器",
  331. onClick=function()
  332. 写入文件(编辑路径,编辑文件)
  333. WEB小程序("bianjiqi1")
  334. end,
  335. layout_width="fill",
  336. layout_height="fill",
  337. layout_weight="1.0",
  338. layout_margin='5dp';--卡片边距
  339. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  340. },
  341. {
  342. Button,
  343. textSize="16dp",
  344. text="手电筒(长按)",
  345. id="手电筒",
  346. layout_width="fill",
  347. layout_height="fill",
  348. layout_weight="1.0",
  349. layout_margin='5dp';--卡片边距
  350. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  351. },
  352. {
  353. Button,
  354. textSize="16dp",
  355. text="音乐播放器",
  356. onClick=function()
  357. WEB小程序("music")
  358. end,
  359. layout_width="fill",
  360. layout_height="fill",
  361. layout_weight="1.0",
  362. layout_margin='5dp';--卡片边距
  363. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  364. },
  365. },
  366. {
  367. LinearLayout,
  368. layout_width="100%w",
  369. layout_height="50dp",
  370. layout_weight="1.0",
  371. {
  372. Button,
  373. textSize="16dp",
  374. text="幸运数字",
  375. onClick=function()
  376. WEB小程序("suiji")
  377. end,
  378. layout_width="fill",
  379. layout_height="fill",
  380. layout_weight="1.0",
  381. layout_margin='5dp';--卡片边距
  382. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  383. },
  384. {
  385. Button,
  386. textSize="16dp",
  387. text="QQ聊天",
  388. onClick=function()
  389. zdy_layout={
  390. LinearLayout;
  391. orientation="vertical";--重力属性
  392. id="zdy_father_layout",
  393. {
  394. EditText;--编辑框控件
  395. id="pathedit",
  396. layout_marginTop='15dp';--布局顶距
  397. layout_width="80%w";--编辑框宽度
  398. layout_gravity="center";--重力属性
  399. Hint="请输入QQ号";--设置编辑框为空时的提示文字
  400. };
  401. };
  402. AlertDialog.Builder(this)
  403. .setTitle("QQ聊天")--设置标题
  404. .setCancelable(false)--点击外围可取消
  405. .setView(loadlayout(zdy_layout))--设置布局
  406. .setPositiveButton("聊一聊",function(v)--设置积极按钮
  407. 联系QQ(pathedit.text)
  408. end)
  409. .setNegativeButton("取消",function(v)--设置消极按钮
  410. end)
  411. .show()
  412. end,
  413. layout_width="fill",
  414. layout_height="fill",
  415. layout_weight="1.0",
  416. layout_margin='5dp';--卡片边距
  417. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  418. },
  419. {
  420. Button,
  421. textSize="16dp",
  422. text="微信扫一扫",
  423. id="sys",
  424. onClick=function()
  425. 微信扫一扫()
  426. end,
  427. layout_width="fill",
  428. layout_height="fill",
  429. layout_weight="1.0",
  430. layout_margin='5dp';--卡片边距
  431. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  432. },
  433. },
  434. {
  435. LinearLayout,
  436. layout_width="100%w",
  437. layout_height="50dp",
  438. layout_weight="1.0",
  439. {
  440. Button,
  441. textSize="16dp",
  442. text="网页计算器",
  443. onClick=function()
  444. 子页面("安卓","http://txcgb.web3v.work/dh/jisuanqi/")
  445. end,
  446. layout_width="fill",
  447. layout_height="fill",
  448. layout_weight="1.0",
  449. layout_margin='5dp';--卡片边距
  450. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  451. },
  452. {
  453. Button,
  454. textSize="16dp",
  455. text="计算器小程序",
  456. onClick=function()
  457. WEB小程序("jisuanqi")
  458. end,
  459. layout_width="fill",
  460. layout_height="fill",
  461. layout_weight="1.0",
  462. layout_margin='5dp';--卡片边距
  463. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  464. },
  465. {
  466. Button,
  467. textSize="16dp",
  468. text="小时钟",
  469. id="小时钟",
  470. onClick=function()
  471. WEB小程序("clock")
  472. end,
  473. layout_width="fill",
  474. layout_height="fill",
  475. layout_weight="1.0",
  476. layout_margin='5dp';--卡片边距
  477. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  478. },
  479. },
  480. {
  481. LinearLayout,
  482. layout_width="100%w",
  483. layout_height="50dp",
  484. layout_weight="1.0",
  485. {
  486. Button,
  487. textSize="16dp",
  488. text="文字图标",
  489. onClick=function()
  490. WEB小程序("wztb")
  491. end,
  492. layout_width="fill",
  493. layout_height="fill",
  494. layout_weight="1.0",
  495. layout_margin='5dp';--卡片边距
  496. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  497. },
  498. {
  499. Button,
  500. textSize="16dp",
  501. text="一把尺子",
  502. onClick=function()
  503. WEB小程序("rule")
  504. end,
  505. layout_width="fill",
  506. layout_height="fill",
  507. layout_weight="1.0",
  508. layout_margin='5dp';--卡片边距
  509. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  510. },
  511. {
  512. Button,
  513. textSize="16dp",
  514. text="小黄人",
  515. onClick=function()
  516. WEB小程序("xiaohuangren")
  517. end,
  518. layout_width="fill",
  519. layout_height="fill",
  520. layout_weight="1.0",
  521. layout_margin='5dp';--卡片边距
  522. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  523. },
  524. },
  525. {
  526. LinearLayout,
  527. layout_width="100%w",
  528. layout_height="50dp",
  529. layout_weight="1.0",
  530. {
  531. Button,
  532. textSize="16dp",
  533. text="蹦蹦跳跳",
  534. onClick=function()
  535. WEB小程序("tiao")
  536. end,
  537. layout_width="fill",
  538. layout_height="fill",
  539. layout_weight="1.0",
  540. layout_margin='5dp';--卡片边距
  541. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  542. },
  543. {
  544. Button,
  545. textSize="16dp",
  546. text="文字翻转",
  547. onClick=function()
  548. 文字翻转()
  549. end,
  550. layout_width="fill",
  551. layout_height="fill",
  552. layout_weight="1.0",
  553. layout_margin='5dp';--卡片边距
  554. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  555. },
  556. {
  557. Button,
  558. textSize="16dp",
  559. text="搜索引擎",
  560. onClick=function()
  561. 搜索引擎()
  562. end,
  563. layout_width="fill",
  564. layout_height="fill",
  565. layout_weight="1.0",
  566. layout_margin='5dp';--卡片边距
  567. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  568. },
  569. },
  570. {
  571. LinearLayout,
  572. layout_width="100%w",
  573. layout_height="50dp",
  574. layout_weight="1.0",
  575. {
  576. Button,
  577. textSize="16dp",
  578. text="下载文件",
  579. onClick=function()
  580. 下载文件()
  581. end,
  582. layout_width="fill",
  583. layout_height="fill",
  584. layout_weight="1.0",
  585. layout_margin='5dp';--卡片边距
  586. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  587. },
  588. {
  589. Button,
  590. textSize="16dp",
  591. text="二维码",
  592. id="二维码",
  593. onClick=function()
  594. 子页面("安卓","http://txcgb.web3v.work/dh/ewm/")
  595. end,
  596. layout_width="fill",
  597. layout_height="fill",
  598. layout_weight="1.0",
  599. layout_margin='5dp';--卡片边距
  600. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  601. },
  602. {
  603. Button,
  604. textSize="16dp",
  605. text="加密文档",
  606. onClick=function()
  607. WEB小程序("wendang")
  608. end,
  609. layout_width="fill",
  610. layout_height="fill",
  611. layout_weight="1.0",
  612. layout_margin='5dp';--卡片边距
  613. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  614. },
  615. },
  616. {
  617. LinearLayout,
  618. layout_width="100%w",
  619. layout_height="50dp",
  620. layout_weight="1.0",
  621. {
  622. Button,
  623. textSize="16dp",
  624. text="微信零钱",
  625. onClick=function()
  626. WEB小程序("0qian")
  627. end,
  628. layout_width="fill",
  629. layout_height="fill",
  630. layout_weight="1.0",
  631. layout_margin='5dp';--卡片边距
  632. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  633. },
  634. {
  635. Button,
  636. textSize="16dp",
  637. text="微信零钱通",
  638. onClick=function()
  639. WEB小程序("0qiantong")
  640. end,
  641. layout_width="fill",
  642. layout_height="fill",
  643. layout_weight="1.0",
  644. layout_margin='5dp';--卡片边距
  645. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  646. },
  647. {
  648. Button,
  649. textSize="16dp",
  650. text="井字棋",
  651. onClick=function()
  652. WEB小程序("jing")
  653. end,
  654. layout_width="fill",
  655. layout_height="fill",
  656. layout_weight="1.0",
  657. layout_margin='5dp';--卡片边距
  658. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  659. },
  660. },
  661. {
  662. LinearLayout,
  663. layout_width="100%w",
  664. layout_height="50dp",
  665. layout_weight="1.0",
  666. {
  667. Button,
  668. textSize="16dp",
  669. text="小米翻译",
  670. onClick=function()
  671. WEB小程序("fanyi")
  672. end,
  673. layout_width="fill",
  674. layout_height="fill",
  675. layout_weight="1.0",
  676. layout_margin='5dp';--卡片边距
  677. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  678. },
  679. {
  680. Button,
  681. textSize="16dp",
  682. text="万年历",
  683. onClick=function()
  684. 子页面("安卓","http://txcgb.web3v.work/wnl/sxwnl/source/indexmp.htm")
  685. end,
  686. layout_width="fill",
  687. layout_height="fill",
  688. layout_weight="1.0",
  689. layout_margin='5dp';--卡片边距
  690. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  691. },
  692. {
  693. Button,
  694. textSize="16dp",
  695. text="预留入口",
  696. onClick=function()
  697. --WEB小程序("jing")
  698. end,
  699. layout_width="fill",
  700. layout_height="fill",
  701. layout_weight="1.0",
  702. layout_margin='5dp';--卡片边距
  703. BackgroundDrawable=布局边框(4,MyColor ,0x00000000,15);
  704. },
  705. },
  706. }
  707. webView.addView(loadlayout(lay))
  708. sys.onLongClick=function()
  709. 支付宝扫一扫()
  710. end
  711. 小时钟.onLongClick=function()
  712. WEB小程序("clock1")
  713. end
  714. function 搜索引擎()
  715. -----分割线-----
  716. zdy_layout={
  717. LinearLayout;
  718. orientation="vertical";--重力属性
  719. id="zdy_father_layout",
  720. {
  721. EditText;--编辑框控件
  722. id="pathedit",
  723. layout_marginTop='15dp';--布局顶距
  724. layout_width="80%w";--编辑框宽度
  725. layout_gravity="center";--重力属性
  726. Hint="请输入关键词";--设置编辑框为空时的提示文字
  727. };
  728. };
  729. 对话框()
  730. .设置标题("搜索引擎")--设置标题
  731. .setCancelable(true)--点击外围可取消
  732. .setView(loadlayout(zdy_layout))--设置布局
  733. .设置积极按钮("影视搜索",function(v)--设置积极按钮
  734. 子页面("安卓","http://hly.txcgb.site/jx/?url="..pathedit.text)
  735. end)
  736. .设置中立按钮("网页搜索",function(v)--设置中立按钮
  737. 子页面("安卓","http://cn.bing.com/search?q="..pathedit.text)
  738. end)
  739. .设置消极按钮("游戏搜索",function(v)--设置消极按钮
  740. 子页面("安卓","http://a.ruansky.com/search?words="..pathedit.text)
  741. end)
  742. .显示()
  743. ----分割线-----
  744. end
  745. function 文字翻转()
  746. -----分割线-----
  747. zdy_layout={
  748. LinearLayout;
  749. orientation="vertical";--重力属性
  750. id="zdy_father_layout",
  751. {
  752. EditText;--编辑框控件
  753. id="pathedit",
  754. layout_marginTop='15dp';--布局顶距
  755. layout_width="80%w";--编辑框宽度
  756. layout_gravity="center";--重力属性
  757. Hint='请输入翻转文字(默认"txcgb")';--设置编辑框为空时的提示文字
  758. };
  759. };
  760. 对话框()
  761. .设置标题("文字翻转")--设置标题
  762. .setCancelable(true)--点击外围可取消
  763. .setView(loadlayout(zdy_layout))--设置布局
  764. .设置积极按钮("确认",function(v)--设置积极按钮
  765. if pathedit.text=="" then
  766. 写入文件(tdata.."翻转.txt","txcgb")
  767. else
  768. 写入文件(tdata.."翻转.txt",pathedit.text)
  769. end
  770. WEB小程序("zhuan")
  771. end)
  772. .设置消极按钮("取消",function(v)--设置消极按钮
  773. end)
  774. .显示()
  775. ----分割线-----
  776. end
  777. 快解密.onLongClick=function()
  778. 解密云程序("kuaijiemi")
  779. return true--防止触发点击事件
  780. end
  781. 隐藏功能.onLongClick=function()
  782. 初始功能设置()
  783. return true--防止触发点击事件
  784. end
  785. 删除收藏夹.onLongClick=function()
  786. 对话框()
  787. .设置标题('警告!')
  788. .设置消息('是否确定删除收藏夹,该操作不可恢复')
  789. .设置积极按钮('确认',function (v)
  790. 写入文件(收藏小程序,收藏夹头文件)
  791. end)
  792. .设置消极按钮('取消')
  793. .显示()
  794. return true--防止触发点击事件
  795. end
  796. 编辑器.onLongClick=function()
  797. WEB小程序("bianjiqi")
  798. return true--防止触发点击事件
  799. end
  800. 二维码.onLongClick=function()
  801. 子页面("安卓","http://txcgb.web3v.work/dh/ewm/")
  802. return true--防止触发点击事件
  803. end
  804. 手电筒.onLongClick=function()
  805. 手电筒()
  806. return true--防止触发点击事件
  807. end
  808. 自有频道.onClick=function()
  809. 密码打开网页('535934D1537AD2E6B7ED663A727EFB4EF1B27CA2A818D86697CD6983FCDA645AF72C7B83C3')
  810. end
  811. function 手电筒()
  812. function 电筒(开关)
  813. CameraManager=this.getSystemService(Context.CAMERA_SERVICE) CameraManager.setTorchMode("0",开关)
  814. end
  815. if 开关==true then
  816. 电筒(false)
  817. 开关=false
  818. else
  819. 电筒(true)
  820. 开关=true
  821. end
  822. end