how to get full control of screen through java plus some questions
Joined: Mar 01, 2007
hi friends i am developing a login automation software for cyber cafe and i want 1)a java frame to get full control of the windows screen that is untill and unless you enter a name and press login you should not be able to do anything els like alt+clt+del and alt+tab etc,
2) i would like to notify user about his timing after each 15 min so should i use a timer or just a continuously time checking thread?
3) i want a reliable communication bet client and server (client will send the login info to server) what protocol should i use for it?(socket will be enough?) and also how server can know that client is online or not( may be by checking a socket is alive or not?)
untill and unless you enter a name and press login you should not be able to do anything els like alt+clt+del and alt+tab etc,
I dont know if this can be achieved using java. You are probably looking at a swing application that occupies the entire screen at best, but the CTRL+ALT+DEL combination works all the time. Even if you were to ask some dlls (like rundll32) to disable the keyboard the combination would still work.
Hi, for full screen control you will need to use full screen mode avilable in the Java2D API, so that is worth looking up on teh sun site, there is a book, "killer game programming in Java" (I think thats the title, I have it, but found the style hard to read) which goes though using FullScreen mode.
It also goes on about network games so you might find those chapters helpfull. The java.net api/package might help with your server stuff, if it is a windows system you might be able to use the windows messenging API, but I would usual have this turned off as its considered a security rick *shrugs*
I agree, I dont think you will be able to disable ctrl-alt-del, your best bet on that one is having a look at the windows API to see if there is any low level API you can hook JNI into.
It might also be possible to control what ctrl-alt-del allows the user to do though their profile, it might be that you can disable task manager for example.
Anyway those are the things I would check, I would look at ways I can configure the host system first before trying to overide its behaviour with java.
Hope this helps G
Joined: Oct 30, 2001
It's my understanding that it is supposed to be virtually impossible to intercept or disable CTRL-ALT-DEL on Windows.
The reason is that, if you could intercept it, you could write a Trojan that read passwords etc.
There's definitely no way to intercept it in Java. There's almost certainly no way to intercept it in normal native Windows API programming. I guess right down at the hardware level, there's probably a way, and of course Windows is full of security holes but you don't want to get into that stuff.