[Tutor] Need help with registry access

Alan Gauld alan.gauld at btinternet.com
Fri May 8 02:20:32 CEST 2009


"Christopher Barkley" <expression1987 at comcast.net> wrote 

> My friend and I are techies, he's on my LAN. I want to disable 
> his keyboard through the registry (or some other fun way) 
> while he's in the middle of playing starcraft by running a 
> script through the LAN. 

Look at the winreg module for accessing the registry.

How you do it over the LAN and how you disable the keyboard 
I'll leave as an exercise for your investigation!

One other option is to look into using WSH via the pythonwin 
or ctypes API.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list