kanata93
09-03-2007, 12:40 PM
This is not my TUT .this TUT created my ZeaS
First add this to your Module
Public Function Running(window As String) As Boolean
Dim hwnd As Long
hwnd = FindWindow(vbNullString, window)
If (hwnd = 0) Then
Running = False
Else
Running = True
End If
End Function
Then put this into Timer (Timerinterval = 100)
If Running("WarRock") Then
Else
End If
If you wan`t to see a label, if warrock is running, do this:
(Timerinterval = 100) (label1 and 2 go to properties and set Visible = False)
Private Sub Timer1_Timer()
If Running("warrock") Then
Label1.Visible = True
Else: Label2.Visible = True
End If
End Sub
all done
First add this to your Module
Public Function Running(window As String) As Boolean
Dim hwnd As Long
hwnd = FindWindow(vbNullString, window)
If (hwnd = 0) Then
Running = False
Else
Running = True
End If
End Function
Then put this into Timer (Timerinterval = 100)
If Running("WarRock") Then
Else
End If
If you wan`t to see a label, if warrock is running, do this:
(Timerinterval = 100) (label1 and 2 go to properties and set Visible = False)
Private Sub Timer1_Timer()
If Running("warrock") Then
Label1.Visible = True
Else: Label2.Visible = True
End If
End Sub
all done