Cheating Network
 
 

Go Back   Cheating Network > Offtopic Lounge > Computers
Reload this Page Bot problem. Help appreciated!



Computers

This is a discussion about Bot problem. Help appreciated! within the Computers section, where you will



Reply
 
LinkBack Thread Tools Display Modes
Old 11-07-2009, 11:52 AM   #1 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 9
Reputation: 0
oToom is an unknown quantity at this point

cBay Rating:
Default Bot problem. Help appreciated!

Okay, hey guys. So i'm trying my first attempt at a bot! I have got so far on this hugo boss thing i cannot just givup

So i would loveee some help if you don't mind.

Code:
Sub WebBrowser1DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs)
		Dim K As Integer = 0
		Dim L as Integer = 0
		Dim Emails As String = richtextbox1.Lines(K)
		Dim Samples as Integer = Convert.ToInt32(Textbox8.Text)
		
		While L < Samples
			If Webbrowser1.Url.ToString = "http://www.boss-fragrances.com/bossorange/gb/sample/r/" Then
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_firstName").SetAttribute("value", Textbox2.Text)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_lastName").SetAttribute("value", Textbox3.Text)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_emailAddress").SetAttribute("value", Emails)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_address1").SetAttribute("value", Textbox4.Text)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_address2").SetAttribute("value", Textbox5.Text)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_city").SetAttribute("value", Textbox6.Text)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_postcode").SetAttribute("value", Textbox7.Text)
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_country").SetAttribute("value", "GB")
				Webbrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_chkTerms").InvokeMember("click")
				WebBrowser1.Document.GetElementById("ctl00_main_sampleAlternateContent_submit").InvokeMember("click")
			Else
				'MsgBox("There was an error! Please check it out!", MsgboxStyle.Critical, "Error..")
				'Break
			End If
			
			If Webbrowser1.DocumentText.Contains("Order complete.") Then
				Webbrowser1.Navigate("http://www.boss-fragrances.com/bossorange/gb/sample/r/")
			
				K = K + 1
				Label11.Text = Convert.ToString(K)
			End If
			
			L = L + 1
		End While
		
		MsgBox("All done!", MsgBoxStyle.Information, "Complete.")
		
	End Sub
Okay so the problem is, it doesnt navigate back to the main page once it's completed the form once.
Also, The MsgBox comes up etc.

I am using a background worker for this. So i have the background worker with the code Navigate("website"). Then this code.

Hope you can help me out, and hope this is an okay place to post this!

Thanks in advance!
oToom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Tags
appreciated, bot, problem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone help me with this WAD problem? redlink321 Gaming 6 09-21-2009 08:36 PM
CLx problem ZanAtoS Club Bing! 28 12-25-2008 07:26 AM
CLx v1.0 problem slavik19 Club Bing! 8 12-24-2008 04:53 PM
Problem castiron93 Club Bing! 6 10-09-2008 11:38 PM
The problem with CN Sandbox Surveys 12 04-06-2008 01:39 PM




Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.