If you put a timer into a form, then in the Timer handler you send keys, it does not work properly. It works in Word or Notepad but not on web based text editors.
For example, open a new project, put a timer in, enable it, put it at an interval of 1000, and then put this code in:
The first couple times, it'll write it all fine, you can even try it out in the reply box on this site, and then BOOM, it goes crazy!
I've tried a whole bunch of things, nothing seems to solve this. Anyone have any ideas?
For example, open a new project, put a timer in, enable it, put it at an interval of 1000, and then put this code in:
PHP:
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
SendKeys.Send("Why doesn't this work?")
End Sub
End Class
The first couple times, it'll write it all fine, you can even try it out in the reply box on this site, and then BOOM, it goes crazy!
I've tried a whole bunch of things, nothing seems to solve this. Anyone have any ideas?