Detect an application or process running on the system


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Process[] localprocesses;
  2. while(true)
  3. {
  4.  
  5. localprocesses = Process.GetProcessesByName("application name");
  6.  
  7. if (localprocesses.Length > 0)
  8. {
  9.  
  10.  
  11. Console.SetWindowPosition(0, 0);
  12. Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight);
  13. Console.Beep(1400, 1000);
  14. }
  15. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.