Giter Site home page Giter Site logo

sharokku4869 / dingdingautoplaycard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1414044032/dingdingautoplaycard

0.0 0.0 0.0 21.07 MB

钉钉自动上下班打卡辅助,基于Python,adb,实现,打卡后自动发送邮件提醒。短信提醒

Python 100.00%

dingdingautoplaycard's Introduction

DingDingAutoPlayCard


钉钉自动上下班打卡辅助 (定时调度建议使用schedule模块提供的定时功能来触发打卡,本项目使用的是循环判断不再更新)

新增adb安装文件,可能下载地址有的同学无法访问。

4版本基于版本2通过pyinstaller编译为exe文件,只保留了发送邮件功能,只需要安装adb后修改配置文件后,即可使用。不需要依赖python环境。

1版本实现自动打卡,邮件提醒。

2版本新增短信提醒。通过百度OCR进行文字识别,twilio发送短信,两个版本单独运行。(使用twilio的免费短信实现)

3版本新增打卡过程中录像保存到本地的功能,通过线程队列来实现。

twilio注册地址https://www.twilio.com

基于windows10 ,Python3.6,adb,安卓手机实现。需要安装adb 和python运行环境。原理:通过python逻辑化的调度cmd来执行adb来操作安卓手机。

效果展示:


message daka daka1daka2

1.安装 ADB:


windows版本adb下载地址: https://adb.clockworkmod.com/

安装完成后,把adb.exe所在文件夹路径加入环境变量Path中。

1.添加adb到path 2.添加adb到path 3.添加adb到path

手机需要打开开发者选项,通过USB数据线连接电脑(可通过wifi来连接手机用adb)。

打开CMD命令行,输入“adb devices”,能成功显示手机信息即可。

cmdshow

2.安装Python3.6


pythonshow

3.获取屏幕尺寸,设置模拟点击位置:

热心网友提供的简洁方式:可以打开"开发者设置"的输入找到"指针位置" 即可得到点击XY坐标轴。

screen1 滑动解锁手机。如果手机屏幕自动点亮后不需要解锁。可以在文件中删除滑动解锁的部分。

像素点的获取:


screen1 screen2

画图工具打开保存到电脑的设备截图:


screen3 screen4 screen5

4.修改文件参数:

新增配置文件,直接修改配置文件即可

screen6

5.运行:

定位到文件所在目录。然后执行命令“python DingDing_Secend.py”


运行: 'python DingDing_Secend.py'

screen7

6.参考资料:


dingdingautoplaycard's People

Contributors

1414044032 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.