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

Notification

Icon
Error

Options
Go to last post Go to first unread
Guillaume  
#1 Posted : Tuesday, November 16, 2021 6:58:06 PM(UTC)
Guillaume

Rank: Newbie

Reputation:

Groups: Approved
Joined: 11/16/2021(UTC)
Posts: 2
Switzerland
Location: Nyon

Hi,

I need help trying to do this: when using a program on the ignore List I would like to be able to hit a specific key that will make S+ active again as long as that key is depressed. Is that possible ? Thanks :)

Cheers,

Guillaume
Rob  
#2 Posted : Tuesday, November 23, 2021 3:48:32 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,066
United States
Location: Tampa, FL

Thanks: 22 times
Was thanked: 315 time(s) in 276 post(s)
Unfortunately, there's not an easy way to accomplish this for a couple reasons.

First is that if you were pressing a key, the application you're using would see that key press and it may cause unwanted behavior.
Second, if you were holding a key like Control/Alt down, S+ would see the button being held which would then consider it as a modifier button being pressed, so you'd need to make a custom set of actions for the app that all had that key as a modifier.

This can be accomplished using a synchronous keyboard hook event, but if you're not skilled at scripting/programming, it may be a bit complicated.

Alternatively, you could create a hotkey that toggles the app's ignored entry active checkbox programmatically.

For example, I made a new hotkey, used F3 checked Active, Unregistered, Consume boxes - Active and Unregistered are important, Consume is optional if you don't want the key to be seen by any application (would affect that key everywhere).

Then I used this script:
Code:
// Change Parsec to the name of the ignored app as listed in S+.
var ignoredApp = StrokesPlus.Configuration.Settings.IgnoredApplications.Where(i => i.Description == "Parsec").Single(); 
ignoredApp.Active = !ignoredApp.Active;  //Toggle the Active checkbox

So I press (and release) F3 and Parsec is no longer and ignored app, press it again and it is once again ignored.
Guillaume  
#3 Posted : Friday, November 26, 2021 7:48:04 PM(UTC)
Guillaume

Rank: Newbie

Reputation:

Groups: Approved
Joined: 11/16/2021(UTC)
Posts: 2
Switzerland
Location: Nyon

Sorry for the late reply. Thanks Rob it works great ! Would you know how to do this for all ignored apps using that same key stroke ? I just want to have that hotkey that would toggle whatever ignored app I'm currently using. 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.