Block user input

  • Thread starter frostywintersopposite
  • Start date
F

frostywintersopposite

Hello everyone, im trying to write an internet cafe program that locks
machines when they are not in use. My program is going to work by
displaying an image and blocking user input from both the mouse and the
key-board??

Thats where the problemm lies, i don't know how to achieve this. I have
tried implementing both the MouseListenter and KeyboardListener
interfaces and consuming events in each but i don't think its working
properly or not at all.

Do listeners perform an action after an initial action takes place??
And if this is the case would it be to late to consume an action once
it has already happened??

Also what component do i attach the listeners to for it to affect the
whole system??

Anwers on a poscard!!
 
T

Thomas Weidenfeller

Hello everyone, im trying to write an internet cafe program that locks
machines when they are not in use. My program is going to work by
displaying an image and blocking user input from both the mouse and the
key-board??

For Windows? What would be wrong with using the normal screensaver, and
configuring it so it requires a password?

/Thomas
 
O

Oliver Wong

Thomas Weidenfeller said:
For Windows? What would be wrong with using the normal screensaver, and
configuring it so it requires a password?

Typically, you want to be able to force-kick a customer after a certain
period of time. E.g. the customer pays for 2 hours of usage, and after 2
hours, the customer should be locked out, with the option of purchasing more
time.

I don't think you can do this using Java. I don't think a Java program
can block all input. In particular, CTRL-ALT-DEL or ALT-TAB might be
difficult to block.

- Oliver
 
G

Gordon Beaton

Hello everyone, im trying to write an internet cafe program that locks
machines when they are not in use. My program is going to work by
displaying an image and blocking user input from both the mouse and the
key-board??

Search for OpenKiosk and see how they do it. I don't think Java is the
right tool for this job.

/gordon
 
C

Carramba

Oliver said:
Typically, you want to be able to force-kick a customer after a certain
period of time. E.g. the customer pays for 2 hours of usage, and after 2
hours, the customer should be locked out, with the option of purchasing more
time.

I don't think you can do this using Java. I don't think a Java program
can block all input. In particular, CTRL-ALT-DEL or ALT-TAB might be
difficult to block.
This is done in windows, by administrating user permissions, and doesn't
have anything to do with java
you just disallow user to change/do certain thing :D
 
F

frostywintersopposite

Thanks guys, and Carramba where might one find these user permissions??
Im not really a windows guy so im not to familiar with the file system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top