Using sendkeys

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am new to using sendkeys and I am tryint to use them to type a string to a login <input> on a webbrowser control to sign in to my account.It has a place holder that doesn`t clear the input box and use the
<span style="font-size:small <span style="font-size:small Dim txt <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small As<span style="font-size:small <span style="font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small HtmlElement<span style="font-size:small <span style="font-size:small =
WB1.Document.GetElementById(<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small "username"<span style="font-size:small <span style="font-size:small )
<span style="font-size:small <span style="font-size:small
txt.SetAttribute(<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small "value"<span style="font-size:small <span style="font-size:small ,
SendKeys(listbox.selectedindex)
<span>I have tried the code txt.invokemember("click") before setting the attribute value , because sometimes when you click on an <input> box it clears it and the set attribute works, but it doesn`t work.
<a> Can you help me with this?
<a> Thanks in advance Davco.

<span style="font-size:small <span style="font-size:small <br/>
<br/>

View the full article
 
Back
Top