Expermicid Posted September 2, 2012 Share Posted September 2, 2012 (edited) [lenguaje=autoit]#cs ------------------------------------------------------- AutoIt Version: 3.3.8.1 Author..........: Pink Script Function...: MPC() "Monitorea creación de Porcesos" Uso..............: MPC() #ce ------------------------------------------------------- ;Ejemplo MPC() Func MPC() $Computer = @ComputerName $WMI = ObjGet("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & $Computer & "\root\cimv2") $MonitoredProcesses = $WMI.ExecNotificationQuery("select * from __instancecreationevent " _ & " within 1 where TargetInstance isa 'Win32_Process'") While 1 $LatestProcess = $MonitoredProcesses.NextEvent $Process=$LatestProcess.TargetInstance.Name msgbox(0,"",$Process) ; mostramos un Msgbox con el nombre del Proceso. WEnd EndFunc [/lenguaje] Edited February 16, 2014 by Expermicid Link to comment Share on other sites More sharing options...
Recommended Posts