Public Class Form1
Dim gteuk As New Class1
Dim FOVAD As Integer = &H5AC11E0
Private WithEvents Timer1 As System.Windows.Forms.Timer
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Timer1 = New System.Windows.Forms.Timer
Timer1.Interval = 5000
End Sub
Public Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If gteuk.Process_Handle("iw5mp") Then
Dim fov1 As Single = (TextBox1.Text)
gteuk.WriteBytes(FOVAD, BitConverter.GetBytes(fov1))
End If
End Sub
Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
If gteuk.Process_Handle("iw5mp") Then
If IsNumeric(TextBox1.Text) Then
Timer1.Enabled = True
Else
MessageBox.Show("Must use numeric value")
End If
Else
MessageBox.Show("MW3 Is not Running")
End If
End Sub
End Class