|
-
Aug 1st, 2013, 10:44 AM
#50481
-
Aug 1st, 2013, 10:45 AM
#50482
-
Aug 1st, 2013, 10:45 AM
#50483
-
Aug 1st, 2013, 10:46 AM
#50484
-
Aug 1st, 2013, 10:46 AM
#50485
-
Aug 1st, 2013, 10:47 AM
#50486
-
Aug 1st, 2013, 10:47 AM
#50487
-
Aug 1st, 2013, 10:48 AM
#50488
-
Aug 1st, 2013, 10:48 AM
#50489
-
Aug 1st, 2013, 10:49 AM
#50490
-
Aug 1st, 2013, 10:49 AM
#50491
-
Aug 1st, 2013, 10:50 AM
#50492
-
Aug 1st, 2013, 10:50 AM
#50493
-
Aug 1st, 2013, 10:51 AM
#50494
-
Aug 1st, 2013, 10:52 AM
#50495
-
Aug 1st, 2013, 10:52 AM
#50496
-
Aug 1st, 2013, 10:53 AM
#50497
-
Aug 1st, 2013, 10:53 AM
#50498
-
Aug 1st, 2013, 10:54 AM
#50499
-
Aug 1st, 2013, 10:59 AM
#50500
Re: Post Race!
I have 97 more post to pass up chrisjk.
-
Aug 1st, 2013, 11:00 AM
#50501
Re: Post Race!
And only 201 to pass up ghost ryder.
-
Aug 1st, 2013, 11:01 AM
#50502
Re: Post Race!
Code:
For post As Integer = 0 to 200
VBForums.QuickReply = post.ToString()
VBForums.PostQuickReply()
Next
VBForums.QuickReply = "I passed up ghost ryder!"
VBForums.PostQuickReply()
Ahh, if only.
-
Aug 1st, 2013, 11:02 AM
#50503
Re: Post Race!
Actually.... I probably could.
-
Aug 1st, 2013, 11:02 AM
#50504
-
Aug 1st, 2013, 11:32 AM
#50505
-
Aug 1st, 2013, 11:33 AM
#50506
Re: Post Race!
I wonder if in 10+ years of this thread anybody else thought of that!
-
Aug 1st, 2013, 11:33 AM
#50507
-
Aug 1st, 2013, 01:19 PM
#50508
-
Aug 1st, 2013, 01:20 PM
#50509
Re: Post Race!
Yes! That last post proves how easy it is to make an auto typer program.
-
Aug 1st, 2013, 01:21 PM
#50510
Re: Post Race!
Code:
Option Strict On
Option Explicit On
Public Class VBForums
Private ele_txt As HtmlElement
Public Property QuickReplyTextBox() As HtmlElement
Get
Return ele_txt
End Get
Set(ByVal value As HtmlElement)
ele_txt = value
End Set
End Property
Private ele_btn As HtmlElement
Public Property QuickReplyButton() As HtmlElement
Get
Return ele_btn
End Get
Set(ByVal value As HtmlElement)
ele_btn = value
End Set
End Property
Private _val As String
Public Property Value() As String
Get
Return _val
End Get
Set(ByVal value As String)
_val = value
End Set
End Property
Public Sub SetText()
If IsNothing(_val) OrElse _val = String.Empty OrElse IsNothing(ele_txt) Then
Throw New NullReferenceException()
Else
ele_txt.SetAttribute("value", _val)
End If
End Sub
Public Sub PostQuickReply()
If IsNothing(_val) OrElse _val = String.Empty OrElse IsNothing(ele_btn) Then
Throw New NullReferenceException()
Else
ele_btn.InvokeMember("click")
End If
End Sub
End Class
-
Aug 1st, 2013, 01:21 PM
#50511
Re: Post Race!
Code:
Option Strict On
Option Explicit On
Public Class Form1
Private Sub PostButton_Click(sender As Object, e As EventArgs) Handles Button1.Click
Timer1.Enabled = Not (Timer1.Enabled)
End Sub
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
'Button ID - qr_submit
'Textbox Attributes:
' Tab Index = 1
' Role = Textbox
' Dir = ltr
' Parent ID = cke_contents_vB_Editor_QR_editor
Dim wb As WebBrowser = DirectCast(Me.Controls("WebBrowser1"), WebBrowser)
'Get parent
Dim parent_textbox As HtmlElement = wb.Document.GetElementById("cke_contents_vB_Editor_QR_editor")
Dim text_box As HtmlElement = Nothing
'Get all elements in parent
For Each el As HtmlElement In parent_textbox.All
'Check if the element matches the textbox attributes
If el.TabIndex = 1 AndAlso el.GetAttribute("role") = "textbox" Then
'If so then set textbox
text_box = el
End If
Next
'New instance of VBForums
Dim vb As New VBForums
With vb
.QuickReplyTextBox = text_box
.QuickReplyButton = wb.Document.GetElementById("qr_submit")
End With
'Loop <x> amount of times
Static post As Integer = 0
Dim str As String = post.ToString
'Atleast four letters:
Select Case post
Case Is < 10
str = "000" & post.ToString
Case Is < 100
str = "00" & post.ToString
Case Is < 1000
str = "0" & post.ToString
End Select
'Set value
vb.Value = str
vb.SetText()
'Post
vb.PostQuickReply()
post += 1
If post = 200 Then
Timer1.Enabled = False
post = 0
End If
End Sub
End Class
-
Aug 1st, 2013, 01:22 PM
#50512
Re: Post Race!
Man, this would've been great to do the birthdays!
-
Aug 1st, 2013, 01:23 PM
#50513
Re: Post Race!
All I do is set the interval to 31000.
-
Aug 1st, 2013, 01:24 PM
#50514
Re: Post Race!
I guess I could have globally declared VBForums and set the properties in the button's click.
-
Aug 1st, 2013, 01:24 PM
#50515
Re: Post Race!
I wasn't really focusing on efficiency.
-
Aug 1st, 2013, 01:24 PM
#50516
-
Aug 1st, 2013, 01:30 PM
#50517
-
Aug 1st, 2013, 02:44 PM
#50518
Re: Post Race!
 Originally Posted by dday9
Haha! I took it all in!
Ewww its all sticky and warm o.O
-
Aug 1st, 2013, 04:54 PM
#50519
Re: Post Race!
If you want more information on building a Sega Genesis Emulator in either VB6 or VB.Net, please subscribe to this thread as I will have updates and new information daily. Were building this baby from scratch from the ground up 
Lets Make a Sega Genesis Emulator (VB6 & VB.Net)
-
Aug 1st, 2013, 04:54 PM
#50520
Re: Post Race!
And no its not spam 
...or is it
Tags for this Thread
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
|