How can I disable my Window 7 Desktop in Java
-
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. :) :)
flashery wrote:
How can I disable my Window 7 Desktop in Java while showing some warning?
Not possible. Best that you can do, maybe, is produce a full screen view and that is far from disabling. The generic term for a box with an application where the application completely controls access to the box is 'kiosk' as that type of software needs to do exactly that. And typically there are quite a few things that one needs to disallow, remove and/or intercept to pre-empt all access.
-
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. :) :)
now you've heard so much things you CAN'T do. Here is what you can do: Make a pop up dialog that is top most. It will appear in front of all other applications and must be confirmed. You can also let that dialog play some annoying sound.
regards Torsten I never finish anyth...
-
now you've heard so much things you CAN'T do. Here is what you can do: Make a pop up dialog that is top most. It will appear in front of all other applications and must be confirmed. You can also let that dialog play some annoying sound.
regards Torsten I never finish anyth...
-
Yeah that's right but you can access some window which is not its parent. What I want is a pop up dialog that will surely disabled all the access of the desktop except the pop up dialog itself. Can I do it in java?
you can't disable other applications - but the dialog will pop up in front of all applications and stay there. The user can work on other applications but has always the popup in sight. An alarm sound can be looped until the user acknowledges the alert. You can make it impossible to work with other applications if you make the dialog of the popup a bit bigger, but that's more annoying than useful.
regards Torsten I never finish anyth...
-
Yeah that's right but you can access some window which is not its parent. What I want is a pop up dialog that will surely disabled all the access of the desktop except the pop up dialog itself. Can I do it 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
-
you can't disable other applications - but the dialog will pop up in front of all applications and stay there. The user can work on other applications but has always the popup in sight. An alarm sound can be looped until the user acknowledges the alert. You can make it impossible to work with other applications if you make the dialog of the popup a bit bigger, but that's more annoying than useful.
regards Torsten I never finish anyth...
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?
-
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.