Post Reply 
WAIT, PRINT and timeout
07-18-2015, 04:48 PM (This post was last modified: 07-18-2015 05:04 PM by salvomic.)
Post: #7
RE: WAIT, PRINT and timeout
(07-18-2015 04:08 PM)roadrunner Wrote:  Hi Salvo,

I see what you mean. There appears to be no way to set the time out to more than a minute and wait for a key press at the same time.

I did come up with this code that won't skip the second page if you tap the screen, but if you accidently drag your finger on the screen it does skip the second page.

Code:

local waittap()
BEGIN
 LOCAL a;
 a:=1;
 WHILE a>0 DO
  a:=−WAIT(−1);
  IF TYPE(a)==6 THEN
   wait(-1);
   wait(-1);
   break;
  END;
 END;
END;

export runme()
begin
 print();
 print("first page");
 waittap();
 print();
 print("second page");
 waittap();
 print();
 print("third page");
 waittap();
end;

I'll keep thinking and see what I can come up with.

Road

hi Road,
this is interesting.
And it works, with tap (not with slide, drag). Better than nothing Wink
Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website 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)