Page 1 of 1 1
Topic Options
#155677 - 2006-01-20 03:28 AM What do I need?
kingfisher Offline
Fresh Scripter

Registered: 2005-12-28
Posts: 28
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?
Top
#155678 - 2006-01-20 08:38 AM Re: What do I need?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
is it a specific time (like 11:55am) or does it need to run after a spcific period?
_________________________



Top
#155679 - 2006-01-20 09:12 AM Re: What do I need?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Scheduled Task, or SLEEP typically.
Top
#155680 - 2006-01-20 09:30 AM Re: What do I need?
kingfisher Offline
Fresh Scripter

Registered: 2005-12-28
Posts: 28
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.

Top
#155681 - 2006-01-20 10:20 AM Re: What do I need?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmmm ...

Code:
 
while @time < "11:55:00"
sleep 1
loop
call "[Path]yourscript.kix"



but a scheduled task would be more safe
_________________________



Top
#155682 - 2006-01-20 03:09 PM Re: What do I need?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Depends on who's security context it needs to run in. Scheduled Task does not interact easily with the desktop.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#155683 - 2006-01-20 04:43 PM Re: What do I need?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
why not?
just set the interact with desktop thingie
_________________________
!

download KiXnet

Top
#155684 - 2006-01-20 05:07 PM Re: What do I need?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Can you say "EASILY"?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#155685 - 2006-01-20 06:03 PM Re: What do I need?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think I can.
_________________________
!

download KiXnet

Top
#155686 - 2006-01-20 06:16 PM Re: What do I need?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#155687 - 2006-01-20 06:34 PM Re: What do I need?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
local system owned task can interact with logged in users desktop.
_________________________
!

download KiXnet

Top
#155688 - 2006-01-20 06:47 PM Re: What do I need?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Really? I did not know that???
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#155689 - 2006-01-20 06:59 PM Re: What do I need?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you didn't or you "didn't"?
_________________________
!

download KiXnet

Top
#155690 - 2006-01-25 04:53 AM Re: What do I need?
kingfisher Offline
Fresh Scripter

Registered: 2005-12-28
Posts: 28
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?

Top
#155691 - 2006-01-25 09:45 AM Re: What do I need?
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
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.


Edited by Mart (2006-01-25 09:45 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#155692 - 2006-01-25 12:15 PM Re: What do I need?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.066 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org