Coding pixel reading

  • Guest, it's time once again for the hotly contested and exciting FoH Asshat Tournament!



    Go here and fill out your bracket!
    Who's been the biggest Asshat in the last year? Once again, only you can decide!

AladainAF

Best Rabbit
<Gold Donor>
12,846
30,787
I want to write some automation that I want to be able to pixel read to get RGB values and stuff then send messages and the like such as click, drag, release mouse, etc. I know Auto hot key I think does this, but I cannot find any working examples of it. Any recommendations? Similar to like what bots do on games to auto play or whatnot.
 

DickTrickle

Definitely NOT Furor Planedefiler
12,758
14,598
I really can't provide much help but a long time ago I used a version of the script below to automate fishing in Torchlight 2 to get an achievement (fucking sad, I know). It basically reads a pixel and then decides what to do based on the outcome of the color.

[AHK SCRIPT] Torchlight II Auto-fishing

Perhaps that could be a stepping stone.
 
  • 1Like
Reactions: 1 user

Bandwagon

Kolohe
<Silver Donator>
22,502
58,996
I can't remember what it's called for the life of me, but there was some open source code used in one of the early versions of Ardupilot that would keep the drones level and oriented by recognizing the horizon. There's a lot of this sort of stuff being used in DIY robotics right now, much of which is open source.

I can't direct you towards exactly what you're looking for, but scouring DIY Drones subgroups might point you in the right direction. Look for computer vision subgroups. Or you could ask Tuco Tuco for some input.
 
  • 1Like
Reactions: 1 user