I have a code I want to stop all kinds of extra setup to run on my PC mean when someone else try to run any software on my PC my script check the current running process & if see it as an extra process coming in my pc it immediately stop that setup which is trying to make roots in my PC
#NoTrayIcon
#include <Array.au3>
HotKeySet("{ESC}", "_Close") ; For testing purpose
; Program initialization
Global $aAllowedProcs = ProcessList()
While 1
Local $aCurrProcs = ProcessList()
For $i = 1 To $aCurrProcs[0][0]
If _ArraySearch($aAllowedProcs, $aCurrProcs[$i][1], 0, 0, 0, 0, 0, 1) = -1 Then ProcessClose($aCurrProc[$i][1])
Next
Sleep(100)
WEnd
Func _Close()
ConsoleWrite("Closing..." & @CRLF)
Exit
EndFunc