• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic