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

Notification

Icon
Error

Options
Go to last post Go to first unread
liuchina  
#1 Posted : Thursday, July 14, 2022 12:21:51 AM(UTC)
liuchina

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 9/26/2018(UTC)
Posts: 73
China
Location: 北京

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Can I control the mouse to run again along the s+ gesture track?
When I edit pictures, eraser is one of the most commonly used tools. I often use eraser to erase a line segment or process the edge of the pattern or replace the color. This is a very time-consuming and patient work. I think this is what s+ is good at.
I encountered two difficulties when trying to solve this work with s+.
1. In most cases, what I need to deal with is some irregular line segments. I want to control the running track of the mouse to repeat the gesture and run it again
2. When I use the right mouse button to draw a gesture to input the running track of the mouse, it will cause s+ to start and run other scripts
This is a problem for me. I really need your help. Thank you!
Rob  
#2 Posted : Monday, July 18, 2022 3:12:45 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)
Would you be able to use the temporary macro functionality?
Code:
// You can set this if you don't want to use Ctrl+Pause/Break 
// to stop recording the macro
// Values here: 
// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
StrokesPlus.Configuration.Settings.CustomMacroStopKey = 0x72; // F3


// This will begin recording keyboard and mouse activity - press Ctrl+Pause/Break 
// or CustomMacroStopKey to finish recording
sp.RecordTemporaryMacro();


// This will replay the temporary macro - can run multiple
// times after recording a macro
sp.PlayTemporaryMacro();

Edited by user Monday, July 18, 2022 3:14:40 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Rob for this useful post.
liuchina on 7/19/2022(UTC)
liuchina  
#3 Posted : Tuesday, July 19, 2022 8:02:30 AM(UTC)
liuchina

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 9/26/2018(UTC)
Posts: 73
China
Location: 北京

Thanks: 18 times
Was thanked: 1 time(s) in 1 post(s)
Thank you Rob,My problem has been solved. I set up an array to get the gesture coordinates at a fixed time, then traverse it to get all the coordinate data of the gesture, and then process it as needed. Thank you very much for your reply.
Users browsing this topic
Guest
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.