VB 2010 Repeat (need help)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noober123
    New Member
    • Feb 2015
    • 1

    VB 2010 Repeat (need help)

    Hello everyone im newbie,

    I have a question about vb2010.

    I have a few timers and a few buttons. One button start, one button stop the program.
    My timer works with this way:

    Code:
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            SendKeys.Send("{1}")
        End Sub
        Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            SendKeys.Send("{2}")
        End Sub
    Its mean if i click button 1, its click "1" with 2050 interval on my keyboard. and the second timer is click "2" with 2090 interval.
    But if i didnt stop the program its being like lately. everytime i lose like 40 interval. Everytime its click the "1" 40 interval lately.
    Can you recommend me a few code for repeat ? Its like the timers will stop automatically after 2090 interval, and will start automatically when its stop.
  • kvinvisibleguy
    New Member
    • Mar 2013
    • 4

    #2
    Dear Noober,
    You will have to be more descriptive in your asking.If you upload the .vb file (minus the non essential codes) it will be helpfull to answer.I can reprocess that .vb file at my end and achieve what you want.The file should have controls that will explain your problem.Otherwi se answers also will be vague.It will become a vicious circle.
    regards
    Venkatraman

    Comment

    Working...