This is a small but useful tutorial for a good feature.
First, let's ask, what IS Quiet Inject?
It's a feature that Topblast and I have on our injectors. After injection, it kicks in and keeps checking if the process has closed. If it has, then it will set the program up for injection again. Although it's easy to code it's extremely useful.
You will need already in your injector:
A textbox where the process name goes (in the code I called mine "ProcessBox")
A timer which checks for injection (I called mine "Timer")
A 2nd timer that handles the Quiet Inject (I called mine "QI")
How to add it in
Okay, now once your inject code has finished, put this code in:
For the timer code use this:
Code:
Private Sub QI_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles QI.Tick
Dim TargetProcess As Process() = Process.GetProcessesByName(ProcessBox.Text)
If TargetProcess.Length = 0 Then
Timer.Start()
QI.Stop()
End If
End Sub
It's simple and effective.
Credits:
Topblast - original feature
Samueldo

zwat - recreating code, writing tutorial