File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to get full control of screen through java plus some questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to get full control of screen through java plus some questions" Watch "how to get full control of screen through java plus some questions" New topic
Author

how to get full control of screen through java plus some questions

aniket gore
Greenhorn

Joined: Mar 01, 2007
Posts: 4
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?)

thanks in advance for the help i really need it
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Gavin Tranter
Ranch Hand

Joined: Jan 01, 2007
Posts: 333
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
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
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.

See this Microsoft article for more information.
[ June 20, 2007: Message edited by: Peter Chase ]

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get full control of screen through java plus some questions