Post Reply 
WAIT, PRINT and timeout
07-19-2015, 12:09 PM
Post: #12
RE: WAIT, PRINT and timeout
[/quote]
And it works, with tap (not with slide, drag). Better than nothing Wink
Salvo
[/quote]

Hi Salvo,

I modified the code to work with mouse drag. It behaves a little erratic with mouse long click. I didn't check to see what happens with mouse stretch, pinch, or rotate yet because I am doing this on the emulator and, alas, my computer doesn't have a touch screen.

road

Code:

local waittap()
BEGIN
 LOCAL a,b,c,d;
 a:=1;
 b:={};
 c:={};
 d:={1};
 WHILE a>0 DO
  a:=WAIT(−1);
  IF TYPE(a)==6 THEN
   b:=wait(-1);
   c:=wait(-1);
   if b(1)==2 then
   else
    while d(1)==1 do
     d:=wait(-1);
    end;
   end;
   break;
  end;
  a:=-a;
 END;
 return concat({a*1},{b*1},{c*1},{d*1});
END;

export runme()
begin
 print();
 print("first page");
 waittap();
 print();
 print("second page");
 waittap();
 print();
 print("third page");
 waittap();
 print();
 print("fourth page");
 waittap();
 print();
 print("fifth page");
 waittap();
 print();
 print("sixth page");
 waittap();
 print();
 print("seventh page");
 waittap();
end;
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: 2 Guest(s)