Try using this
Code:
Public Function RetBase(ByVal ProcName As String, ByVal ModuleName As String) As Integer
Dim P As Process() = Process.GetProcessesByName(ProcName)
If (P.Length <> 0) Then
Dim pMod As ProcessModuleCollection = P(0).Modules
For i As Integer = pMod.Count - 1 To 0 Step -1
If pMod.Item(i).FileName.EndsWith(ModuleName) Then
Return pMod.Item(i).BaseAddress.ToInt32
End If
Next i
End If
Return 0
End Function
Then in your context you would do something like this
Code:
Dim Address As Integer = RetBase("OrcsMustDie2", "OrcsMustDie2.exe") + &H7A4454
Then just do
Code:
WriteDMAInteger("OrcsMustDie2", Address, {&H20, &H14, &H50, &H2C, &H2D8}, TextBox1.Text, 5)
Lemme know if that works!