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.
has-been wanna-be (You may not agree with what I say, but it will make you think).
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.
Has-been Wanna-be (You may not like what I say, but it will make you think)
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
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.
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)