View Single Post
  #7  
Old 01-05-2006, 04:16 AM
Sparda
 
Posts: n/a
Default Re: Re: Shutdown via Screensaver

"" wrote:
> Thanks, but the idea is not user-friendly enough.
> I think that if a user is actually logged in, he/she should
> have some kind
> of warning (1 to 2 minutes), before shutdown.
>
> Regards, Bjørn
>
>
>
> "Sparda" <UseLinkToEmail@www.windowsforumz.com> skrev i en
> meddelelse
> news:1461057_190456d0e04f437ff8bb4ba3e663b19a@wind owsforumz.com...
> > Why donâ?Tt you write a "screen saver" your self?
> > I will even give you the code I would use (asuming your

> writing it in
> > C++ and then Visual C++ 6).
> >
> >>#include <iostream>
> >>using namespace std;
> >>
> >>int main()
> >>{
> >>system("shutdown -s -f");
> >>return 0;
> >>}
> >>

> > Once compiled to exe, rename the exe file to scr (scrs are

> exes), put
> > it in the system32 directory, specifie the screen saver.

> Hay presto!
> > when ever the screen saver activiats, the computer shuts

> down! You
> > will also have to specifie this as the default screen saver

> for when
> > no one is logged in, this can be changed in registray key
> > HKEY_USERS.DEFAULTControl PanelDesktop.
> >
> > --
> > Posted using the http://www.windowsforumz.com interface, at author's
> > request
> > Articles individually checked for conformance to usenet

> standards
> > Topic URL:
> > http://www.windowsforumz.com/Shutdow...ict434469.html
> > Visit Topic URL to contact author (reg. req'd). Report

> abuse:
> > http://www.windowsforumz.com/eform.php?p=1461057


You could write one in Visual basic then, using the same method,
except, you have a single form, that has one button on it (the cancle
button) then a timer on that form that counts down from 2 moniets to
zero seconds, and once it’s got to zero seconds, it executes the
shell command to forcivly shut down (shutdown -s -f). The problem
using this is that it will forcivly close programs, so if it shutsdown
the computer and a user dosnt notice, then it will lose any work they
havent saved.
Reply With Quote