scheduled task

Just starting out? Need help? Post your questions and find answers here.
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

scheduled task

Post 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 :wink:

--------------
Pour les Français qui souhaitent me répondre, la traduction en français :mrgreen:

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.
LSI
oldefoxx
Enthusiast
Enthusiast
Posts: 532
Joined: Fri Jul 25, 2003 11:24 pm

Scheduled Tasks

Post 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.
has-been wanna-be (You may not agree with what I say, but it will make you think).
D'Oldefoxx
User
User
Posts: 30
Joined: Wed Aug 06, 2003 5:52 pm
Location: Florida, USA

Task Scheduler (cont)

Post 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.
Has-been Wanna-be (You may not like what I say, but it will make you think)
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post 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)
LSI
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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
SPAMINATOR NR.1
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post 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.
LSI
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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) :(
SPAMINATOR NR.1
Post Reply