Forum Moderators: open

Message Too Old, No Replies

Disable Print Screen?

         

doodlebee

10:50 pm on May 9, 2006 (gmt 0)

10+ Year Member



Okay, this is a weird one. I have a friend of mine who works at a local college. The students take quizzes and tests via the college library computers, from the college's network system. These computers are your basic "things are shut off and computers are to only be used for certain things" type of systems.

They are trying everything they can to disable the ability for students to copy the quizzes and passing them on to other students who haven't taken the test yet. They have various means of doing do - right clicking is disabled, other such functions as this. However, apparently the students have recently discovered the "Print Screen" button on the keyboard.

Is there any way to disable this button - be it through some Active X control, or something the network administrator can do with the campus servers - that would disable the ability to use this key? Or will they just need to go through and superglue the "Print Screen" keys so they cannot be pushed? Perhaps a way to duisable the printer functions when the student is logged in and taking a test?

Just curious if anyone had any ideas here. Thanks!

kaled

11:48 pm on May 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's possible to do programatically so an ActiveX control is a possibility, but this would only work in IE.

In this case, a student or lecturer with basic knowledge of Windows and programming ought to be able knock something up that works for all programs or simply blocks access for a few programs.

Kaled.

pageoneresults

12:17 am on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



However, apparently the students have recently discovered the "Print Screen" button on the keyboard.

I work quite a bit with an online quiz/testing environment. Once it comes to the users system and what they see on the screen, there really isn't much you can do.

What we've done is implemented a set of guidelines and if students are caught sharing quiz/testing information, they are canned from the program. Stiff penalties for cheating are in order. If they are caught, they suffer the consequences.

We also have rotating questions and answers. There is a database of 50-100 questions that are culled from so the the users are seeing different tests.

Based on a quick search of "disable print screen" it doesn't look like it is an easy feat. And, if you are able to do it, there are workarounds. :(

jessejump

12:28 pm on May 10, 2006 (gmt 0)

10+ Year Member



What are they pasting the clipboard into?

What about Select All, Copy, Paste?

Save page?

stardoc

1:52 pm on May 10, 2006 (gmt 0)

10+ Year Member



Thats a good point raised by jessejump.

As all the computers are in library, how about disabling the print screen button on the keyboard itself?

doodlebee

3:11 pm on May 10, 2006 (gmt 0)

10+ Year Member



As all the computers are in library, how about disabling the print screen button on the keyboard itself?

LOL - actually, that has come up. They were considering supergluing the key so it couldn't be pressed!

I *had* found a javascript that will force the clipboard to dump it's contents - so if the "Print Screen" key is hit, it'll only print a blank page. I wasn't sure that would work,(since all you have to do it turn off javascript and it's effectively disabled) - but as it turns out, the computer systems are set up in such a way that the students *can't* get in there and change any settings. So she thinks the javascript will work (especially since, if they *did* turn off javascript, they couldn't take the test or perform other class functions, as it all relies on scripts as well).

But thanks for the ideas, I really appreciate it!

Fotiman

5:08 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That assumes, though, the browser window (where the JavaScript is presumably located) has the focus, correct? What if it doesn't. For example, user opens browser window containing the text. Next, user opens notepad and makes the notepad really small (so they can see the browser windown and most of it's contents behind the notepad window). Next, user presses Print Screen.

In this scenerio, the browser window will not get the key press event.

I think you are out of luck, unless you can install some sort of keypress monitoring software on the computer to capture ALL keypress events. This could also be used to catch cheaters, and perhaps be used as a deterrent. It'd be nice if you could somehow show the users that they're keypresses were being logged.

Just a thought.

tedster

5:38 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can remap the keyboard in Windows XP - and there are utilities that make this task less harrowing than registry edits and knowing the scancodes for various keys. So there's no need to resort to glue to deactivate the PrtSc key.

Here's a Microsoft Reference on scan code mapping [microsoft.com], in case that idea appeals to you. Note the "related links" on that page for getting the documents that detail specific scan codes.

doodlebee

11:15 pm on May 10, 2006 (gmt 0)

10+ Year Member



Thanks again guys - I've passed this information along. Logging keystrokes is actually easy to do - if they'd like to shell out for the program (I actually had an acquaintance once who obtained a divorce using this method - turns out his wife was cheating on him and he used her logged keystrokes to prove it in court!)

This "remapping" of the keyboard looks very interesting - that may be just what is needed :)

Thanks again!

john_k

12:24 am on May 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Instead of disabling the print-screen button, what about rerouting it. A loud bell sound should be easy. Or a nice loud audio of "Congratulations! You've just won the Cheaters' Lottery! Go visit the Dean now!" That would not only alert staffers as soon as someone tried it, it would also work to strongly discourage students from looking for other means.

londrum

8:45 pm on May 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



you can try the old-school ways: opening up the quizes up in a window with no chrome, and disabling rightclicking and text-highlighting with javascript.

you can also wrap this around everything on the page:
<div onselectstart="return false" unselectable="on" style="-moz-user-select:none;">
your stuff goes here...
</div>
which will prevent text-highlighting even with javascript turned off. (but your page won't validate anymore)

that will fox most of the students, i reckon. (most students i know are dumb enough to be foxed by all of that)

i would also include a CSS stylesheet for print which just says
body{display:none}

but, of course, they could always use the print screen button...

internetheaven

9:13 am on May 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Once it comes to the users system and what they see on the screen, there really isn't much you can do.

Just thinking as a scamming teen for a second, if you take away that avenue (i.e. printing it) they'll simply come up with something non-software based ... like a camera phone. I just tried it on my screen and it worked fine, you'll have to start frisking them soon!

My tip? Allow them to print it, but spend your time creating a program that prints out the wrong questions when asked to print. Watch how long it takes them to work that out!