I am making a program that will automatically search for you on the internet in visual studios 2005 beta, i navigate to the page in my own webbrowser on my program well heres the code
VB Code:
j = AutoLogin.WebBrowser20.Document.All.Count Do While i < j If AutoLogin.WebBrowser20.Document.All(i).TagName = "INPUT" Then k = AutoLogin.cmbSubscribe.SelectedIndex + 1 If AutoLogin.WebBrowser20.Document.All(i).Name = "keywords" Then AutoLogin.WebBrowser20.Document.All(i).Focus() My.Computer.Keyboard.SendKeys(WordGet() & vbCrLf, True) AutoLogin.WebBrowser20.GoBack() End If End If i = i + 1 Loop
the code enters the word into the textbar and presses enter. afterwhich it gos back to the main search page and is suposed to do it again. But the source cod for the website DOESN'T CHANGE! and when it loops again on the main page it skips over the input for the searchbox and then just ends. I was wondering how i could update the source code of the website in the program allowing me to search more than once.
and btw im using a 2.4ghz xp home edition computer if that makes any difference.




Reply With Quote