The first script gets an error at line three ("Invalid hotkey"). The second script doesn't give an error, but doesn't seem to block anything (maybe because of Windows 7?).
I use a program called ToddlerKeys. Its icon resides permanently in the system tray, and when double-clicked it blocks all keyboard input as well as mouse clicks (e ...