I am using waint n(miliseconds) What I need to do is run a program every 15 min, let it run the program for 14 min, send couple keys and then close the program(via keystrokes). Then run it again...
What would be the easiest and proven method for this? --- In [email protected], "brucexs" <bswit...@...> wrote: > > > > > > > *wait 780000 > > > *keys something > > > *wait 500 > > > *keys something > > > > > > I'm guessing you are not using plain wait, as it operates in seconds > and wait 780000 is a long time If you are, that might be thre > reason . > > 1. waits really are intended to cover short pauses of up to at most a > few seconds. For scheduling longer periods, consider using events or > timers as well as scheduler. > > 2. Be sure that you avoid the possibility of scheduled events and > waits of the same type piling up, especially with wait.for, as this can > exhaust ppro system memory, leading to a crash. If the above is really > a wait.for, and given the scheduler is only accurate to a minute, it > seems possible that the one event could fire before the other > completes, leading to problems. >
