www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 05-12-2007, 11:28 AM
    justin1230smith justin1230smith is offline
    Registered User
     
    Join Date: May 2007
    Posts: 2
    Question Can I prevent Screen Saver by J/Script ?

    Hi,

    I have made a nice group of HTML pages for a company electronic notice board but the network security settings mean the screen saver comes on after 5 minutes and then powers off the screen after 20 !

    This is not much good when I am trying to display these pages on a large screen

    They will not relax the security policy for this one machine, nor for this one logon

    Can I put some script in the HTML that simulates key strokes or better still mouse movements to fool Windows XP that someone is using the mouse

    Thanks in advance,

    Justin
    Reply With Quote
      #2  
    Old 05-12-2007, 05:07 PM
    felgall's Avatar
    felgall felgall is offline
    Computer Consultant
     
    Join Date: Mar 2005
    Location: Sydney, Australia
    Posts: 7,982
    JavaScript can read the keyboard and mouse inputs passed to it from the browser but has no access to generate such codes.
    Reply With Quote
      #3  
    Old 05-12-2007, 05:51 PM
    AltF4's Avatar
    AltF4 AltF4 is offline
    MIT Bound
     
    Join Date: Feb 2006
    Location: Atlanta
    Posts: 214
    just tell the computer to not display screensaver.
    __________________
    David (AltF4)
    Reply With Quote
      #4  
    Old 05-12-2007, 06:25 PM
    felgall's Avatar
    felgall felgall is offline
    Computer Consultant
     
    Join Date: Mar 2005
    Location: Sydney, Australia
    Posts: 7,982
    Even regular programs running 0on the computer will not have the necessary access to be able to simulate the keypresses or mouse actions. A program would need to run at a special priviledge level within the optarating system to do that and if you have access to run programs that way you certainly have more than enough access to change the settings for the screensaver so as to not need to run such a program. The screensaver is easier to disable since it requires less access to the system than simulating keyboard or mouse actions do.
    Reply With Quote
      #5  
    Old 05-12-2007, 06:35 PM
    mrhoo mrhoo is offline
    Registered User
     
    Join Date: Feb 2006
    Posts: 2,561
    Its not only security- it is also energy conservation- a good thing.
    Reply With Quote
      #6  
    Old 05-12-2007, 08:03 PM
    \\.\'s Avatar
    \\.\ \\.\ is offline
    \\.\PhysicalDevice0
     
    Join Date: Mar 2007
    Location: localhost
    Posts: 1,184
    Well if you have it as an electronic notice board, if you go into your power settings and select "Presentation" from the power schemes drop down, it will set your settings for you on monitor off... eg "Never"

    Then set the screensaver to "None" and apply, your computer now shouldnt turn off the monitor unless you manually turn it off.
    __________________
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?
    Reply With Quote
      #7  
    Old 05-13-2007, 02:19 PM
    justin1230smith justin1230smith is offline
    Registered User
     
    Join Date: May 2007
    Posts: 2
    Unhappy

    Thanks for all your replies, sounds like there is no way from a J/Script perspective to do this

    Sadly the domains security settings do not allow me access to turn off the screen saver or adjust the power scheme settings. (Which was the first place I looked)

    I have had some people suggest a little app that I can download that runs as a service and prevents the screensaver but if I get caught installing apps, especially one that in effect circumvents their security settings, then I think I might get in trouble.

    Thanks for your efforts though !

    Justin
    Reply With Quote
      #8  
    Old 05-13-2007, 03:56 PM
    \\.\'s Avatar
    \\.\ \\.\ is offline
    \\.\PhysicalDevice0
     
    Join Date: Mar 2007
    Location: localhost
    Posts: 1,184
    Your only option is to put your case to the network administrator to get that particular machines settings changed, your network admin shouldnt object to this because by the sounds of it your asking a reasonable request for using the machine in a specific way and the current settings for the machine are problematic in as far as it interrupts the 'eNB' and isnt helpful at all.

    If your network admin refuses to change the settings, your next option is to go to your boss ot immediate supervisor that has more clout and kick the muppets ass because THEIRS NO security issues, I take it the system runs on that machine and that machine only? If your given the blow off about security, you can point out that a "Network Administrator" in an online forum told you that theirs no security issue and the request was considered reasonable and to stop being a pedantic ass hole... or words to that effect.
    __________________
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:25 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.