How can I disable my Window 7 Desktop in Java
-
No! Windows is specifically designed so that the user is the one to make such decisions, not applications. Think of the havoc that would ensue if this was possible; every virus writer, hacker, and Q&A dummy would be releasing programs that blocked PC systems. You could, however, use the Windows
ExitWindowsEx()
[^] function, but that would mean writing some C code, and it would still be difficult to force the application to start without some form of service to control it.Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
Yeah that's what I am afraid of using just pop up dialog. I think it much better if I am going to make full screen window with matching some keyboard disabled such as alt+tab, alt+escape and any other keyboard shortcut that will switch window to window. I think it is much better? How is it?
-
Yeah that's what I am afraid of using just pop up dialog. I think it much better if I am going to make full screen window with matching some keyboard disabled such as alt+tab, alt+escape and any other keyboard shortcut that will switch window to window. I think it is much better? How is it?
I am not sure that you can disable some of the system key combinations in this way. I do think that you should forget Java as it is really not designed for this purpose when running on a Windows system. One of the basic rules of Windows is that the user is in charge, so it is quite difficult to find ways to override this.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
I am not sure that you can disable some of the system key combinations in this way. I do think that you should forget Java as it is really not designed for this purpose when running on a Windows system. One of the basic rules of Windows is that the user is in charge, so it is quite difficult to find ways to override this.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
So as a conclusion I really need to convert in C++? I just want to sure before giving it a go..
1. I do not think there is any way you can do this in Java. 2. There may be a way in C++ but no guarantees. You really need to ask yourself whether it is worth investing time and effort into this, or is there an easier (non-automatic) way to manage it.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
1. I do not think there is any way you can do this in Java. 2. There may be a way in C++ but no guarantees. You really need to ask yourself whether it is worth investing time and effort into this, or is there an easier (non-automatic) way to manage it.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
How can I disable my Window 7 Desktop in Java while showing some warning? I am making a Timer program in java and need to disable the desktop if the time is over and enable again if the admin allows it. I just want to know the keyword of disabling and enabling the desktop. Just like this To shutdown a PC = shutdown -s Any help is appreciated. :) :)
You can use BlockInput() win32 API and call it in java using JNI. It will block the all input events of the system. :)
-
Yeah that's what I am afraid of using just pop up dialog. I think it much better if I am going to make full screen window with matching some keyboard disabled such as alt+tab, alt+escape and any other keyboard shortcut that will switch window to window. I think it is much better? How was it?
you can't do more than that. You don't know the other applications and have no complete control over the OS. Why should the user not be allowed to use other applications? You're talking about a timer, what should the user do when the timer runs?
regards Torsten I never finish anyth...
-
You can use BlockInput() win32 API and call it in java using JNI. It will block the all input events of the system. :)
-
You can use BlockInput() win32 API and call it in java using JNI. It will block the all input events of the system. :)
Laxmikant_Yadav wrote:
It will block the all input events of the system.
MSDN says otherwise. Ctrl-Alt-Del still works, so the user could get into task manager and kill the blocking app. Peter
Software rusts. Simon Stephenson, ca 1994.
-
Laxmikant_Yadav wrote:
It will block the all input events of the system.
MSDN says otherwise. Ctrl-Alt-Del still works, so the user could get into task manager and kill the blocking app. Peter
Software rusts. Simon Stephenson, ca 1994.
Thanks for sharing this.
-
Yeah that's what I am afraid of using just pop up dialog. I think it much better if I am going to make full screen window with matching some keyboard disabled such as alt+tab, alt+escape and any other keyboard shortcut that will switch window to window. I think it is much better? How was it?
flashery wrote:
think it much better if I am going to make full screen window with matching some keyboard disabled such as alt+tab, alt+escape and any other keyboard shortcut that will switch window to window.
And AGAIN...you need to research 'kiosk'. And AGAIN...you cannot do all of that in java. So your choices are 1. Research all of the problems and then implement solutions with the understanding that some of the implementation will not be in java. 2. Go forward knowing that you cannot accomplish that in java. And as such a full screen display is going to be good enough.