LetMeBot
Get full acces now! Register for free!

Got questions? Or you can't make an account?

Email to this email adress: support@letmebot.com

Code for detecting an active process

Go down

Code for detecting an active process

Post by Bnoit on February 5th 2011, 11:00 am

All you need is a new form, a new timer and a button

Code for the button:
Code:
NOTHING

Code for the timer:
Code:

Dim myprocess As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("notepad")
        If myprocess.Length <> 0 Then
            Button1.Enabled = True
        Else
            Button1.Enabled = False
        End If

Set the timer enabled true

avatar
Bnoit
Administrizzy & Bot Programmer
Administrizzy & Bot Programmer

Posts : 85
Join date : 2010-10-04
Age : 28
Location : Belgium

View user profile http://hackforlife.highforum.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum