Replies: 1 comment 1 reply
-
|
Well, its a pretty basic system but its very brute force. First you have to deal with the load you are causing. This can spike the script upwards of 20-30% cpu usage, and to have that constantly running is a big load. Second is the unexpected mouse input, which will likely be happening in a delay of the actual screen state. So you end up with misclicks because the user is not expecting to need to stand still for a few frames to get a good search off. So, now that we covered some of the pitfalls, lets talk about what it is. To understand, you have to know a little about the abstraction process that FindText library uses. We take an image and essentially convert it into binary. We are left with two things:
that is what the string is, its the two components of the search which it needs. So what I have done, is produce 2x2 squares of the colors calibrated in the GUI. There is a function I wrote to facilitate this process of creating the string. Then, with those strings, I can search for solid colors of the background. You are not required to use screenshotting either, you can just run this search as its own thing. Look at the parameters on the FindText documentation and you will notice the screenshot flag. It will take the screenshot for you and give you the data on demand. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @BanditTech! Big fan of WingmanReloaded! Trying to do a much simpler AHK script for the game "Last Epoch". Trying to start with a basic loot vacuum by using PixelSearch for the drop colors. But it looks like wingman uses screenshots and text search?! Is that right? I can't quite grok all the details. Could you share a broad strokes process and what the most important files are? I got pixelsearch working for one color, but only run it when I'm holding down a key. Seems like it would be memory intensive to loop through all the drop colors all the time? Thanks for any direction you can point me in!!
Beta Was this translation helpful? Give feedback.
All reactions