Quote:
Originally Posted by RenFox
Thanks for taking time to respond.
I was wondering if C# is going to be faster at comparing images. Lets say for example i wanted to find out what my health was. I was going to have the bot use a loop to compare that health number on my game to an image, if it matched then the script would know what my health was. Same with ammo and other things. Is this an okay way to go about it?
Again thanks I am a computer science major but obviously that doesnt mean anything when it comes to stuff like this. It seems to be all about the way you think and I am trying to learn and find something i can be more passionate about on the side. Other then the same old boring hw.
|
As already mentioned, reading your health by comparing images is far from perfect.
To compare images I would use

.
Quote:
Originally Posted by alpines
A better way to read out your health would be to get the pointer of the health variable and read it directly out from there. This way is by far the fastest and safest (compared to ImageSearch) but CAN be detected by anti-cheat programs which might have to get bypassed.
|
I don't think "taking a screenshot" is safer than reading the memory of a foreign process

But it's much, much faster, and more reliable, if done right.