Detect Scroll Lock state

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JJunkin
Forum Newbie
Posts: 9
Joined: Fri Oct 15, 2004 9:36 am

Detect Scroll Lock state

Post by JJunkin »

Is it possible to detect the state of keyboard keys such as Scroll Lock, Caps Lock, Num Lock from PHP?

Thanks
swdev
Forum Commoner
Posts: 59
Joined: Mon Oct 25, 2004 8:04 am

Post by swdev »

I doubt it very much.

PHP is a SERVER scriptiing language and is executed on the server, so at bes, it could probably only get the state of the server's keyboard, assuming there is one attached to the server, and that is probably not what you want.

Maybe it is possible in JavaScript. I don't know
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

not possible w/ php

"maybe" w/ javascript, but i doubt it.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

From the last time I went through JavaScript's functionality, it did not have the ability to get system level scan codes.
Post Reply