Sign in to follow this  
Followers 0
jougan

PixelGetColor Help

3 posts in this topic

When you use PixelGelColor, does it check the color as if the mouse were at that position?

I used the Window Info Tool thing to check the color of some locations in-game, but it always

shows up as the same 3 colors, regardless of the mouse position.

The cursor is bigger than the standard windows cursor, and i was wondering if it was

instead getting the color of the cursor.

I used PixelGetColor and had it display the color to a window, but it always shows up as the same

3 colors that the Window Info Tool says.

If it does check the color as if the cursor was at that position, is there a way to change the

location it checks in relation to the mouse?

I'm trying to make a script that will check if some locations are empty by the pixel colors, and if

they are save them into some variables to be used later. I can't get the colors of the locations to

work show up right though.

Thx for any help

Btw game is Diablo II LoD

Share this post


Link to post
Share on other sites



PixelGetColor takes in two arguments, the x and y for a location on your screen. Makes sure you have the proper MouseCoordMode set first. Unless you dynamically change the x and y in your PixelGetColur, you will always get the same color.


www.itoady.com

A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Share this post


Link to post
Share on other sites

I had the PixelCoorMode set to right spot, and i used MouseMove to make sure it was

checking the right locations. I don't know what "dynamically change the x and y in your

PixelGetColur" means so i guess im SOL.

:whistle:

Gonna have to find a different way to do it unless anyone else has an idea.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0