Home All Groups Group Topic Archive Search About

Timer to start my program at a certain time?

Author
19 Mar 2006 8:47 AM
vonClausowitz
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

Author
19 Mar 2006 9:11 AM
AGP
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
>
Author
19 Mar 2006 9:50 AM
vonClausowitz
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
Author
19 Mar 2006 5:58 PM
AGP
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
>
Author
19 Mar 2006 5:10 PM
Veign
Try using Windows Scheduler and just start your application with some
arguments.

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


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
>
Author
19 Mar 2006 10:54 PM
RB Smissaert
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
>
Author
20 Mar 2006 4:02 PM
vonClausowitz
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