|
-
Oct 18th, 2010, 12:08 AM
#1
Thread Starter
New Member
timer w/ button
Dear Friends,
Please help me how to create a button autoclick every 2 sec.
thank you all
God Bless
-
Oct 18th, 2010, 06:10 AM
#2
Re: timer w/ button
Welcome to the forums. 
Why do you want to do this?
-
Oct 18th, 2010, 06:55 AM
#3
Fanatic Member
Re: timer w/ button
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
If I helped you out, please take the time to rate me 
-
Oct 18th, 2010, 07:23 PM
#4
Thread Starter
New Member
Re: timer w/ button
 Originally Posted by Hack
Welcome to the forums.
Why do you want to do this?
because a create a chat program that have a refresh button and i want the refresh button automatic click every 2 seconds. thank
God Bless
-
Oct 18th, 2010, 07:55 PM
#5
Thread Starter
New Member
Re: timer w/ button
 Originally Posted by J-Deezy
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 
hmm i I want to create that for my chat program because my chat program have a refresh button and i want it every 2 seconds the refresh button will automatic click to load message
thank you please help me
-
Oct 19th, 2010, 01:22 AM
#6
Member
Re: timer w/ button
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...
-
Oct 19th, 2010, 01:31 AM
#7
Re: timer w/ button
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.
More important than the will to succeed, is the will to prepare for success.
Please rate the posts, your comments are the fuel to keep helping people
-
Oct 19th, 2010, 04:05 AM
#8
Thread Starter
New Member
Re: timer w/ button
Thank you All This is the Big Help
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
|