View previous topic :: View next topic |
Author |
Message |
Black Magic I post too much Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Wed Sep 03, 2008 3:41 pm Post subject: [C++] Shut Down timer |
|
|
I use this so when I bot with maplestory I can bot when im at school and when my mom gets home she wont see that a program is playing for me.
Description: |
|
Filesize: |
24.47 KB |
Viewed: |
32047 Time(s) |
|
|
|
Back to top |
|
|
Localhost I post too much Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Wed Sep 03, 2008 4:12 pm Post subject: |
|
|
You should do it in seconds ( just get the variable they put in an divide it by 60 ). Also,you should make it able to go in hide mode ( minimize to tray ).
_________________
|
|
Back to top |
|
|
HalfPrime Grandmaster Cheater Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Wed Sep 03, 2008 5:08 pm Post subject: |
|
|
Or use hours/minutes which makes it much easier on the user.
sleeptimeinmili = (((hour*60)+min)*60)*1000
If you feel like going up a level, try closing the programs instead of just shutting down the computer.
It might be hard to do it with GG's hookes, up, but you could probably kill it with setconsoletitle("cheatengine") then mop up the error messages and kill the bot + hacks.
_________________
|
|
Back to top |
|
|
Black Magic I post too much Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Wed Sep 03, 2008 6:28 pm Post subject: |
|
|
You still can set it for hours, you just gotta make it like a REALLY big number
|
|
Back to top |
|
|
HalfPrime Grandmaster Cheater Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Wed Sep 03, 2008 7:50 pm Post subject: |
|
|
I mean take in both hours and minutes
Code: | cout << "hours: ";
cin >> hours;
cout << "minutes: ";
cin >> mins;
|
It's really annoying to a user to have to open up the calculator and add everything and multiply it by 1000.
_________________
|
|
Back to top |
|
|
pkedpker Master Cheater Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Wed Sep 03, 2008 8:30 pm Post subject: |
|
|
believe it or not there is a program like this in every computer its called shutdown.exe
i think its in the windows folder..
but u just go to start button press Run
type in cmd
now type
shutdown.exe -s -f -t 30 -c "This pc wil shutdown in 30 seconds. cuz i say so."
you could even give it a message if you want.. change -t 30 to -t 60
to shutdown in 60 seconds..
if u dont wanna shutdown but the timer is going down..
type
shutdown -a
and it will abort the countdown
_________________
|
|
Back to top |
|
|
Black Magic I post too much Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Thu Sep 04, 2008 4:47 am Post subject: |
|
|
pkedpker wrote: | believe it or not there is a program like this in every computer its called shutdown.exe
i think its in the windows folder..
but u just go to start button press Run
type in cmd
now type
shutdown.exe -s -f -t 30 -c "This pc wil shutdown in 30 seconds. cuz i say so."
you could even give it a message if you want.. change -t 30 to -t 60
to shutdown in 60 seconds..
if u dont wanna shutdown but the timer is going down..
type
shutdown -a
and it will abort the countdown | Or you could just use my program.
|
|
Back to top |
|
|
Anden100 Grandmaster Cheater Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Thu Sep 04, 2008 1:44 pm Post subject: |
|
|
pkedpker wrote: | believe it or not there is a program like this in every computer its called shutdown.exe
i think its in the windows folder..
but u just go to start button press Run
type in cmd
now type
shutdown.exe -s -f -t 30 -c "This pc wil shutdown in 30 seconds. cuz i say so."
you could even give it a message if you want.. change -t 30 to -t 60
to shutdown in 60 seconds..
if u dont wanna shutdown but the timer is going down..
type
shutdown -a
and it will abort the countdown |
You dont need to do it in CMD, you can do it in the Run dialog aswell , or make a shortcut?
|
|
Back to top |
|
|
rapion124 Grandmaster Cheater Supreme Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Tue Sep 23, 2008 7:08 pm Post subject: |
|
|
A better way would be to place a camera at your front door and have the live feed to the computer. Have the computer check for movement. If there's movement (meaning someone was there), it will shut down by itself!
|
|
Back to top |
|
|
Localhost I post too much Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Tue Sep 23, 2008 7:44 pm Post subject: |
|
|
rapion124 wrote: | A better way would be to place a camera at your front door and have the live feed to the computer. Have the computer check for movement. If there's movement (meaning someone was there), it will shut down by itself! |
So if a bird flys buy trying to catch that early morning worm, it will shut down?
_________________
|
|
Back to top |
|
|
sponge I'm a spammer Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Sep 23, 2008 10:14 pm Post subject: |
|
|
How about an infrared camera + detection of a large source of heat. Make sure pets dont go into your room.
_________________
|
|
Back to top |
|
|
krazedkat I post too much Reputation: 0
Joined: 29 Aug 2007 Posts: 2255 Location: Hell, Norway
|
Posted: Tue Sep 23, 2008 10:40 pm Post subject: |
|
|
sponge wrote: | How about an infrared camera + detection of a large source of heat. Make sure pets dont go into your room. |
That would cost alot of money and probably would be worth it. Why not just usb motion sensors
|
|
Back to top |
|
|
BogovicH Expert Cheater Reputation: 0
Joined: 12 Oct 2007 Posts: 240
|
Posted: Wed Sep 24, 2008 6:06 am Post subject: |
|
|
And a heat seking missile launcher that fires at the target,right?
Nice program,overall
|
|
Back to top |
|
|
Heartless I post too much Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Wed Sep 24, 2008 3:32 pm Post subject: |
|
|
sponge wrote: | How about an infrared camera + detection of a large source of heat. Make sure pets dont go into your room. |
I heard of some poeple doing that with the PS2 Eyetoy, except without the infrared.
_________________
What dosen't kill you, usually does the second time. |
|
Back to top |
|
|
nwongfeiying Grandmaster Cheater Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Thu Sep 25, 2008 10:35 pm Post subject: |
|
|
I should post mine. It also does messages, playing sounds, shutting down a window, shutting down computer, or restarting a computer at the designated time.
It feautres times in milliseconds, seconds, minnutes, and hours. The only downside is that I would get critiqued pretty bad by the programmers of this section beacuse the size might be large do to the background (window form application).
Edit: When I have it up to par (to the point where I won't be ridiculed), I will create a thread from it. It's currently not as good as I want it to be.
Code: |
1. You can only close the processes that you openned, but I'll fix that whenever I get the time.
2. The sound file is bound to a wave file inside the resource folder named "sample.wav".
3. Something else that I forgot. |
Last edited by nwongfeiying on Fri Sep 26, 2008 10:30 pm; edited 5 times in total |
|
Back to top |
|
|
|