Prevent problems by periodically restarting critical programs / services

Some programs and services benefit from an occasional restart. Maybe they a have cumulative memory leak that can slow the computer to a crawl after a day or two, or maybe they simply get unreliable if left running for too long. Either way, PTFB Pro can safely close then re-launch the target software according to a schedule of your choosing.

How to do it …

  1. Open up PTFB Pro’s main window by clicking on its tray icon
  2. Click on “New Macro…” and choose “ProgMon Macro”
  3. Select the target program in the resulting list and hit Next
  4. Choose “Restart the program if it’s running” and set the frequency.
  5. The next page deals with how the program will be closed. “Request Quit” is the preferred choice for programs, but for services you’ll probably need to use the command line option.
  6. The final page deals with relaunching the program. You can usually just take the defaults and hit “Finish” but if you want to make changes you can.

If you need more control than the simple “frequency” option #4 affords, don’t forget that you can still edit your new ProgMon item and set it to execute by a schedule of your choosing, or limit it to running only during some hours of the day and/or days of the week. If you wish you can even using Windows’ inbuilt scheduler to run the item via the command line. The choice is yours!

Find out more about boosting your productivity with autoclicks and macros.
CLICK HERE to download a free 30 day trial, no strings attached. If you aren’t entirely happy simply uninstall!

How to automatically restart a program when it becomes unresponsive

There’s a critical program on your system that has known memory leaks. It needs to be restarted on a regular basis to free up resources.

Another critical program occasionally hangs or goes into the ‘not responding’ state. It needs to be restarted quickly when this happens – even during the night when there’s no one on the premises.

How to do it …

  1. Open up PTFB Pro’s main window by clicking on its tray icon
  2. Click on “New Macro…” and choose “ProgMon Macro”
  3. Select the program in the resulting list and hit Next
  4. Choose “Restart the program ONLY if it is not responding” and set the frequency of the check (make this as long as you’re comfortable with). Hit Next
  5. The next page deals with how the program will be terminated when it has become unresponsive. By default, PTFB Pro choose “Forced Exit” and ticks “Only terminate program if it is not responding. Unless you have good reason to do otherwise, just hit Next to take these defaults.
  6. The final page deals with relaunching the program. Again, you can usually just take the defaults and hit “Finish” but if you want to make changes you can.

You may wish to tweak your new macro’s settings after you’ve created it. If so, just double-click on the new macro in PTFB Pro’s main window and work through its tabbed Properties screen.

Find out more about boosting your productivity with autoclicks and macros.
CLICK HERE to download a free 30 day trial, no strings attached. If you aren’t entirely happy simply uninstall!

How to automatically kill then restart a program that is “Not responding”?

One of the companies I worked for had an old but irreplaceable mail proxy program running on a dedicated PC. The program’s job was to split up incoming mails and make sure that they got to the right person’s inbox. It did a great job when it worked, but it was a buggy and every so often it would freeze/hang. Once it got into this “not responding” state the only way to get it working again was for someone to open task manager, find it in the process list, force it to quit and then restart it. This was annoying both for the people stuck waiting for their mail, and for the poor fellow who had to drop everything to fix it.

This is one of many situations where PTFB Pro’s Program Monitor or “Progmon” items can make things run a lot more smoothly. Progmons can detect when a program has entered the “not responding” state, force it to quit and relaunch it automatically without the need for any human intervention. Setting them a Progmon up is easy:

1) Open PTFB Pro’s main window

2) Click New Macro and choose ProgMon Macro.

3) Find the program in question in the process list, select it and hit Next.

4)  Choose the option “Restart the program ONLY if it’s not responding, and set how often the check should be made. In many cases the default of five minutes is good enough. Click Next when you’re done.

Progmon action page

5) Click Next again, because the defaults are fine for the “Close Program” page of the wizard. You’re now on the final wizard page where you can specify how the program should be relaunched. If there are any special command line directives you need to use, include them here and hit “Finish”.

That’s it. Hit Start Watching and PTFB Pro will keep an eye on the program, killing and restarting it automatically the next time it hangs.

Find out more about boosting your productivity with autoclicks and macros.
CLICK HERE to download a free 30 day trial, no strings attached. If you aren’t entirely happy simply uninstall!