Member Login
 ѤҪԡ
 к:
ʼҹ?
ʶԵҪԡ:
Total:16,634
Latest:
nattapon1379
Onlines:
ؤŷ:54 

Category

Set/Get html data VB6 ...

All Articles >> VB >> - Set/Get html data VB6 ...

Set/Get html data VB6 ...
 
                պͤǨŧ¤Ѻ ͧ˹áŧ令Ѻ ѹǹҡͧ Set/Get html data VB6 ҤáѺչ֧ͧҶͧ username Ѻ password ѧ˹ log in ͧྨ ѹԧöҧͧҤá¤Ѻ Ч͵Ѵ͹Ӷе ӵҧ sign in ͧ hotmail ٤Ѻ txtURL ͹ webbrowser 繤
 
1. ͹蹵ͧҵҧҤá䢤Ѻ͹ШѴ˹ҵҴѧٻ
 
 
2. 鴹
Private Sub cmdnavigate_Click()
WebBrowser.Navigate txtURL.Text, navNoReadFromCache
End Sub
Private Sub cmdlogin_Click()
Do
DoEvents
Loop Until Not WebBrowser.Busy
Set docCurrentHTML = WebBrowser.Document.documentElement.All
For Each Item In docCurrentHTML
If Item.tagName = "INPUT" Then
If Item.Name = "login" Then
Item.Value = txtusername.Text
Exit For
End If
End If
Next Item
For Each Item In docCurrentHTML
If Item.tagName = "INPUT" Then
If Item.Name = "passwd" Then
Item.Value = txtpassword.Text
Exit For
End If
End If
Next Item
WebBrowser.Document.Forms(0).submit
End Sub
 
3. "www.hotmail.com" ŧ txtURL ǡ navigate
 
 
4. username password ͧ hotmail С login hotmail ѧࡵ username Ѻ password text box ж١͹ text field ͧ hotmail
 
 
5. username password ١ͧѧ͡ѧٻ
 
 
6. ͡ҡѧ set data ҡ cmbKeyword ѧ text field serach ա ͧԡ set value
 
 
Ѻ鴧 ءªԧ աԴ֧Ѻ繺ҧʹѴŧ ԹչФѺ ҡôԵ¹Ҵ¡դѺ
 
: