From 6767b5dcffdd1ea47c3afb3fa96af5f357e6bb34 Mon Sep 17 00:00:00 2001 From: andy <1414772332@qq.com> Date: Sun, 2 Mar 2025 10:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E8=BE=93=E5=85=A5=E9=83=BD?= =?UTF-8?q?=E9=81=BF=E8=AE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.json | 2 +- touch2.py | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/index.json b/index.json index c9903f3..b625b04 100644 --- a/index.json +++ b/index.json @@ -1,3 +1,3 @@ { - "index": 1681 + "index": 3185 } \ No newline at end of file diff --git a/touch2.py b/touch2.py index 6986295..656bfeb 100644 --- a/touch2.py +++ b/touch2.py @@ -110,7 +110,7 @@ class ser(object): self.x=x self.y=y def touch(self): - self.write(f"Z6\r") + self.write(f"Z4\r") time.sleep(0.1) self.write(f"Z0\r") time.sleep(0.05) @@ -142,9 +142,7 @@ class ser(object): myprint(f"点击 index={index},{p[index]}") self.togo(pos[0],pos[1]) self.touch() - if p[index] not in "890": - # 890 不需要避让 - self.avoid() + self.avoid() if(find_text(identify_text(),"手机已锁定")): if(index==5): myprint(f"手机锁定中,已全部输入") @@ -170,7 +168,7 @@ def data_get()->dict: return {"index":0} -if __name__ == "__main1__": +if __name__ == "__main__": s=ser() s.open("com8") password=data_get().get("index",0) @@ -219,7 +217,7 @@ if __name__ == "__main1__": s.close() -if __name__ == "__main__": +if __name__ == "__main1__": # identify_text() # get_scr(_ocr_pos[0],_ocr_pos[1],_ocr_pos[2],_ocr_pos[3],f"test") # find_input_count()