Coding pixel reading

AladainAF

Hard truths cut both ways
<Donor All-Stars>
5,916
9d 1h 56m
Reactions
11,408 368 0 0
#1
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

Analrapist
<Donors Crew>
4,920
11d 18h 2m
Reactions
3,582 536 0 0
#2
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.
 

AladainAF

Hard truths cut both ways
<Donor All-Stars>
5,916
9d 1h 56m
Reactions
11,408 368 0 0
#3
It is. Thank you.
 

Bandwagon

Drones and stuff
<Donors Crew>
4,245
14d 14h 31m
Reactions
8,333 1,066 0 0
#4
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.