Jump to content

Automatic restart PC and Shot down


Recommended Posts

Cheers all,

I am animation artist. I have an art show coming up. I want my PC to start automatically at certain time and shot down at certain time and start my animation/video and shot down my animation. Without any human interaction. (Call it idiot proof from art director) Is this possible. I have tried to find things online. No Luck… I was thinking DOS scripts. Or where should I look for answers…

Link to comment
Share on other sites

I am pretty sure that you cannot start your computer without any interaction, because it is powered down and cannot run any applications. You could easily open the animation and close it, but I foresee problems with it being maximized or it being played (check in your flash player or whatever for options like 'Always Start Fullscreen'). I personally would do this with C++ simply because it is my language of choice. I would do something along the lines of this:

#include <iostream>
#include <windows.h>

int main()
    std::system("C:\\Program Files\\Adobe\\Flash Player\\flashplayer.exe C:\\path\\to\\flash\\file");
    Sleep(however long the animation is plus 20 seconds for loading time);
    killprocess("flashplayer.exe"); // There are many functions for this, look around
    std::system("shutdown"); // you could also just shutdown without killing the process

I think something like that would work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...