Page 1 of 1
scheduled task
Posted: Wed Aug 06, 2003 10:07 am
by Le Soldat Inconnu
Hello,
I make a soft and I want make a scheduled task when I push on a button in this soft.
thanks
--------------
Pour les Français qui souhaitent me répondre, la traduction en français
salut,
J'ai réalisé un prog de sauvegarde et je voudrais ouvrir la fenêtre permettant de créer une tache planifiée de mon prog en appuyant un bouton
merci d'avance.
Scheduled Tasks
Posted: Thu Aug 07, 2003 5:01 am
by oldefoxx
There are task schedulers available for each and every operating system, and people keep devising new ones. These are tasks that tie into some reoccuring event that takes place within the system, possibly a timer, and do some necessary task, such as update the clock or date display. They also check to see if any tasks were scheduled, and if so. initiate a program call to the specified file, which might be a Batch File, a COM file, or an EXE file, or to some program that can interpret a script (text) file.
Some of these go by names that might include some reference to Alarm Clock, Task Scheduler, Wakeup Call, or something similar. In Unix and Linux systems, you may be referring to CRON. A search of the internet and various repositories for programs and code should turn up some interesting candidates.
Note that not all Task Schedulers are alike. Some merely start programs at a certain time, while others can get pretty sophisticated concerning how long a PC has been idle, or when this same task last ran, or in another program has run to completion first.
Task Scheduler (cont)
Posted: Fri Aug 08, 2003 4:26 am
by D'Oldefoxx
I sould have mentioned that if you look under Start/Settings/Control Panel, you will probably find an icon for Scheduled Tasks. You can use this if you want, or do as I also suggested, look for a more powerful tool to add to your your toolbox.
Posted: Fri Aug 08, 2003 11:15 am
by Le Soldat Inconnu
Hello,
In fact, when I push a button on my soft, I want make a sheduled task on my soft.
how make a sheduled task manually is not a matter for me !
My idea is to open with my button a sheduled task with my program in parametter automatically.
Do you understand what I want ?
(sorry for mistakes)
Posted: Fri Aug 08, 2003 11:50 am
by Rings
hope this help you:
Code: Select all
Procedure Mythread(sleeptime)
Delay(sleeptime)
MessageRequester("Info","delayed Task",0)
EndProcedure
scheduletime=5000;5 seconds delay
ThreadID = CreateThread(@Mythread(), scheduletime)
If OpenWindow(0, 100, 200, 195, 260, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget, "PureBasic Window")
Repeat
EventID.l = WaitWindowEvent()
If EventID = #PB_Event_CloseWindow ; If the user has pressed on the close button
Quit = 1
EndIf
Until Quit = 1
EndIf
End
Posted: Fri Aug 08, 2003 3:12 pm
by Le Soldat Inconnu
I want to use the sheduled task of windows.
And when I push on my button, I want open the configuration window of the sheduled task of window with my program in the default parameter.
it's dificult to explain my idea in english, sorry. i don't speak english very well.
Posted: Fri Aug 08, 2003 6:03 pm
by Rings
Le Soldat Inconnu wrote:It's dificult to explain my idea in english, sorry. i don't speak english very well.
nop, isn't. i understand you now more clearly what you want to do.
your english is good enough to understand your problem now.
But unfortunaly i cannot help you with that topic (i never have any expierence with that)
