godly
12-31-2007, 03:39 AM
Hello. Im making a program for a game. And i need to check if the Cursor changes else i cant find out if im holding the mouse on the correct place.
Basicly i need to check if the Icon of a cursor changes ingame.
It would be nice not having to attach anything into the game.
Please post VB6 questions, in the General forum.
Thank you.
the master
12-31-2007, 03:46 AM
Cursor Distinguishing and Comparing (http://www.autoitscript.com/forum/lofiversion/index.php?t20402.html)
Im not sure why you need to check the cursor though. Is there something else on screen that changes? You could look at the GetPixel API (http://allapi.mentalis.org/apilist/GetPixel.shtml) to check the color of a pixel on the screen instead
godly
12-31-2007, 05:41 AM
Im using that. And then i found out it gets the pixels behind the mouse.
If u can help me fix that i would be happy.
the master
12-31-2007, 06:26 AM
Sorry, what is the problem with it? Do you want pixels that *arnt* behind the mouse? Or do you mean your trying to getpixel on the cursor?
godly
12-31-2007, 03:38 PM
i need the pixels of the mouse since it changes icons when the mouse is over the thing.
like if u hold over a text it gets bolded. And comparing cursors would be WAY to much for VB to handle quick.
the master
12-31-2007, 07:13 PM
GetPixel will ignore the mouse cursor asif it wasnt there (like you have found out)
The idea i was getting at is that you could check the pixels on the screen. Why does the mouse change its icon? For instance if its when you move over a textbox then you know textboxes are white so you can check for a white pixel.
godly
12-31-2007, 07:46 PM
I already told you its in a game. Its WoW. Changes pixel colors ALOT you know. blending shadows etc so i really need to check the cursor :\
the master
12-31-2007, 07:59 PM
I see. In that case then the only option might be that link i posted earlier
godly
12-31-2007, 08:00 PM
Ok i see. Then thank you for the quick replies :-)