Code Monkey home page Code Monkey logo

Comments (11)

aicezam avatar aicezam commented on June 3, 2024 1

肯定没问题啊,只要不是一直点同一个坐标点就不会有问题

from smartonmyoji.

Colibrow avatar Colibrow commented on June 3, 2024 1

已更新支持一个脚本同时支持匹配多个窗口的功能~ @Colibrow

优秀,不过我刷不了了,四个号被鬼使黑了。

from smartonmyoji.

aicezam avatar aicezam commented on June 3, 2024

您好,我想请问下,如果多个游戏窗口的话,鼠标点击事件可以并发操作吗?

你的问题应该不只是点击事件吧,还有截图和匹配能否并发,有两种方式可以实现并发操作,一种是改代码,把多个窗口的句柄存在数组里面,然后针对这组句柄进行循环截图和点击,也可以改成线程的方式,每个线程一个句柄(具体怎么操作还没研究,后面重构UI的时候可以考虑加上这个功能),另一种方法要简单些,就是多开几个这个辅助脚本(每个要点击的游戏窗口开一个对应的脚本,没法一个脚本对应多个窗体)

另外这个切图和坐标工具这一套是什么实现的

不清楚你什么意思?并没有使用到任何切图和坐标工具,如果是代码里面截图方法的话,后台截图用的cv2实现,前台截图用的PIL,坐标是用pywin32获取的窗体坐标和cv2的匹配到的坐标,相加减计算出来的

from smartonmyoji.

lisadaddy avatar lisadaddy commented on June 3, 2024

了解了,非常详尽了。我也是刚学习,还在摸索中。感谢感谢

from smartonmyoji.

lisadaddy avatar lisadaddy commented on June 3, 2024

能加个微信吗 我在上海工作 yazhen457

from smartonmyoji.

Colibrow avatar Colibrow commented on June 3, 2024

尝试起了多个进程发现鼠标位置没法在多个窗口来回动(用的Pyinstaller打出来的exe)

from smartonmyoji.

aicezam avatar aicezam commented on June 3, 2024

我尝试了下,是可以的~

from smartonmyoji.

aicezam avatar aicezam commented on June 3, 2024

尝试起了多个进程发现鼠标位置没法在多个窗口来回动(用的Pyinstaller打出来的exe)

我自己测试的时候,是俩不同的窗口,突然想起来,如果窗口名称一样,就会冲突,有个窗口必定找不到,所以会失败,改天我加个兼容多开的功能~

from smartonmyoji.

Colibrow avatar Colibrow commented on June 3, 2024

是的,我把window的title改成了handle,本地是可以了,然后目前我设置的匹配间隔是2s,这个应该到1s也没啥问题吧

from smartonmyoji.

aicezam avatar aicezam commented on June 3, 2024

已更新支持一个脚本同时支持匹配多个窗口的功能~ @Colibrow

from smartonmyoji.

aicezam avatar aicezam commented on June 3, 2024

emmmmm,太奔放了吧,我还没被鬼使黑找过

from smartonmyoji.

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.