$array = ProcessList("AutoIt3.exe")
$iPID = $array[1][1]
$sProcess = $iPID ;PID number for test process name
;~ $sProcess = "Idle" ;Other test process names
;~ $sProcess = "_Total" ;funny one
;~ $sProcess = "ntvdm" ;DOS process
;~ $sProcess = "AutoIt3" ;do not assign .exe to process name
While 1
$iProcessCPU = _ProcessGetCPU($sProcess, 300 )
$sTip = "Process " & $sProcess & " CPU: " & $iProcessCPU & "%"
traytip("", $sTip ,1)
;~ sleep(1000) ;set your own sleep tim