Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CppWebBrowser and forms

Status
Not open for further replies.

801119

Programmer
Apr 10, 2000
311
SE
Greetings all..

How do I access the form INPUTS in the CppWebBrowser component when connected to a site?

I know what that these INPUT thingas are on the site
Code:
<INPUT size=15 class=TextBox tabIndex=1 name=Username>
<INPUT size=15 class=TextBox tabIndex=2 type=Password name=Password>
But how do I access them, so that I can write a value in it... the reason I ask, is that I'm writing a small Browser that lets me log in automaticly (I know that MSIE already have a function for it, but there I must enter Username first and then the passwords will be inserted into Password field, but I don't want it that way.. I want it to, when connected insert both Usernamd AND Password)

My problem is how I set focus and inserts the textstring into thos fields!!

if you know of a good site where I can leran more about the CppWebBrowser compoenet, I would be glad to know about it :)
(or should I ask in another thread?) I think a website that describes these things would be the best solution, or? =)


Thanks in advance!!
/801119
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
okej, guess no one really does know?! =( to bad... but I've managed to find this one!

Variant vaDocument = NZBrowser->ControlInterface->Document;
Variant stSource;
stSource = vaDocument.OlePropertyGet(&quot;body&quot;).OlePropertyGet(&quot;innerHTML&quot;);
ShowMessage(stSource);

hence cause of the confused newbi I am I can cant understand why this doens't work...

stSource = vaDocument.OlePropertyGet(&quot;Username&quot;).OlePropertyGet(&quot;value&quot;);


I only get an &quot;...EOleSysError with 'message unknown'...&quot;..

Any clues? My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top