It is a little timer app for a online MMOG game called Roblox.
I let some kids use my computer and don't want them to stay on for 2 hours playing it.
(Don't ask why I do it)
So far it is window$ only just because the game only works on window$.
(Pity....)
I have it set as a bat script,a launcher for that bat script and the timer/roblox launcher that fires a log off script.
Here is the code I decided on for the main launcher:
Code: Select all
#include <iostream>
#include <windows.h>
#include <dos.h>
#include <unistd.h>
using namespace std;
int main()
{
cout << "========================================================";
cout << "\n=====================Warning!===========================";
cout << "\n======If you close this program you will log off!=======";
cout << "\n========================================================";
cout << "\n========================================================";
cout << "\n\nWaiting for internet to load...\n";
Sleep(10000);
cout << "Starting Roblox\n";
system("E:\\Roblox.exe");
cout << "\n\n\nYou have 30 minutes before I log you off.";
Sleep(3300000);
PlaySound("E:\\WINDOWS\\Media\\Windows XP Ringout.wav", NULL, SND_FILENAME|SND_LOOP);
PlaySound("E:\\WINDOWS\\Media\\Windows XP Ringout.wav", NULL, SND_FILENAME|SND_LOOP);
PlaySound("E:\\WINDOWS\\Media\\Windows XP Ringout.wav", NULL, SND_FILENAME|SND_LOOP);
PlaySound("E:\\WINDOWS\\Media\\Windows XP Ringout.wav", NULL, SND_FILENAME|SND_LOOP);
PlaySound("E:\\WINDOWS\\Media\\Windows XP Ringout.wav", NULL, SND_FILENAME|SND_LOOP);
Sleep(300000);
system("E:\\Log_off.bat");
}
Code: Select all
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
system("E:\\Startup.bat.bat");
}
Any comments?
At all?