Rank: Newbie
Groups: Approved
Joined: 4/2/2021(UTC) Posts: 4 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 - Left mouse button is pressed simultaneously OR
- A window is being dragged
?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 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 ClickCode: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-CellsEdit: 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
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
Groups: Approved
Joined: 4/2/2021(UTC) Posts: 4 Thanks: 2 times
|
This absolutely works, thank you!
|
|
|
|
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.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close