// JP opened flex table

Click to See Complete Forum and Search --> : java help please


noodles for noobs
March 23rd, 2007, 07:25 PM
ok this is what i want to do: create a program that launches when you press ctrl+alt+0, this program should take up the whole screen and ask for a password. now the part i need help with: i want the ctrl+alt+del comand to be switched to ctrl+alt+insert but only when program is running, so when the right password is typed in ctrl+alt+del should be put back to normal. also i want the alt+tab comand disable and again re enabled when program is closed. Finally if the computer is running the file when it is restarted (by hitting the power and or restart button on the computer) i want the program to launch on startup.-------------I would do this myself however i have no clue hot to do this. I would prefer to do this in java because i know most of java but if it is not possible but possible in another script like c++ or somethings then please post it anyway and ill figure it out. Please can you help me thanks------------If anyone is curious i want this program because i want it so i can lock my computer while im away and no one but me can get on, -- and i don't feal like locking my computer up with chains

dlorde
March 23rd, 2007, 08:34 PM
Java is not the right language for this. To lock the computer means calling the operating system API, and Java doesn't have a direct way to do this - although you can use the Java Native Interface (JNI) which allows you to call native methods, you have to write an interface DLL in native code anyway, so you might as well do it all in C++ or .NET.

Languages are tools designed for certain purposes. Always try to select the tool most appropriate for your purpose...

HighCommander4
March 23rd, 2007, 08:51 PM
If anyone is curious i want this program because i want it so i can lock my computer while im away and no one but me can get on, -- and i don't feal like locking my computer up with chains

What is your operating system? It may well have its own password-protect functionality. In Windows, for instance, you can create a user account for yourself and make it the only account on the computer. Then password-protect the account. Whenever the computer starts up, it asks for your password. Also at any time you can just "Log Off" without shutting down the computer and it requires you to re-enter your password when you log back on. If you leave your computer frequently, you can even set up your screen saver so that it asks for your password when you resume.

noodles for noobs
March 24th, 2007, 12:12 AM
i have windows xp however the computer is shared within the house hold and therefore there are more then one account, i just don't want anyone else going on while im trying to do something on the computer that requires all of the memory (most of it, ie burning a movie) or when its 2 o'clock in the morning

also I dont know how to write c++, so unless someone wants to right the program for me, can anyone refer a good FREE c++ tutorial or something to help me learn?

dlorde
March 24th, 2007, 08:00 AM
You might be better off Googling for "lock windows xp" or similar. To do it in C++ you would need to learn both C++ and how to use the Windows system API. It would be much easier and quicker to do it through XP directly. I think you have to disable fast user switching, but if you search, you'll probably find an answer.

One can think effectively only when one is willing to endure suspense and to undergo the trouble of searching...
J. Dewey

//JP added flex table