Bookmark and Share

Author Topic: Simple Shutdown Timer  (Read 10354 times)

0 Members and 1 Guest are viewing this topic.

Offline zorrozac

  • PcWinTech Jr. Member
  • Join Date: Mar 2014
  • Posts: 3
  • Karma: 0
Simple Shutdown Timer
« on: March 01, 2014, 01:07:37 PM »
Shane,

I am very impressed with your Simple Shutdown Timer.

Question 1: I am very interested in knowing what language you used for this application.

Question 2: When running in a command line, is there any additional parameter
                   that can be specified to prevent the icon appearing in the system tray ?

Basically, I want to restrict access to a PC from 01:00 to 07:00 inclusive and
not give the user the availability to cancel the application from the system tray.

Thanking you in advance - Kevin

PcWinTech.com Forums

Simple Shutdown Timer
« on: March 01, 2014, 01:07:37 PM »

Offline zorrozac

  • PcWinTech Jr. Member
  • Join Date: Mar 2014
  • Posts: 3
  • Karma: 0
Re: Simple Shutdown Timer
« Reply #1 on: March 01, 2014, 01:45:34 PM »
Hi again Shane,

I have just realized that I would need both the system tray icon AND popup menu from being displayed,
so that the process cannot be terminated.

Hopefully, you may have this available in your program's command line parameters.

Kevin

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Simple Shutdown Timer
« Reply #2 on: March 03, 2014, 07:33:29 PM »
Right now the program is just basic and calls the Windows api.

You could always make a bat file and use the windows built in shutdown.exe (It has command line options) and then schedule it through the task scheduler :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline zorrozac

  • PcWinTech Jr. Member
  • Join Date: Mar 2014
  • Posts: 3
  • Karma: 0
Re: Simple Shutdown Timer
« Reply #3 on: March 03, 2014, 08:30:22 PM »
Thanks for your helpful reply (and program)  Shane.

Instead of a bat file, I wrapped some VB around the call to your program.

The passing parameters from the VB program allows any time periods
to be specified for which access is to be denied to the PC.

At the moment, I am using 01:00 to 07:00 to prevent my niece from
playing on the PC all night !

She is now getting a good night's sleep.

As per your recommendation, I have used the task scheduler and
everything works perfectly now.

I should imagine that a large number of parents would desire this
program for their own game-addicted children ?

You have made it all possible by your wonderful program.

Many thanks and ultra regards - Kevin




Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: Simple Shutdown Timer
« Reply #4 on: March 03, 2014, 09:37:41 PM »
Good to hear you got a solution worked out :-D

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums

Re: Simple Shutdown Timer
« Reply #4 on: March 03, 2014, 09:37:41 PM »

 

email