Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Desktop Timer (exe) to run 'My.exe'(s) 3

Status
Not open for further replies.

Docpro777

Programmer
Jul 1, 2003
105
US
I'm experimenting with a DesktopTimer.exe concept to hopefully run other 'My.exe'(s) (backround backups, schedule updates, etc.) and am having frustrations:

1) The Timer class object sticks only to a form (container class); is there another idea for a programatic timer (DOWHILE loops?) to run Desktop exe s.

2) I can't figure out how to launch "My.exe" as a seperate process (profound ignorance). "My.exe" becomes nested into the DesktopTimer.exe.

This is a general question and ALL FEEDBACK is welcome. Thanks in advance

Philip

Philip M. Traynor, DPM
 
Docpro777


May I ask why you wouldn't create a program you want to run, and use the Scheduled Task from windows? I use it all the time and it works like a charm.

1) The Timer class object sticks only to a form (container class); is there another idea for a programatic timer (DOWHILE loops?) to run Desktop exe s.

Yes, you can write code to create strickly a timer class:
Code:
PUBLIC otimer
otimer = CREATEOBJECT("time1")
DEFINE CLASS TIME1 AS Timer
 INTERVAL = 1000000
ENDDEFINE

2) I can't figure out how to launch "My.exe" as a seperate process (profound ignorance). "My.exe" becomes nested into the DesktopTimer.exe.

I'm not sure what that means. Do you want to prevent that application from showing up in the taskbar? If your application is a simple program (no interface), and you run it in the Windows Scheduled task, it won't appear in the taskbar.




Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike right. If it is a task that needs to be run on regular intervals - the scheduler is a good choice.

If you want a little more control, you may consider the bbsystray.fll. It is cheap - only $8.00 and comes with VFP sample code to create the cool looking tray icons for you. It comes complete with left and right mouse click code.

Anyway, I downloaded it a while back and played with it. I think it is pretty cool. However, I have not implemented it into any projects. I was more curious at the time and have not had a specific need.

You can go to the site and see if it fits your requirements.



Jim Osieczonek
Delta Business Group, LLC
 
Just to add my two cents to jimoo's post...

I have used the bbsystray.fll in many of my own projects. Has worked wonderfully for automatic backup and automatic update projects. It won't schedule the tasks for you but it sure gives a professional look to background processes like Docpro777 is talking about. It is extremely economical ($8 as advertised) and has held up in all my applications that utilize it. I haven't had a single bug report or complaint from any of the users and haven't noticed any deficiencies in it as a developer.

Slighthaze = NULL
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Thanks Mike, Jim, Craig,

'Don't know how I missed on that 'Scheduled Task' for windows. It seems to solve all the problems SANS programming. (Don't want to re-invent any more wheels)

It seems the best way to go at present.

As for bbsystray.fll, I should check it out as well.

Philip M. Traynor, DPM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top