المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : I need to copy (CTRL+C) a web page... C++



C++ Programming
04-19-2011, 04:23 AM
Hi All,

I am tring to write an application that open a web page and Copy its data to the clipboard.
I know i can use function to httpRead the page into a buffer, but in this case i have all the html's tags
and i do not need them, if i use copy (CTRL+C) i am able to only get the text.

I thought to open an IE process with the url as parameter and then use the SendMessage API with the process handle and the CTRL+A as the message and then CTRL+C as the message (hopefully it will generate a Select All and Copy).

If this works would it be able to work when the user is logout (no visible UI).

Love to hear your thought about it, i am working with C++ or C# on windows.

Thanks a lot for your time,
Ram.