炉石传说脚本(一)

屏幕坐标获取工具代码

#屏幕坐标获取工具
#导出模块
import time
import datetime
import schedule
import win32gui, win32api, win32con
#计时器

def run():
    schedule.every(1).seconds.do(job1)
 
    while True:
        schedule.run_pending()
        time.sleep(1)
#鼠标单击
def job1():
    xy = win32api.GetCursorPos()
    print(xy)
    time.sleep(2)
    print("xy:", datetime.datetime.now())
 
run()

Update

update one 2018/12/06 22:00

猜你喜欢

转载自blog.csdn.net/chenmo2019/article/details/84865351