Main Question or Discussion Point
I am trying to make a program that locks a computer unless you have a password by systematically looping through and closing applications. It would also have a list of applications that the user is ok with having open, (for example a dock like rocket dock or a desktop tool like konfabulator or Rain meter). I know how to close individual processes in batch, but is their a way to only close things with a main window? If there is an easier way to achieve the same effect (such as if you can block all programs from ever opening) feel free to say that too. I am most familiar with batch, c++, java, and python, but if another language makes something easier, I am willing to try it.Thanks!