Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> captmeoutget() / captmeoutset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapTmeOutGet() / CapTmeOutSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the capture timeout count.

 Syntax:
 iTime = CapTmeOutGet( iLPTNum )
 iTime = CapTmeOutSet( iLPTNum, iNewTimeout )

 Parameters:
 iLPTNum     The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 iNewTimeOut The new timeout count in units of 1/18 of a second.

 Returns:
 A numeric value (signed short int).

 Description:
 CapTmeOutGet() returns the timeout count used for printing jobs on the
 specified LPT device iLPTNum.

 CapTmeOutSet() sets the timeout count to iNewTimeOut for the specified LPT
 device iLPTNum and returns the previous time out setting.
 The timeout count is specified in units of 1/18 second.
 When a new timeout count is set, the change only takes effect once
 CapStart() has been called.

 Returns NOVERRINT if an error occurs.

 Example:
 // To display the timeout count on LPT1 and change the timeout
 // count to 10 seconds:
 iOldTimeCount = CapTmeOutSet( 1, 180 )
 ? "The timeout count for LPT1: was ", iOldTimeCount/18, "seconds"
 iNewTimeCount = CapTmeOutGet( 1 )
 if ( iNewTimeCount = 180 )
    ? "The timeout count for LPT1: is now 10 seconds"
 endif

See Also: CapAutEndGet() / CapAutEndSet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson