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

Join the forum, it's quick and easy

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
LetMeBot
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Code for detecting an active process

Go down

Code for detecting an active process Empty Code for detecting an active process

Post by Bnoit 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

Bnoit
Bnoit
Administrizzy & Bot Programmer
Administrizzy & Bot Programmer

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

https://hackforlife.forumotion.com

Back to top Go down

Back to top


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