Difference: 0LASubrUtilTimeoutSet (1 vs. 2)

Revision 22014-01-28 - GaryRogers

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.UTIL TIMEOUT SET

Line: 19 to 19
  <seconds> is the number of seconds before a timeout occurs (Required). This must be an integer greater than zero. Passing zero or a negative number will not start a timer.
Changed:
<
<
The timer will count down unless the user presses a key or mouse clicks. When the user press a key or clicks the mouse, the timer starts again. If the timer reaches zero, --- OPTION is set to TIMEOUT and the process resumes executing as if the user had pressed an option key. You can check for --- OPTION = TIMEOUT in the option intercept or global option intercept event points or use .UTIL TIMEOUT EXIT.
>
>
The timer will count down unless the user presses a key or mouse clicks. When the user presses a key or clicks the mouse, the timer starts again. If the timer reaches zero, --- OPTION is set to TIMEOUT and the process resumes executing as if the user had pressed an option key. You can check for --- OPTION = TIMEOUT in the option intercept or global option intercept event points or use .UTIL TIMEOUT EXIT.
 
This routine is normally called in the Start of Process event point, but you can use it anywhere to reset the timeout value. You can have multiple timers running at different process levels but only one timer is allowed at each processing level. For example, you could set a 30 minute timer at the menu, and a 5 minute timer in the inputs.

Revision 12012-01-31 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.UTIL TIMEOUT SET

This subroutine sets the keyboard timeout value.


Usage:

      PASS         <seconds>                  FIELD            SHARE? N
      GOSUB    --- .UTIL TIMEOUT SET
      *        Check for errors
      IF       --- .UTIL TIMEOUT SET          NE

  

Description:

This subroutine sets the keyboard timeout value. The number of seconds must be PASSed or the subroutine will CANCEL.

<seconds> is the number of seconds before a timeout occurs (Required). This must be an integer greater than zero. Passing zero or a negative number will not start a timer.

The timer will count down unless the user presses a key or mouse clicks. When the user press a key or clicks the mouse, the timer starts again. If the timer reaches zero, --- OPTION is set to TIMEOUT and the process resumes executing as if the user had pressed an option key. You can check for --- OPTION = TIMEOUT in the option intercept or global option intercept event points or use .UTIL TIMEOUT EXIT.

This routine is normally called in the Start of Process event point, but you can use it anywhere to reset the timeout value. You can have multiple timers running at different process levels but only one timer is allowed at each processing level. For example, you could set a 30 minute timer at the menu, and a 5 minute timer in the inputs.

When the lower level timeout is activated, control is returned to the higher level timer, which is then reset just as if a key had been pressed.

Note: This timer could be used for many different things other than the one presented here. When the timer reaches zero, a TIMEOUT event is generated, but the timer is reset and continues on. It will continue to generate TIMEOUT events until the the timer is explicitly set to zero or the level is exited.

Also see .UTIL TIMEOUT EXIT.

Comments:

Read what other users have said about this page or add your own comments.


<--/commentPlugin-->

-- JeanNeron - 2012-01-31

META TOPICMOVED by="JeanNeron" date="1327988141" from="Main.0LASubrUtilSetKeybTimeout" to="Main.0LASubrUtilTimeoutSet"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback