StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
esv  
#1 Posted : Monday, June 8, 2020 9:48:47 AM(UTC)
esv

Rank: Member

Reputation:

Groups: Approved
Joined: 10/10/2018(UTC)
Posts: 10
Russian Federation

Thanks: 2 times
Currently there is an application whitelist for gestures, i.e. I can create a gesture specific to a single app.
The global gestures are, well, global Smile
I would like to be able to disable them in certain apps/app groups, e.g. have a blacklist
Thank you
Rob  
#2 Posted : Monday, June 8, 2020 9:54:27 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 667
United States

Thanks: 13 times
Was thanked: 149 time(s) in 130 post(s)
That's what the Ignore List is for, to prevent any gestures if the window matches something in the ignored list.
esv  
#3 Posted : Monday, June 8, 2020 4:56:17 PM(UTC)
esv

Rank: Member

Reputation:

Groups: Approved
Joined: 10/10/2018(UTC)
Posts: 10
Russian Federation

Thanks: 2 times
But that list is global, it disables all the gestures, while I'd like to disable only a couple of global gestures in an app, while leaving all the other global gestures working
Rob  
#4 Posted : Monday, June 8, 2020 7:01:02 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 667
United States

Thanks: 13 times
Was thanked: 149 time(s) in 130 post(s)
S+ doesn't know in advance what gesture you're going to draw, so it can't know to not begin capturing a gesture.

Now, if you just don't want anything to happen with a gesture after you draw it, there are a few ways to handle this. One way is to define the app for which you want to ignore the gesture and create one in the app which is the same as the global, but have no steps or script. S+ will always try to match the app first before global, so if there's a match it won't look for a global action.

Another way is within the global action itself, you can check the app and conditionally do nothing. Like testing the title:

if(action.Window.Title.indexOf(' - Google Chrome') > -1) {//Chrome} else {//Not Chrome}

or the EXE:

if(action.Window.Process.MainModule.ModuleName == "chrome.exe" ){//Chrome} else {//Not Chrome}

(not at my computer, so I can't test)
thanks 1 user thanked Rob for this useful post.
esv on 6/9/2020(UTC)
esv  
#5 Posted : Tuesday, June 9, 2020 4:58:48 AM(UTC)
esv

Rank: Member

Reputation:

Groups: Approved
Joined: 10/10/2018(UTC)
Posts: 10
Russian Federation

Thanks: 2 times
Originally Posted by: Rob Go to Quoted Post
S+ doesn't know in advance what gesture you're going to draw, so it can't know to not begin capturing a gesture.

Yeah, makes sense, you just haven't yet built the AI module predicting the future yet Smile

Your other three suggestions all work, thanks!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.