I'm not sure if this is the right section to post this on or not but I will just get down to it.
I'm making an Auto Typing program that types lines of text in a window.
Here is what I have so far
What I want it to do is select a process use only that window.
Even if the window is minimized or in the background I want it to continue to keep sending the text.
Auto typing works fine, process listbox fills fine, I just do not know how to make it use the process or window and stick to it.
Any help would be much appreciated.
I'm making an Auto Typing program that types lines of text in a window.
Here is what I have so far
Code:
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
SendKeys.Send(TextBox1.Text)
SendKeys.Send("{Enter}")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Interval = TextBox2.Text * 1000
Timer1.Start()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As Process
For Each a In Process.GetProcesses()
ListBox1.Items.Add(a.ProcessName)
Next
End Sub
End ClassWhat I want it to do is select a process use only that window.
Even if the window is minimized or in the background I want it to continue to keep sending the text.
Auto typing works fine, process listbox fills fine, I just do not know how to make it use the process or window and stick to it.
Any help would be much appreciated.