Hi i have just added an idle code to my bot, i used the following:
Private Sub Timer1_Timer()
Static counter As Integer
If CleanSlateBot2.Connected Then
counter = counter + 1
If counter >= 2 Then '5min = 5 2hrs = 120
CleanSlateBot2.Send "Testing Idle Message!!"
counter = 0
End If
End If
End If
End Sub
ok i had no problems there, then i added a timer to the main form and set the interval to 6000 i think from memory.(im at school) and it happened every 25 seconds.
so then i worked it out. 25x2.4=60seconds
so then 6000x2.4=14400 that SHOULD be 1 minute.
but its not, its 1 minute and 12 seconds, and it adds an extra minute each time. I also changed the part in my code:
If counter >= 2 <-- Changed that 2 to a 1
[/code
but this didnt help. I also tried it without setting the interval on the timer and that stops the idle.
Could anyone help me get it to 1minute please.
Thx in advance
set the interval to 60000
1000 = 1 second figure it out lol