Post Reply 
WAIT, PRINT and timeout
07-18-2015, 11:35 AM (This post was last modified: 07-18-2015 11:40 AM by Thomas_Sch.)
Post: #2
RE: WAIT, PRINT and timeout
(07-18-2015 11:22 AM)salvomic Wrote:  hi,
to display more pages with Terminal I put inside a printing series this:
Code:

// other print("something "); series
WAIT();
PRINT();
// again print("something else "); series
that command waits, then clears Terminal and prints another page.
But if the user does nothing, after a few seconds it loads the next page and doesn't let the time to read the previous one...
I need a hint to wait without timeout.
Any help?

thanks in advance!

Salvo
Hi Salvo,
please try to use the parameter -1 for wait,
WAIT(-1);

Help says:
"If n = -1:
Execution paused until a key is pressed or there is a mouse event. "

EDIT:
sorry, this seems also be limited to 1 minute (".. After a 1 minute timeout, returns -1")
You could try to catch the return value of wait89, and stay in a loop,
until the value is not equal to -1.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WAIT, PRINT and timeout - salvomic - 07-18-2015, 11:22 AM
RE: WAIT, PRINT and timeout - Thomas_Sch - 07-18-2015 11:35 AM
RE: WAIT, PRINT and timeout - roadrunner - 07-18-2015, 12:32 PM
RE: WAIT, PRINT and timeout - roadrunner - 07-18-2015, 12:33 PM
RE: WAIT, PRINT and timeout - salvomic - 07-18-2015, 12:44 PM
RE: WAIT, PRINT and timeout - roadrunner - 07-18-2015, 04:08 PM
RE: WAIT, PRINT and timeout - salvomic - 07-18-2015, 04:48 PM
RE: WAIT, PRINT and timeout - roadrunner - 07-19-2015, 12:09 PM
RE: WAIT, PRINT and timeout - salvomic - 07-19-2015, 03:35 PM
RE: WAIT, PRINT and timeout - StephenG1CMZ - 07-18-2015, 07:14 PM
RE: WAIT, PRINT and timeout - salvomic - 07-18-2015, 07:32 PM
RE: WAIT, PRINT and timeout - StephenG1CMZ - 07-18-2015, 09:10 PM
RE: WAIT, PRINT and timeout - roadrunner - 07-18-2015, 08:09 PM



User(s) browsing this thread: 1 Guest(s)