Jump to content
Sign in to follow this  

If Statements and Input Boxes

Recommended Posts


I am making this program that locks the computer (not the Lock Computer in Windows, because I can't find a way to automate it.).

The process is to kill Explorer.exe, prevent Task Manager from opening, and when you press F11, a Input Box appears and asks the

password to unlock the system.

The problem is that when I open the input box, I can open Task Manager and close the program.

And the only solution is that an If statement that checks active instances of Task Manager is running

while the input box is still open.

Is such thing possible?

[center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]

Share this post

Link to post
Share on other sites
Richard Robertson

You will have to make your own GUI with a text box in it. That way you can check for the task manager and process the password at the same time.

InputBox is a blocking function by design.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.