Post Reply 
CLICK LONG
10-21-2015, 06:27 AM
Post: #7
RE: CLICK LONG
Hello,

I do not think that L1:= Wait(-1); is a good idea.
The reason for it is that Wait will also return on a key press, which is a number in the 1 to 50 range. so you will not be able to detect if it was a mouse event or a key press.
I suggest using a local variable and testing the type
Local Event= Wait(-1);
if type(Event)=6 and size(Event)>=1then
case
if Event(1).....
end;
end;

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CLICK LONG - Tyann - 10-11-2015, 11:50 AM
RE: CLICK LONG - cyrille de brébisson - 10-12-2015, 07:24 AM
RE: CLICK LONG - Tyann - 10-12-2015, 09:30 AM
RE: CLICK LONG - cyrille de brébisson - 10-12-2015, 03:07 PM
RE: CLICK LONG - Divasson - 10-15-2015, 05:40 PM
RE: CLICK LONG - Tyann - 10-20-2015, 09:56 PM
RE: CLICK LONG - cyrille de brébisson - 10-21-2015 06:27 AM
RE: CLICK LONG - Tyann - 10-21-2015, 11:23 AM



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