Dear Friends,
Please help me :( how to create a button autoclick every 2 sec.
thank you all
God Bless
Printable View
Dear Friends,
Please help me :( how to create a button autoclick every 2 sec.
thank you all
God Bless
Welcome to the forums. :wave:
Why do you want to do this?
Guess it's some sort of automated clicking for a game perhaps? Something that requires a large amount of clicking in a short amount of time. Alternately, it could be used to cheat your way to a really high clickcount on one of those facebook games :)
Try to create a timer which is enabled = true and Interval = 2000, interval = 2000 because it is in millisecond, so 2000 = 2 second.vb Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick btnRefresh.PerformClick() End Sub
I hope this could help you...
Like palautot said, but you do not need to actually click the button, just call the corresponding sub whenever you need it
vb.net Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Button1_Click(sender, e) End Sub
On a more elegant solution I would create a procedure to refresh your chat and call that from both the timer tick and the button.
Thank you All This is the Big Help