示例#1
0
def click(row, col):
    left, top, _, _ = get_client_rect()
    x = col * SIZE + X0 + SIZE // 2 + left
    y = row * SIZE + Y0 + SIZE // 2 + top
    if not auto.win_active(WIN_TITLE):
        auto.win_activate(WIN_TITLE)
    auto.mouse_move(x, y, 1)
    auto.send(u"{SPACE}")
示例#2
0
文件: automine.py 项目: Andor-Z/scpy2
def click(row, col):
    left, top, _, _ = get_client_rect()
    x = col * SIZE + X0 + SIZE // 2 + left
    y = row * SIZE + Y0 + SIZE // 2 + top
    if not auto.win_active(WIN_TITLE):
        auto.win_activate(WIN_TITLE)
    auto.mouse_move(x, y, 1)
    auto.send(u"{SPACE}")
示例#3
0
def restart():
    if not auto.win_active(WIN_TITLE):
        auto.win_activate(WIN_TITLE)
    auto.send(u"{F2}")
    time.sleep(0.1)
    auto.send(u"n")
示例#4
0
文件: automine.py 项目: Andor-Z/scpy2
def restart():
    if not auto.win_active(WIN_TITLE):
        auto.win_activate(WIN_TITLE)
    auto.send(u"{F2}")
    time.sleep(0.1)
    auto.send(u"n")