FrnbacYescO (Normal User)
Pro
Messaggi: 102
Iscritto: 15/03/2008
|
Ragazzi ho un programmino in vb6 che deve essere attivato solo se è aperto un processo (warrock.exe) come devo fare??
so che devo mettere na cosa del tipo
Codice sorgente - presumibilmente VB.NET |
[CODE]If Get NON SO COSA Then Timer1.Enabled = True Else Timer1.Enabled = False End If[/CODE]
|
...in un timer e poi magari aggiungendo qualkosa al modulo ..... chi mi dice quali sono queste cose da aggiungere?? XD
thx
|
|
gantonio (Normal User)
Guru^2
Messaggi: 1532
Iscritto: 09/09/2007
|
Piu' semplicemente ...
Codice sorgente - presumibilmente VB.NET |
Dim pr As Object Set pr = GetObject("Winmgmts:").ExecQuery("Select * from Win32_Process where name='warrock.exe'") Timer1.Enabled = (pr.Count > 0) Set pr = Nothing
|
|
|
FrnbacYescO (Normal User)
Pro
Messaggi: 102
Iscritto: 15/03/2008
|
Grazie 1000!!
|
|