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
# 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
# 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?
# 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)