Quote Originally Posted by chris128
Oh ok so your using a timer to go back to the Client page after you have logged in to the login-popup page?
If you want to do it that way then you just need to change this:
vb Code:
  1. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  2.         Me.Text = "Habbo - Logged in"
  3.         Timer1.Enabled = True
  4.         WebBrowser1.Navigate("http://www.habbo.se/client")
  5.     End Sub
To this:
vb Code:
  1. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  2.         Me.Text = "Habbo - Logged in"
  3.         Timer1.Enabled = False
  4.         WebBrowser1.Navigate("http://www.habbo.se/client")
  5.     End Sub
All I have done is changed the Timer1.Enabled = True line to Timer1.Enabled = False. This way, the first time your timer executes it will just cancel itself which means it wont fire its tick event again after the first time.

Its worth noting though that a timer is not a good idea when it comes to automating websites becuase what would happen if the login page takes longer to process your login than normal and then your timer tick event fires before you are actually successfully logged in?

o_O yah, but it works ty ^^,