|
|
|||||||
I want to write a timer stayed in background, when the time arrived, it called a script. I would like to use Kix,which technic I need? |
||||||||
|
|
|||||||
is it a specific time (like 11:55am) or does it need to run after a spcific period? |
||||||||
|
|
|||||||
Scheduled Task, or SLEEP typically. |
||||||||
|
|
|||||||
Yes, it is a specific time. As NTDOC said, it is a scheduled task, when users logon, I would like there is a script timer stayed in the background, and then the script calls a application. But I don't know what I need. |
||||||||
|
|
|||||||
hmmm ... Code:
but a scheduled task would be more safe |
||||||||
|
|
|||||||
Depends on who's security context it needs to run in. Scheduled Task does not interact easily with the desktop. |
||||||||
|
|
|||||||
why not? just set the interact with desktop thingie |
||||||||
|
|
|||||||
Can you say "EASILY"? |
||||||||
|
|
|||||||
I think I can. |
||||||||
|
|
|||||||
That's good... one step at a time. Now, can you do it *easily*? AFAIK, to interact, the task needs to run under the same creds as the user who's desktop you need to interact with. How do you create a task in a logon script that would pass the user's password? Easily said, not so easily done. |
||||||||
|
|
|||||||
local system owned task can interact with logged in users desktop. |
||||||||
|
|
|||||||
Really? I did not know that??? |
||||||||
|
|
|||||||
you didn't or you "didn't"? |
||||||||
|
|
|||||||
I have a problem about "call", I have such code: ********** call 1.kix call 2.kix call 3.kix quit ********** Is 2.kix will be called until 1.kix is completed? Is it possible that 2.kix and 1.kix are called on same time? |
||||||||
|
|
|||||||
Call waits for the called stuff to complete before proceeding to the next line. You could use run to get 1.kix and 2.kix running at the same time. Run does not wait for the run stuff to complete. |
||||||||
|
|
|||||||
yes, call is kinda equivalent to gosub. gosub jumps to the sub script to be executed and when that subscript returns, the execution continues after the gosub. call does same but it handles external files. |