AutoHotkey Community

It is currently May 27th, 2012, 4:30 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: February 26th, 2010, 4:43 pm 
Hello, I need a script to disable the keyboard, mouse (only the buttons), the tower power & reset buttons and the dvd eject button because my 2y old daughter cannot stop pressing all these buttons & keys. Please any help with the commands and the way to exit from the script when all the keys and mouse buttons are disabled. Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2010, 4:51 pm 
LOL! I feel for ya. I remembered seeing something like this and did a search. Try this:
http://www.autohotkey.com/forum/topic20601.html

DBM


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2010, 5:16 pm 
for power buttons
Image


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2010, 5:20 pm 
Thanks a lot, I think it will work but the script doesn't disable the tower power , reset & dvd eject buttons, is there a way to do this?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2010, 5:56 pm 
Code:
Drive, Lock, D ; <-- Locks D drive
Drive, Unlock, D ; <-- Unlocks D drive


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 27th, 2010, 7:11 am 
The tower's power and reset switches are hardware based and can't be controlled by AHK. The dvd drive eject but is similar but there are software methods of opening and closing the drawer.

I could help you disable all the switches so they no longer work, I could help you relocate them to the back of the tower... but your best choice is to just try a velcro attached cover plate over the front of the computer. That should prevent the 'joy presses' of the buttons. Think of a U shaped portion of a small garbage can or plastic storage container with 2 of the ends removed. a couple of pieces of self-adhesive velcro on the outside of the computer and the inside of U shaped cover.

What I had to do was give my boys a toy with more exciting buttons thaat they would focus on and ignore the computer. In about a year you won't have to worry about it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 27th, 2010, 12:50 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
nom-guest wrote:
The tower's power and reset switches are hardware based and can't be controlled by AHK.
In modern PCs, the power switch/button only sends a signal to the OS - what happens then depends on the OS and configuration. Guest's screenshot shows where it can be configured, but what it doesn't show is that you can configure the power button to "Do nothing". There's also an example script which can prevent shutdown, but it reportedly doesn't work in Vista and later.

Of course, that doesn't solve the reset problem.

Googling "disable eject" indirectly turned up this:
Author of Toddler keys wrote:
This is a little program I wrote to protect my computer from my daugher.
I see Toddler Keys is also mentioned in the thread da_boogie_man linked (Toddler Keyboard).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 28th, 2010, 9:25 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
You can also set the button to power-off pc only after button has been held down for 4 seconds (done in cmos setup)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Mickers, rbrtryn and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group