Help with disable keyboard, mouse and screen

I currently doing a project tat requried a pop up to warn the user to take a rest. Upon the pop up the user will not be able to continue using the computer is there any suggestion on how i can do that thank alot.

Answer this question

Help with disable keyboard, mouse and screen

  • Jassim Rahma

    you can use a timer to achieve what you are doing. So if the application is in use for say, 5 minutes, then the application/timer will kick in and say "take a break" and wont be available until another 5 minutes or whatever.



  • LeahGarrett

    so when the second timer is running at form B the user cannot get out or use other software in between the period of time Thank alot for helping out thank alot.
  • Zak1968

    thank very much i try doing it and ask if there any more questions thank alot.
  • GeoffSeattle

    they wont be able to pretty much run the application or continue using it, and ONLY that application - not the entire PC, the entire PC would not be able to be controlled using this method. There maybe a way however it can be a security issue

  • Antropoid

    Hello thank for answering the question i would like to ask you tat what you stated can i make it in such a way that it will stay at the form and hold till 5 minutes. As in the user will nt b able to do any thing in between that period of time.


  • IrishGandalf

    totally agreed with nobugz here, and besides, its up to the user if they wish to take a rest!

  • steveareno

    just place a timer on form A, make sure you enable this when they are using the app and make it run for 5 minutes (60*5 = 5 minutes in seconds).

    Once the 5 minute mark has met, perhaps show (showdialog()) another form, form B, with a message something like "Go have a rest now" and also make sure you enable this timer, so when this timer (on form B) has met the x minutes, close this form and enable the original timer on the main form, form A



  • MyoZaw

    i currently a student in ngee ann poly. I am making a project call vision guardiancontroller this help younger childrens to have the concept of resting when they have been using the computer very a long period of time to prevent myopia. There will be a sensor to detect if the user start siting down infront of the computer n start using it so the program that i write will display a warning msg at first to warn the user before 5 minutes to the targeted time. After 5 more minutes the sensor still detect a signal indicating that the user still using the computer the disbaling part will b active for 5-10 minutes to force the user to rest. That why i need the programing on hw to make the user force to rest for tat period of time or it can b a form is up and it stay there and the user cant cancel untill a period of like 5-10minutes. Thank alot.
  • Cyberjunkie

    Agreed...that kind of question deserves this answer--->

    MyComputer.PowerButton.Click



  • Kashif Arshad

    You need to convince me that this app has a real use and not some fabrication to learn how to write a virus.



  • Help with disable keyboard, mouse and screen