chenqingspring / dd-punch

基于『触动精灵』的钉钉自动打卡脚本
347 stars 105 forks source link

请问如何判断钉钉是否已经登录? #2

Open test98123456 opened 6 years ago

test98123456 commented 6 years ago

钉钉如果未登录,自动获取焦点输入账号密码登录,然后再点击打卡,否则直接打开,所以 如何判断钉钉是否已经登录?

chenqingspring commented 6 years ago

理论上用触动精灵提供的文字识别的API可以实现。触动精灵脚本开发视频教程

test98123456 commented 6 years ago

我用了比较笨的方法,用isColor函数判断了钉钉的登录页,如果出现了那个颜色就让脚本执行登录去了,/尴尬

chenqingspring commented 6 years ago

哈哈 能work就是好方法!