Submit web page through program

Hi friends
very good morning to all IT- masters..

In my project i want to submit a web page by pressing submit button
but not manuaaly. form will be submitted by my program.
I am using VC++. and using IHTMLDocument2 interface to reading elements
IHTMLInputElement gives me button element.

How can i do that.
If anybody has idea then please reply me

Thanks in advance

Harish dixit
[435 byte] By [harish_dixit1] at [2007-11-19 19:42:28]
# 1 Re: Submit web page through program
try ::SendInput() (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp)
if thats wat you are looking for..then there are many threads that have already discussed the same, please do a search ...
regards
sreehari at 2007-11-10 23:42:59 >
# 2 Re: Submit web page through program
Thanks sreehari,

But sendinput() is only work for windows buttons.
This submit button that i want to click is a element of HTML page.
How will ido that?
harish_dixit1 at 2007-11-10 23:44:07 >
# 3 Re: Submit web page through program
this could help ya
How To Automate Internet Explorer to POST Form Data (http://support.microsoft.com/kb/167658)

also chcck these out
Using ActiveX Controls to Automate Your Web Pages (http://msdn.microsoft.com/workshop/components/activex/tutorial.asp)
Reusing Browser Technology Walkall (http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/browser/walkall/default.asp)
sreehari at 2007-11-10 23:45:11 >