-
July 11th, 2009, 05:05 PM
#1
Figure out if computer is locked?
Hi All
Is there a way in Java to figure out if my computer is locked or unlocked? I am planning to write a program in Java that will detect if my computer is locked/unlocked and accordingly take an appropriate action.
Please advise.
Thanks and Regards,
Pratyush
-
July 11th, 2009, 05:25 PM
#2
Re: Figure out if computer is locked?
What do you mean by the computer being locked?
Java is platform independant so doing anything that requires calls to the OS is difficult in Java - it can be done but it requires some effort. If this requirement is main purpose of your program then you'd probably be better off using a different language.
-
July 12th, 2009, 02:48 AM
#3
Re: Figure out if computer is locked?
By locking I mean pressing 'Ctrl+Alt+Del' on your windows machine and locking it. You can also lock the screen in Linux. The computer can get locked also if it remains idle for a specific amount of time (either in Windows or in Linux).
Thanks and Regards,
Pratyush
-
July 12th, 2009, 03:27 AM
#4
Re: Figure out if computer is locked?
As Keang says, Java is not the right tool for this kind of thing. You need to use a native language, e.g. for Windows use C/C++/C#.
If the only tool you have is a hammer, you tend to see every problem as a nail...
A. Maslow
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|