Giter VIP home page Giter VIP logo

Comments (5)

misakamikodo avatar misakamikodo commented on August 27, 2024
from mhxy import *

if __name__ == '__main__':
    init(idx=1)
    while True:
        t = Util.locateCenterOnScreen(r'resources/small/kuang.png')
        if t is not None:
            pyautogui.leftClick(t.x, t.y)
            cooldown(0.1)
            t = Util.locateCenterOnScreen(r'resources/small/select.png')
            if t is not None:
                pyautogui.leftClick(t.x, t.y)
            cooldown(5)
            t = Util.locateCenterOnScreen(r'resources/small/dig.png')
            if t is not None:
                pyautogui.leftClick(t.x, t.y)
                cooldown(5)
        cooldown(2)

这样看见矿就挖,挂三四次就两级了

from mhxy_script.

chenliangqi123 avatar chenliangqi123 commented on August 27, 2024

大佬 你是不是加了三个png图片在resouces/small目录下面。。。

from mhxy_script.

chenliangqi123 avatar chenliangqi123 commented on August 27, 2024

还有一个问题就是给脚本权限的问题 我之前脚本是可以控制鼠标的 今天用了一下脚本不知道为什么脚本无法控制鼠标

from mhxy_script.

misakamikodo avatar misakamikodo commented on August 27, 2024

大佬 你是不是加了三个png图片在resouces/small目录下面。。。

是的,就是对应mine/norm_grey_mine.png、mine/mine_select.png 、mine/collect.png 这三个

from mhxy_script.

misakamikodo avatar misakamikodo commented on August 27, 2024

还有一个问题就是给脚本权限的问题 我之前脚本是可以控制鼠标的 今天用了一下脚本不知道为什么脚本无法控制鼠标

除了没用管理员启动,别的我就不知道了

from mhxy_script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.