网课搜题浮窗软件实战开发一个浮窗式的安卓搜题软件

准备知识:javascript auto.js一些基础语法
打包工具:auto.js7.401
免费接口可以自己去找!网上一大堆。
学习资料领取及工具可点击领取学习工具

效果图如图所示:


功能:
1.可以移动,并且可以进行移动
2.可以最小化,点击一下又可以恢复大小
3.可以快速增贴你所复制的内容。
4.如何设置数据库,并且数据库内容随自己去监管。


//公众号:阿超程序
function 刷新屏幕方向(t) {this.t = t || 100;this.callBackAry = new Array;this.Orientation = context.resources.configuration.orientation;this.Width = this.Orientation == 1 ? device.width : device.height;this.Height = this.Orientation == 2 ? device.width : device.height;this.addChangeListener = (fun) => {if (typeof (fun) == "function") {this.callBackAry.push(fun);};};setInterval(() => {if (context.resources.configuration.orientation != this.Orientation) {this.Orientation = context.resources.configuration.orientation;this.Width = this.Orientation == 1 ? device.width : device.height;this.Height = this.Orientation == 2 ? device.width : device.height;for (let i in this.callBackAry) {try {if (typeof (this.callBackAry[i]) == "function") {this.callBackAry[i](this.Width, this.Height, this.Orientation);};} catch (e) {throw e;};};};}, this.t);};var 悬浮控制 = function (window, windowid, ar, screen_change_obj) {this.Orientation = context.resources.configuration.orientation;this.Width = this.Orientation == 1 ? device.width : device.height;this.Height = this.Orientation == 2 ? device.width : device.height;if (screen_change_obj) {screen_change_obj.addChangeListener((Width, Height, Orientation) => {this.Orientation = Orientation;this.Width = Width;this.Height = Height;var xy = this.windowGXY(window.getX(), window.getY(), this.G(window));this.windowyidong([[window.getX(), window.getY()],[xy.x, xy.y]]);});};this.isAutoIntScreen = true;this.Click = function () { };this.Move = function () { };this.LongClick = function () { };this.setClick = (fun) => {fun = fun || function () { };this.Click = fun;};this.setMove = (fun) => {fun = fun || function () { };this.Move = fun;};this.setLongClick = (fun, ji) => {fun = fun || function () { };this.LongClick = fun;if (parseInt(ji)) {this.Tjitime = parseInt(ji) / 50;};};this.TX = 0;this.TY = 0;this.Tx = 0;this.Ty = 0;this.Tyidong = false;this.Tkeep = false;this.Tjitime = 12;this.Ttime = 0;setInterval(() => {if (this.Tkeep) {this.Ttime++;if (!this.Tyidong && this.Ttime > this.Tjitime) {//非移动且按下时长超过1秒判断为长按this.Tkeep = false;this.Ttime = 0;this.LongClick();};};}, 50);if (windowid) {windowid.setOnTouchListener(new android.view.View.OnTouchListener((view, event) => {this.Move(view, event);switch (event.getAction()) {case event.ACTION_DOWN:this.Tx = event.getRawX();this.Ty = event.getRawY();this.TX = window.getX();this.TY = window.getY();this.Tkeep = true; //按下,开启计时break;case event.ACTION_MOVE:var sx = event.getRawX() - this.Tx;var sy = event.getRawY() - this.Ty;if (!this.Tyidong && this.Tkeep && this.weiyi(sx, sy) >= 10) {this.Tyidong = true;};if (this.Tyidong && this.Tkeep) {window.setPosition(this.TX + sx, this.TY + sy);};break;case event.ACTION_UP:if (!this.Tyidong && this.Tkeep && this.Ttime < 7) {this.Click();};this.Tkeep = false;this.Ttime = 0;if (this.Tyidong) {if (this.isAutoIntScreen) {threads.start(new java.lang.Runnable(() => {this.windowyidong(this.IntScreen());}));} else {threads.start(new java.lang.Runnable(() => {this.windowyidong(this.ViewIntScreen());}));};this.Tyidong = false;};break;};return true;}));};this.G = (win, view) => {//返回悬浮窗的坐标范围。var K = 36, //悬浮窗的隐形边矩H = 66; //手机通知栏的高度var ary;if (!ar) {if (view) {ary = [[-view.getX(), -view.getY()],[this.Width - (view.getX() + view.getWidth()), this.Height - (view.getY() + view.getHeight()) - H - K]];} else {ary = [[0, 0],[this.Width - win.getWidth() + K * 2, this.Height - win.getHeight() - H + K * 2]];}} else {if (view) {ary = [[-view.getX(), H - view.getY()],[this.Width - (view.getX() + view.getWidth()), this.Height - (view.getY() + view.getHeight())]];} else {ary = [[0, H],[this.Width - win.getWidth(), this.Height - win.getHeight()]];}};return ary;};

请阿超喝一杯水更有力气为你解答、点击打赏

auto.js开发网课搜题浮窗软件,类似按键精灵可浮窗式快速搜题相关推荐

  1. html效果浮窗效果,jQuery简单实现中间浮窗效果

    本文实例讲述了jQuery简单实现中间浮窗效果.分享给大家供大家参考,具体如下: basic.css: /* * -- 样式说明 -- * 最大优先实现法,全局能实现不用区域,区域能实现不用模板,模板 ...

  2. autojs长按坐标没反应_Auto.js 一个主要由无障碍服务实现的不需要Root权限的类似按键精灵的自动操作软件...

    新增 插件(将提供OCR插件) 新增 images图片处理函数(参见<图片处理>示例),灰度化二值化高斯模糊等 优化 找图找色的内存泄漏 修复 偶发getClip()报错问题 修复 从QQ ...

  3. 商务软件开发网课答案

    目录 第一章 ASP.NET概述 单元测试 第二章 Web系统设计基础 单元测试 第三章 网站创建基础 单元测试 第四章 ASP.NET编程基础 第五章 常见web控件的用法 单元测试 第六章 母版页 ...

  4. 有搜python题目的软件吗_Python开发及应用-中国大学mooc-试题题目及答案

    [单选题]人性化设计原则是在设计中对人的心理.生理需求和精神追求的尊重与满足,是设计中的( ),是对人性的尊重. A. 价值体现 B. 创意思维 C. 文化意蕴 D. 人文关怀 [判断题]液化石油气的 ...

  5. autojs零基础入门视频教程,跟我学Auto.js Pro安卓免ROOT引流脚本开发教程,飞云脚本学院2019最新录制

    课程大纲(更新中-) 基础课程 [已完成]01安装Visual Studio Code(时长9分33秒)在线观看 [已完成]02安装Auto.js Pro(时长5分48秒)在线观看 [已完成]03解读 ...

  6. auto.js 实现信息发送、QQ点赞、微信点赞、健康日报签到

    文章目录 auto.js开发文档 安装total control 在手机端安装auto.js apk 安装vscode 短信多条发送 QQ点赞 微信点赞 健康日报填写 叠猫猫 auto.js开发文档 ...

  7. Auto.js学习笔记1:开发需要准备什么工具和编程语言知识?

    什么是Auto.js? 根据官方文档定义:Auto.js是一款无需root权限的JavaScript自动化软件. Auto.js是一款安卓手机的应用主要用webview,和微信一样,安装在手机上: A ...

  8. 安卓自动操作软件 AUTO.JS 4.1.1 ALPHA2 免费版下载

    一个主要由无障碍服务实现的不需要Root权限的类似按键精灵的自动操作软件,可以实现自动点击.滑动.输入文字.打开应用等.缙哥哥目前支付宝蚂蚁森林偷能量就是基于 Auto.js 实现的. 非商业性使用  ...

  9. Auto.js Pro安卓免ROOT引流脚本开发系列教程07微信运动点赞(4)

    课程内容 翻页前判断是否在指定页面 翻页到达底部的处理 封装接口函数 开发环境与工具 开发环境:Visual Studio Code Auto.js:Pro 7.0.3-7 终端设备:红米NOTE5A ...

最新文章

  1. (C++)1046 划拳
  2. KTable的简单介绍
  3. Java知多少(23)类的基本运行顺序
  4. 老王Python-进阶篇4-面向对象第三节
  5. UVA 1609 Foul Play 不公平竞赛 (构(luan)造(gao)+递归)
  6. pc网站和移动网站在同一服务器吗,机动都市阿尔法PC服和移动服互通吗
  7. 怎么把文件放到docker容器里
  8. cisco3550交换机限速配置
  9. pulsar配置文件常用配置项
  10. 用.net 2003开发Windows CE应用,解决与pocket pc通讯的问题
  11. Ubuntu18.04安装Oracle11g
  12. for linux pdf转mobi_linux PDF转换为SWF
  13. ubantu + anaconda + TensorFlow 1.13.1
  14. Android之scheme使用
  15. 基于JSP校园二手交易系统的设计与实现
  16. 【电子科学系保研】-- 西安交通大学保研之旅
  17. English语法_形容词/副词3级-比较级_常用短语
  18. java按键事件空格_java键盘事件 空格键
  19. win10下usb rndis驱动配置
  20. 写在2013年的最后一天

热门文章

  1. 疏基修饰银铟硒量子点AgInSe2 Qds-SH|生物素修饰硫化银量子点Ag2S Qds-Biotin|近红外量子点的偶联修饰定制服务
  2. boundary()函数寻找三维平面点云精确边界(二)
  3. 如何使用ArcGIS生成等高线
  4. 系统命令_$SECONDS
  5. 杰理之AD14N系列程序获取复位源与唤醒源接口介绍【篇】
  6. 解决: This Python interpreter is in a conda environment, but the environment has not been activat
  7. Python:王者荣耀壁纸爬取
  8. Android视频解码及渲染
  9. 【ADB】设置adb输入法
  10. 基于JavaWeb的酒店客房预定管理系统