If the client can poll a process on the server (using Ajax) that in turn checks for the screensaver being active (can anything do that?) then I see no reason why such a scenario would not work for you.
It would take some development, to be sure, but then, what doesn't?
Or am I missing something impossible here?
Main Topics
Browse All Topics





by: abelPosted on 2009-07-03 at 15:23:23ID: 24774754
The short answer is: no, you cannot do that.
The longer answer is: you cannot do that because javascript does not have any rights on the underlying system, the same way you can never save a file without user interaction on a client's machine, or change his clock or security settings.
The even longer answer is: you can do that, but then you need to write your own plugin for Firefox, Opera, Safari, Chrome and an Add-On or ActiveX control for Internet Explorer. You'll then have to instruct your users to install this plugin and from then on, you can access just about everything you want. But the question then is: would you users trust you well enough to allow installation of a plugin that potentially harms their computer or opens a security hole? I can't judge that for you, but because you say that you only have to code for IE7 and Windows-based systems, you may just stick with ActiveX or Browser Extensions (not sure if extensions can do this, or even an ActiveX, they still operate under the security of the browser) or an Add-On.
It will cost significant time to write something like that. Sorry that I don't have better news for you.
-- Abel --