|
-
Aug 16th, 2000, 02:36 PM
#1
Thread Starter
Monday Morning Lunatic
Hang on, you mean:
Check if the specific screen pixel is a certain colour, and if so, simulate a click event on it?
You need some API for this. What to do: WindowFromPoint will return the window handle. Then, offset the point into coordinates for that window. Then, get the colour using GetPixel. Compare that, and if so, simulate a click at that position, using SendMessage and WM_CLICK. If you need an example I'll post it here.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|