StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
How to obtain the coordinate data of gesture trajectory?
Rank: Advanced Member
Groups: Approved
Joined: 9/26/2018(UTC) Posts: 69  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!
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,308  Location: Tampa, FL Thanks: 28 times Was thanked: 410 time(s) in 351 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
|
 1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 9/26/2018(UTC) Posts: 69  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.
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
How to obtain the coordinate data of gesture trajectory?
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