This is my first post of your forum, and I'm very excited to see what there is to learn in here :-)
But first i have a problem with auto program for a java chat.
I want it to select the window by it self, and send the keys of a textbox, this is what i got so far:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If Timer1.Interval = 7200000 Then
GeckoWebBrowser1.BringToFront()
GeckoWebBrowser1.Select()
Windows.Forms.Cursor.Position = New System.Drawing.Point(GeckoWebBrowser1.Location.X + Me.Location.X + 150, GeckoWebBrowser1.Location.Y + Me.Location.Y + 175)
mouse_event(MOUSEEVENTF_LEFTDOWN + MOUSEEVENTF_LEFTUP, 0, 0, 0, IntPtr.Zero)
mouse_event(MOUSEEVENTF_LEFTDOWN + MOUSEEVENTF_LEFTUP, 0, 0, 0, IntPtr.Zero)
SendKeys.Send(TextBox1.Text + "{ENTER}")
System.Windows.Forms.SendKeys.Flush()
End If
End Sub
I hope someone can help me out :-) Tell me if i'm doing something wrong !

New Topic/Question
Reply



MultiQuote




|