随笔分类 -  python

日常遇到需要python解决问题
摘要:按下鼠标左键, 连击 按下鼠标右键, 停止 import win32api import time from pynput.mouse import Button, Controller mouse = Controller() while True: if (win32api.GetAsyncKe 阅读全文
posted @ 2020-05-26 17:47 strive-sun 阅读(1355) 评论(0) 推荐(0)
摘要:import win32gui import win32ui import win32con name = "test.txt - Notepad" hwnd = win32gui.FindWindow(None, name) left, top, right, bot = win32gui.Get 阅读全文
posted @ 2020-04-14 11:39 strive-sun 阅读(1234) 评论(0) 推荐(0)
摘要:.py import win32api, win32con, win32gui import win32gui_struct import ctypes from ctypes import * GUID_DEVINTERFACE_USB_DEVICE = "{A5DCBF10-6530-11D2- 阅读全文
posted @ 2020-03-18 11:16 strive-sun 阅读(1114) 评论(0) 推荐(0)
摘要:下载对应版本的 chromedriver,不知道版本的请参考: https://stackoverflow.com/a/55266105/11128312 接下来将下载的 chromedriver.exe 放到 python 文件下 如图: 后面就可以在 cmd.exe 里面尽情发挥了 最小的例子: 阅读全文
posted @ 2019-11-22 15:20 strive-sun 阅读(5459) 评论(0) 推荐(2)