- 点击跳转=>《导航贴》- Unity手册,系统实战学习
- 点击跳转=>《导航贴》- Android手册,重温移动开发
众所周知,人生是一个漫长的流程,不断克服困难,不断反思前进的过程。在这个过程中会产生很多对于人生的质疑和思考,于是我决定将自己的思考,经验和故事全部分享出来,以此寻找共鸣 !!!
专注于Android/Unity和各种游戏开发技巧,以及各种资源分享( 站、工具、素材、源码、游戏等)
有什么需要欢迎私我,交流群让学习不再孤单。

文章目录
-
- ??实践过程
- ??其他
??实践过程
脚本一
脚本二
//打开QQ聊天界面就能自动聊天了"auto"t = 0; //延迟toast("打开QQ消息界面自动聊天");//threads.start(notificationmsg);while (true) { other = ""; findMessage(); othersay = getMessage(); if (othersay != null) {var info = othersay;log("nnTa:n" + ":" + othersay);i = "";i += Me();i += "";sendMessage(i);log("nn我:n" + i);sleep(t) } findboxmsg();}function Me() { var url = "http://www.tuling123.com/openapi/api"; id1 = "llmjk"; var res = http.post(url, {//key: "65458a5df537443b89b31f1c03202a80", //图灵key: "e0fcda33be9847c8b8534abe51b4b095", //唐嫣// key: "b4438ca194064134afa28f686fbd04a5", //my图灵info: info,userid: "1", }); var html = res.body.string(); eval("b=" + html); return b.text;}function getMessage() { var information = null; if (id("listView1").exists() && id("chat_item_head_icon").exists() && id("chat_item_content_layout").exists()) {num = msgnum();icon = id("chat_item_head_icon").findOnce(num - 1);toastt = id("chat_item_content_layout").findOnce(num - 1);if (toastt != null && icon != null) { x = icon.bounds().centerX(); y = icon.bounds().centerY(); if (x 500) { information = toastt.text(); other = icon.text(); }} } return information;}function sendMessage(i) { if (id("input").exists()) {id("input").setText(i);className("android.widget.Button").text("发送").click(); }}function findMessage() { if (id("unreadmsg").exists()) {unreadmsg = id("unreadmsg").findOnce(0);x1 = unreadmsg.bounds().centerX();y1 = unreadmsg.bounds().centerY();//click(x1 - 200, y1 - 50);press(x1 - 200, y1 - 50, 50);if (id("input"
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!