|
-
Jun 13th, 2011, 04:00 AM
#1
Thread Starter
New Member
Make a small pause?
Hey, i have a little project but ive come to an error. What it does: It goes to a site, fills a form and then submits it. But the submit is too fast. I want it to fill in info, then wait 3 seconds and then submit it.
Here is the code:
Code:
WebBrowser1.Document.All("user[screen_name]").SetAttribute("value", TextBox4.Text & intcount)
For Each element As HtmlElement In WebBrowser1.Document.All
If element.GetAttribute("className") = "submit button promotional" Then
element.InvokeMember("click")
End If
Next
I want it to have a little pause of 3 seconds after the intcount)
Any ideas?
-
Jun 13th, 2011, 04:16 AM
#2
Re: Make a small pause?
This part...
Code:
...SetAttribute("value", TextBox4.Text & intcount)..
Makes it look like you are iterating over a range of integers, submitting a form multiple times on a webpage. Is this the case?
What are you hoping to achieve?
-
Jun 13th, 2011, 04:31 AM
#3
Thread Starter
New Member
Re: Make a small pause?
Yes, i am submitting a form multiple times. isnt this allowed? i tried adding System.Threading.Thread.Sleep(5000) But it will let the whole program stop for 5 seconds, then fill and submit again too fast. i need it inbetween:/
-
Jun 13th, 2011, 04:35 AM
#4
Re: Make a small pause?
Well it does have a bad sound to it - I can not see a reason for needing this other than for spam or some kind of a primitive brute-force login utility.
-
Jun 13th, 2011, 04:38 AM
#5
Thread Starter
New Member
Re: Make a small pause?
Its not a force login, its just an account maker for a site. Isnt that allowed here?
-
Jun 13th, 2011, 07:54 AM
#6
Re: Make a small pause?
 Originally Posted by danieldedaniel
Its not a force login, its just an account maker for a site. Isnt that allowed here?
Stop doing it.
Think about it. Spamming a web site to make accounts has absolutely no legitimate reason.
"Ok, my response to that is pending a Google search" - Bucky Katt.
"There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
"Before you can 'think outside the box' you need to understand where the box is."
-
Jun 13th, 2011, 11:28 AM
#7
Re: Make a small pause?
Any malicious code is not allowed under the AUP. What you are writing may not be malicious in your mind, but I doubt it would be considered benign by the site managers.
I should add that you can solve the problem pretty easily. Because of that, you should think about what you are doing. Some people really don't care about the consequences of their actions and whether it harms or annoys other people. There is a word for someone like that, the posting of which is also against the AUP. Is that who you want to be? If so, then you can solve your issue so easily that not answering the question makes no sense: Use a timer. There are so many answers to that basic question on the forum that not answering the question won't prevent somebody from doing something unkind. However, you shouldn't be doing that thing. Not because it is against somebody elses rule, but because it should be against your own.
Last edited by Shaggy Hiker; Jun 13th, 2011 at 11:32 AM.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|