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

Notification

Icon
Error

Options
Go to last post Go to first unread
Gnopps  
#1 Posted : Wednesday, April 7, 2021 6:58:54 AM(UTC)
Gnopps

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/2/2021(UTC)
Posts: 4
Finland

Thanks: 2 times
There are few modifiers that can be set as ignore keys (such as Ctrl and Alt). However I'd like to set the left mouse button as my ignore key. The reason being that when dragging a window I use the right mouse button to activate Powertoys Fancyzones to snap the window and this conflicts with Strokesplus.

Is it possible to set Strokesplus to ignore when either
  1. Left mouse button is pressed simultaneously OR
  2. A window is being dragged
?
Rob  
#2 Posted : Wednesday, April 7, 2021 2:40:49 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
You can leverage this undocumented/experimental property I was (fortunately) working on!

It basically enables manual capture [which is invoked via sp.StartManualCapture(bool useSecondaryStrokeButton = false) and sp.StopManualCapture()] to instruct S+ to not perform mouse/gesture capture even when a stroke button is pressed.

So when you press the left button down, it disables stroke button capture, and when you release the left button, S+ is back to normal operation.

Note: This will require you to press the left button first, even if it's just by a couple milliseconds.

Global Actions > Mouse Events > Left Click
Code:
if(click.Down) {
    sp.ManualCaptureOnly = true;
} else {
    sp.ManualCaptureOnly = false;
}

Also FYI, there is a post to kind of simulate the Fancy Zones below; not that I'm throwing any shade at PowerToys as I have it installed myself!

https://forum.strokesplus.net/posts/t7150-Divide-Screen-into-Grid-and-Drag-Window-within-Cells

Edit: Note that this would still allow you to use Left as a modifier, but only as an After modifier, meaning you press the stroke button first, then press Left to signal the modifier.

Edited by user Wednesday, April 7, 2021 2:48:11 PM(UTC)  | Reason: Added note about Left as modifier

thanks 1 user thanked Rob for this useful post.
Gnopps on 4/7/2021(UTC)
Gnopps  
#3 Posted : Wednesday, April 7, 2021 2:52:41 PM(UTC)
Gnopps

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/2/2021(UTC)
Posts: 4
Finland

Thanks: 2 times
This absolutely works, thank you!
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.