Archived

This topic is now archived and is closed to further replies.

stealing pixels muahahahhaa

This topic is 5017 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

in short: i need to get a pixel(or group of pixels, one by one) located at x,y from whatever windows is displaying at this instant and save that pixel for later use. i tried MSDN but they suck for a beginner programmer. i also tred googling and most of the replies that come back are those that use MFC and i am using win32 and have no interest in learning MFC until i learn win32. thanks in advance for any help. or a link to help. or the meaning of life.

Share this post


Link to post
Share on other sites
i looked at that and getpixel will work fine because i dont need high performance... but how do i get an hdc that is a representation of the video memory that is currently being displayed?

hdc=GetDC(HWND).. doesnt that give me a handle to my window only? if i didnt paint anything onto hdc wouldnt it be blank? i need a handle to the video memory so that i can get values directly out of it dont i?

Share this post


Link to post
Share on other sites
Possibly use:
HWND GetDesktopWindow(VOID);

Then try to get the HDC from it.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getdesktopwindow.asp

And how do I make a link like that "clickable"?

Share this post


Link to post
Share on other sites
quote:
Original post by JotDot
And how do I make a link like that "clickable"?


the same way you do it in HTML, because it gets posted as HTML.

<a href="http://www.mylink.com">http://www.mylink.com</a>

will look like:


http://www.mylink.com

and i can get it to print both ways only because i possess magic powers...for future reference you can reverse engineer anyones post by clicking the "edit" button near their post. then you'll get to see the text they entered (and my magic will no longer be magic )

-me



[edited by - Palidine on March 18, 2004 1:03:05 PM]

[edited by - Palidine on March 18, 2004 1:03:52 PM]

Share this post


Link to post
Share on other sites
Edit button? That''s it?? Nothing to code like some IE plugin or anything? ARRGH. No wonder - that''s too easy and too obvious

Thanks for the tip!

Share this post


Link to post
Share on other sites