Auto Shutdown

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
19 posts Page 1 of 2
Contributors
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Auto Shutdown
tvs praveen
Hi, Now my idea is to make an program which automatically wants to shutdown PC to the time which we set into it, I mean add 1 TextBox and 2 Buttons

TextBox1 is using to set time, e.g : type: 8:45:22 AM, Then wants to Shutdown PC at this time

Button1 is using to activate Auto Shutdown

Button2 is using to disable Auto Shutdown
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: Auto Shutdown
Nery
Ok, use 4 labels for the time:
Label1 = Hours
Label2 = Minutes
Label3 = Seconds
Label4 = AM or PM

Make a timer with interval 100 milliseconds or whatever and put this on Timer_Tick:
Code: Select all
If Label1.Text = 8 and Label2.Text = 45 and Label3.text = 22 and Label4.Text = AM Then
System.Diagnostics.Process.Start("shutdown", "-s -t 00")
End If
In the button1 put:
Code: Select all
Timer1.Enabled = True
In the button2 put:
Code: Select all
Timer1.Enabled = False
I think that is the most primitive way for doing that but it is simple to understand.
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Re: Auto Shutdown
tvs praveen
Nery wrote:
Ok, use 4 labels for the time:
Label1 = Hours
Label2 = Minutes
Label3 = Seconds
Label4 = AM or PM

Make a timer with interval 100 milliseconds or whatever and put this on Timer_Tick:
Code: Select all
If Label1.Text = 8 and Label2.Text = 45 and Label3.text = 22 and Label4.Text = AM Then
System.Diagnostics.Process.Start("shutdown", "-s -t 00")
End If
In the button1 put:
Code: Select all
Timer1.Enabled = True
In the button2 put:
Code: Select all
Timer1.Enabled = False
I think that is the most primitive way for doing that but it is simple to understand.
Thanks but you used 4 Labels, But i want to make it with 1 TextBox, Note TextBox is using to set Shutdown time

When set the shutdown time later when press "Activate Shutdown" Button wants to activate auto shutdown which wants to shutdown PC at time which we set into TextBox, e.g: 8:45:22 AM then wants to shutdown PC at that time
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: Auto Shutdown
hungryhounduk
Hi Tvs
Try this in the attachment below cooll;

Chris
You do not have the required permissions to view the files attached to this post.
Image
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Re: Auto Shutdown
tvs praveen
hungryhounduk wrote:
Hi Tvs
Try this in the attachment below cooll;

Chris

Thanks a lot!, Exactly this one! :D

Just give me source-code of this Auto Shutdown! cooll;

- Kindly

- Tvs Praveen wahooo;
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: Auto Shutdown
hungryhounduk
I'm still waiting for that Tutiorial for those Buttons :)
Image
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Re: Auto Shutdown
tvs praveen
hungryhounduk wrote:
I'm still waiting for that Tutiorial for those Buttons :)
What you mean tutorial?, I just asked give me SHUTDOWN MANAGER Source-Code

You mean those buttons?, I learned to make those folder and color buttons from this website

http://www.tutorialized.com/tutorials/Photoshop/1

So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.com
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: Auto Shutdown
hungryhounduk
So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.com
They Put the Tutorials up so that People can follow them and Create their Own.....As what's the point of putting the Tutorial up in the first place if you cant recreate them yourself :? :roll:
Image
User avatar
tvs praveen
Top Poster
Top Poster
Posts: 205
Joined: Tue Dec 08, 2009 6:20 am

Re: Auto Shutdown
tvs praveen
hungryhounduk wrote:
So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.com
They Put the Tutorials up so that People can follow them and Create their Own.....As what's the point of putting the Tutorial up in the first place if you cant recreate them yourself :? :roll:
Yes, Its hard to create tutorial for that one, Only easiest is to create round 3d gradient buttons, banners e.t.c...

But its got too many layers, So i can`t make tutorial for it

But please give me this Auto Shutdown Source-Code it will helps me a lot!

Later i`ll make tutorial for it if i can!

Note: Our only deal is only for mixer not for this Auto Shutdown source-code
User avatar
Miutubevids
VIP-Member
VIP-Member
Posts: 293
Joined: Mon Nov 23, 2009 11:39 am

Re: Auto Shutdown
Miutubevids
hungryhounduk wrote:
So i can`t make tutorial for it, `cos this tutorial is only owned by tutorialized.com
They Put the Tutorials up so that People can follow them and Create their Own.....As what's the point of putting the Tutorial up in the first place if you cant recreate them yourself :? :roll:
i love it how people follow a tutorial and then think as if they created it themselves...
Don't BS the BSer

RePlay V1.0 - Record your Mouse Clicks, Mouse Movments and Keystrokes
AutoClicker v1.0
SnowScreen
Reaction Timer Game V1.0
19 posts Page 1 of 2
Return to “Tutorial Requests”