home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!jessica.stanford.edu!brod
- From: brod@jessica.stanford.edu (Brodie Lockard)
- Subject: Re: Help! I need the time in my stack
- Message-ID: <1992Dec21.083357.8376@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (USENET News System)
- Organization: Academic Information Resources
- References: <92356.01033234A6J53@CMUVM.CSV.CMICH.EDU>
- Date: Mon, 21 Dec 92 08:33:57 GMT
- Lines: 30
-
- In article <92356.01033234A6J53@CMUVM.CSV.CMICH.EDU> CHUCK WILLIAMS <34A6J53@CMUVM.CSV.CMICH.EDU> writes:
- >Hellooo netters,
- >
- >I'm thinking of creating a hypercard stack that will keep track
- >of the system users in the lab where I work. To do this I want
- >to grab the mac's time and input it when the person logs on; I also
- >would like to increment the time and make an alarm when the user
- >exceeds the time limit. This is a big requirement spec of mine,
-
- In your stack script:
-
- on openStack
- global timeIn, timeLimitInMinutes
- put the ticks into timeIn
- put 20 into timeLimitInMinutes --or whatever you want the limit to be
- ...
- end openStack
-
- on idle
- global timeIn, timeLimitInMinutes
- if (the ticks - timeIn) / 3600 > timeLimitInMinutes then
- answer "Time's up!" with "Goodbye"
- go home
- else
- ...
- end if
- pass idle
- end idle
-
- Brodie Lockard brod@jessica.stanford.edu
-