This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 How to make different gesture with different lengt
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

qaws18726

8 Posts

Posted - 07/05/2017 :  23:49:36  Show Profile
Hi,

There is only a global settings `Min. Gesture Length`. It is need to be a small value to make sure complicate gestures can be recognized correctly.

But for some simple gestures, such as `right` and `left` , would trigger by a small gesture Length, which usually make something wrong.

What I want to do is set a enough gesture Length(such as 100px) for right, left , low-right, low-left and so on. Is there any way to do this?

Rob

USA
2615 Posts

Posted - 07/08/2017 :  22:19:00  Show Profile  Visit Rob's Homepage
I am trying to understand exactly what you are stating.

Do you mean that you experience an accidental gesture due to drawing a short distance?
However, increasing the minimum gesture length would make it difficult to draw complicated gestures?

Inside your simple gesture (straight lines) actions, you could simply not execute the action if the gesture length. For example, you could examine the variables available to all actions like gsx (gesture start X), gex (gesture end X), gsy (gesture start Y), and gey (gesture end Y). Like this:

(for a left straight line)
if gsx - gex > 100 then
--do something here
end

That would ignore the action if the gesture wasn't more than 100 pixels from the start to the end. Of course, various monitor configurations could lead to more complicating logic (gesture points being negative values, etc)

That is one example, you can see some more advanced discussion here: http://www.strokesplus.com/forum/topic/1191/combining-3-scripts-with-one-gesture

Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000