lock screen:i need a java source program that when i try execute it......... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

lock screen:i need a java source program that when i try execute it.........

i need a java source program that when i try execute it.it lock my windos desktop screen and i can't click any icon.and just can move mouse.

12th Dec 2017, 10:35 PM
Geekman89
Geekman89 - avatar
1 Answer
+ 2
I don't know if there's a Java function for it, but the Windows shell command is: rundll32 user32.dll,LockWorkStation That's a period, then a comma -- no spaces in the second part. Maybe someone can point out how to do a subprocess.
13th Dec 2017, 1:21 AM
Kirk Schafer
Kirk Schafer - avatar