Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Timeout?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alvin Carter  
View profile  
 More options Nov 26 1998, 3:00 am
Newsgroups: comp.lang.clipper
From: "Alvin Carter" <al-c...@mindspring.com>
Date: 1998/11/26
Subject: Re: Timeout?
You could edit your GETSYS.PRG that came with clipper and search in the
source code for INKEY(0) and change it to another value followed by a "CLOSE
ALL" and "QUIT".  Then compile and link into your program to replace the one
that comes with CLIPPER.LIB.  The maximum value of INKEY is 386 which is
6.44 minutes.  The ideal way is to set a timer in your GETSYS.PRG if you
want to give your user more than 6.44 minutes before timing out.

This will only work if a get is on the screen at the time.  If a menu is on
the screen and no gets it will not work.  If so, you would have to modify
your menu code also.

Alvin Carter
Birmingham, Alabama

nojimbeams...@intergate.com wrote in message

<365e2c18.78267...@news.intergate.com>...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nojimbeamspam  
View profile  
 More options Nov 27 1998, 3:00 am
Newsgroups: comp.lang.clipper
From: nojimbeams...@intergate.com
Date: 1998/11/27
Subject: Timeout?
I'm looking for a way of ending program execution if a user is
inactive for a certain period of time.  Any advice???

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boydek Victor  
View profile  
 More options Nov 27 1998, 3:00 am
Newsgroups: comp.lang.clipper
From: "Boydek Victor" <v_boy...@mtu-net.ru>
Date: 1998/11/27
Subject: Re: Timeout?
Hi!
I solve the similar problem next way:
set key 255 to Night  - this is my function
keysec(chr(255),600,-1,.t.)  - this is tools function


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Ramsay  
View profile  
 More options Nov 27 1998, 3:00 am
Newsgroups: comp.lang.clipper
From: n...@nospam.demon.co.uk (Nick Ramsay)
Date: 1998/11/27
Subject: Re: Timeout?
On Thu, 26 Nov 1998 23:19:43 -0600, "Alvin Carter"

<al-c...@mindspring.com> wrote:
>You could edit your GETSYS.PRG that came with clipper and search in the
>source code for INKEY(0) and change it to another value followed by a "CLOSE
>ALL" and "QUIT".  Then compile and link into your program to replace the one
>that comes with CLIPPER.LIB.  The maximum value of INKEY is 386 which is
>6.44 minutes.  The ideal way is to set a timer in your GETSYS.PRG if you
>want to give your user more than 6.44 minutes before timing out.

You are confusing the _return_ value of inkey() (IOW, the keypress
value) & the seconds parameter inkey() takes, which can be huge.  The
NG doesn't state the maximum, but it's probably in the millions(?).

>This will only work if a get is on the screen at the time.  If a menu is on
>the screen and no gets it will not work.  If so, you would have to modify
>your menu code also.

>Alvin Carter
>Birmingham, Alabama

>nojimbeams...@intergate.com wrote in message
><365e2c18.78267...@news.intergate.com>...
>>I'm looking for a way of ending program execution if a user is
>>inactive for a certain period of time.  Any advice???

--
Nick Ramsay
WitzEnd Computer Services
mailto: n...@witzend-uk.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Barnett  
View profile  
 More options Nov 27 1998, 3:00 am
Newsgroups: comp.lang.clipper
From: dev....@iag.net (Phil Barnett)
Date: 1998/11/27
Subject: Re: Timeout?

On Fri, 27 Nov 1998 04:40:29 GMT, nojimbeams...@intergate.com wrote:
>I'm looking for a way of ending program execution if a user is
>inactive for a certain period of time.  Any advice???

If you have Clipper Tools, you can use this near the top of your main
module:

// This sets the nKeyValue to the logout function.

setkey( nKeyValue, { || logoutfunc() } )

// if there is no keyboard activity for nTimeOut seconds, trigger the
// nKeyValue in the keyboard buffer. Normal keyboard activity will
// reset the countdown timer on each keystroke.

keysec( nKeyValue, nTimeOut, -1, .t. )

--
     Phil Barnett  mailto:phi...@iag.net  <-- Remove the first .
        Oasis WWW  http://www.iag.net/~philb/
         FTP Site  ftp://ftp.iag.net/pub/clipper
      Clipper FAQ  http://www.iag.net/~philb/clipper.html

Each of us define ourselves each day by the choices that we make.
                       Dr. Norman Vincent Peale


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »