|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Timer to start my program at a certain time?Hi All,
I have created a program which has a auto download function. I want this auto download to start somewhere during the night. So I need a timer that checks for the time and when it is his time he has to fire off the function. He should then open the form which holds the auto download and start the function on the form. How should that be done? Regards Marco create the timer directly on your form and check the time every minute or
so. then when the time hits the call your function. let the app minimize to the system tray. AGP Show quoteHide quote "vonClausowitz" <vonclausow***@gmail.com> wrote in message news:1142758028.334587.194130@i39g2000cwa.googlegroups.com... > Hi All, > > I have created a program which has a auto download function. > I want this auto download to start somewhere during the night. So I > need a timer that checks > for the time and when it is his time he has to fire off the function. > > He should then open the form which holds the auto download and start > the function on the form. > > How should that be done? > > Regards > Marco > does that mean the form has to be open to get the function activated?
and furthermore why minimize the app when the function starts? Marco try it. you can always put the function in a module.
minimize the app to the system tray only to not take up space on the taskbar. like the anti-virus...its always active and you can see it in the tray not in the taskbar. AGP Show quoteHide quote "vonClausowitz" <vonclausow***@gmail.com> wrote in message news:1142761859.240697.299830@u72g2000cwu.googlegroups.com... > does that mean the form has to be open to get the function activated? > > and furthermore why minimize the app when the function starts? > > Marco > Try using Windows Scheduler and just start your application with some
arguments. -- Show quoteHide quoteChris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp Veign's Blog http://www.veign.com/blog -- "vonClausowitz" <vonclausow***@gmail.com> wrote in message news:1142758028.334587.194130@i39g2000cwa.googlegroups.com... > Hi All, > > I have created a program which has a auto download function. > I want this auto download to start somewhere during the night. So I > need a timer that checks > for the time and when it is his time he has to fire off the function. > > He should then open the form which holds the auto download and start > the function on the form. > > How should that be done? > > Regards > Marco > Try getting hold of Edanmo's Task Scheduler. This ActiveX dll makes it easy
to access the Windows task scheduler from VB. I think the author has moved to .Net and it may not that easy to find though. RBS Show quoteHide quote "vonClausowitz" <vonclausow***@gmail.com> wrote in message news:1142758028.334587.194130@i39g2000cwa.googlegroups.com... > Hi All, > > I have created a program which has a auto download function. > I want this auto download to start somewhere during the night. So I > need a timer that checks > for the time and when it is his time he has to fire off the function. > > He should then open the form which holds the auto download and start > the function on the form. > > How should that be done? > > Regards > Marco > hi,
I implemented the Module Waitabletimer with its function Wait. This I was told works better if you want to schedule for longer periods. Marco |
|||||||||||||||||||||||