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

Notification

Icon
Error

Options
Go to last post Go to first unread
xqc  
#1 Posted : Tuesday, October 8, 2019 7:51:36 PM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times

I used a mouse gesture named "wgestures" before. As it has not been updated for a long time, I switch to StrokesPlus. I find it is more powerful but I notice it only supports up to two stroke buttons.

It is inconvenient to me because I use four stroke buttons: right button, middle button, X1 and X2.

It will be a great help if More stroke buttons can be added.

If possible, it will be better if the keyboard key can also be regarded as stroke buttons. For example, pressing the "win" key and move the mouse can also be regarded as a gesture.
Rob  
#2 Posted : Tuesday, October 8, 2019 8:42:37 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
It becomes increasingly complicated to manage state in an efficient and seamless manner, just adding a second button when I created StrokesPlus.net was a big undertaking. Also, it's very rare that people even use two buttons, much less four!

However, with the use of modifiers, you should be able to get close. For example, if you make an action which uses the right button and the gesture L; then make another action with the right button, gesture L, and modifier X1.

Hold the right button and while you're drawing the L, you just tap the X1 button once and it executes the second action. Hold right button and draw L without tapping X1 and it is a different action.

I know it's not exactly the same, but I wanted to make sure you are aware of that functionality.
thanks 1 user thanked Rob for this useful post.
xqc on 10/8/2019(UTC)
xqc  
#3 Posted : Tuesday, October 8, 2019 9:04:36 PM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times
Thank you for your reply Bob.

The method you propsed is feasible. but not close enough to my thoght.

Now I use right button and X1 button as stroke buttons in StrokesPlus, as I use them more frequently. And I use middle button and X2 button as stroke buttons in "wgestures".

So is there a way that I can use two StrokesPlus at the same time? One for right button and X1 button and the other for middle button and X2 button. I try to use the Installer Version and Portable Version of StrokesPlus at the same time but it failed.
Rob  
#4 Posted : Tuesday, October 8, 2019 9:25:49 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
I don't generally recommend it (it's not a supported configuration), just due to having multiple hooks installed and the chances for them to interfere with each other....however, all that said, yes you can.

You'll need to run the second instance with two parameters, one to tell S+ to allow multiple instances, the other to point to a different settings file since you will need to have a different configuration.

For example:

Code:
"C:\Program Files\StrokesPlus.net\StrokesPlus.net.exe" allowmultipleinstances settingsfile="C:\Temp\StrokesPlus.net.bin"

Obviously change the path to wherever the second config file is located. Note that the config file must already be there before you start (you can use the file from the portable ZIP as a starting point), or it will fall back to the default rules and load your current config.

You don't need to run the portable and installer versions, you can make a shortcut with the parameters to run the signed installer version for the second instance.

Edited by user Tuesday, October 8, 2019 9:40:02 PM(UTC)  | Reason: Not specified

Rob  
#5 Posted : Tuesday, October 8, 2019 9:28:10 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
Oh and please report any issues. While it's technically not a supported configuration, I would like to know about them so I can possibly try to resolve them when I have time. They will be low priority, of course.
Rob  
#6 Posted : Tuesday, October 8, 2019 9:32:01 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
Also note that there are some things which will not flow correctly, like the Update Check and installer. The installer looks for and closes the app running which obtained the mutex "StrokesPlus.net", but additional instances will not have that mutex, so the installer will fail because the app is still running and cannot overwrite the files. There may be some other oddities, I am not sure as I haven't really tested it much.
xqc  
#7 Posted : Wednesday, October 9, 2019 4:42:31 AM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times
Thanks a lot for your patient guidance. I succeed in running the two StrokesPlus and setting them correctly. I also make them autostart when windows start up. It works well so far.

If any issues occur I will let you know as soon as possible.
xqc  
#8 Posted : Sunday, November 24, 2019 1:42:31 AM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times
The method you proposed works well. But there is another problem. I'd like to use the portable version of Strokes+, as I use it on different computers. Because the locations of Strokes+ on different computers are different, it is inconvenient to set the shortcut everytime.

So is there anyway that the code you give: "C:\Program Files\StrokesPlus.net\StrokesPlus.net.exe" allowmultipleinstances settingsfile="C:\Temp\StrokesPlus.net.bin" can be expressed in relative path?

The shortcut of "StrokesPlus.net.exe" itself can be expressed in relative path :"%SystemRoot%\explorer.exe " "StrokesPlus.net.exe", but I don't know how to express "C:\Program Files\StrokesPlus.net\StrokesPlus.net.exe" allowmultipleinstances settingsfile="C:\Temp\StrokesPlus.net.bin" in in relative path.

Rob  
#9 Posted : Sunday, November 24, 2019 8:05:06 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
Do you have the portable version on a USB drive or something like that?
Or do you have the portable version in different folders on different computers?

Can you give me an example of the folder locations/differences for two computers, so I can better understand the configuration and be able to assist?
xqc  
#10 Posted : Sunday, November 24, 2019 5:55:55 PM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times
OK. Not on a USB drive. But in different folders on different computers. But not much different.
I have three computers.

For some reason, on computer A, the location of StrokesPlus.net.exe is "C:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\StrokesPlus.net.exe".
So the shortcut of the second instance is "C:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\StrokesPlus.net.exe" allowmultipleinstances settingsfile="C:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\strokesplus.net - second.bin",
as the the config file of the second instance is C:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\strokesplus.net - second.bin.

And on computer B, the location of StrokesPlus.net.exe is "D:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\StrokesPlus.net.exe".
So the shortcut of the second instance is "D:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\StrokesPlus.net.exe" allowmultipleinstances settingsfile="D:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\strokesplus.net - second.bin".

And on computer C, the location "C:\Portable Application\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\StrokesPlus.net.exe".
So the shortcut of the second instance is "C:\Portable Application\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\StrokesPlus.net.exe" allowmultipleinstances settingsfile="C:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net_Portable_0.3.5.9\strokesplus.net - second.bin".

You see, as S+ is in different folders on different computers, the shortcut of the second instance is different. I wonder if the code you give before can be written in relative path, then the shortcut of the second instance is the same even S+ in different folders. So the portable version of the S+ is truly "portable", as I can put it on a USB drive and use it on different computers. Is that possible?
Rob  
#11 Posted : Tuesday, November 26, 2019 6:49:49 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
I guess my first question would be: Why put the StrokesPlus.net program in a folder with the version name?

"StrokesPlus.net_Portable_0.3.5.9"

Why not just:

C:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net.exe
- with: settingsfile="C:\Portable Program\StrokesPlus.net_Portable\strokesplus.net - second.bin"

D:\Portable Program\StrokesPlus.net_Portable\StrokesPlus.net.exe
- with: "D:\Portable Program\StrokesPlus.net_Portable\strokesplus.net - second.bin"

C:\Portable Application\StrokesPlus.net_Portable\StrokesPlus.net.exe
- with: settingsfile="C:\Portable Program\StrokesPlus.net_Portable\strokesplus.net - second.bin"

Then updating to new versions of S+ wouldn't require changing any shortcuts. Of course, that doesn't address having unknown paths, like on a USB drive.

I will add some extra checks in the next release, where it will first try the exact path specified.
If the file doesn't exist at the location specified, it will then see if the file exists within the application's folder.

Meaning, it will assume that you've only supplied a file name and it will look for that file in the same folder where StrokesPlus.net is running from, so you wouldn't need a full path and the extra setting (.bin) file could just be in the same folder as where StrokesPlus.net is running.
xqc  
#12 Posted : Tuesday, November 26, 2019 5:49:58 PM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times
Ok, I'm looking forward your next version!

Oh a little suggestion about running two S+. The trays of the two S+ are exactly the same and hard to distinguish. So I wonder if the tray icon can be changed or the hint of the tray can have the information of the stroke buttons which S+ is using.
[img=https://ibb.co/XZxFjhM]hint of the tray of S+[/img]

I prefer the latter one.

Edited by user Tuesday, November 26, 2019 5:53:20 PM(UTC)  | Reason: Not specified

Rob  
#13 Posted : Tuesday, November 26, 2019 7:53:45 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 653
United States

Thanks: 11 times
Was thanked: 144 time(s) in 126 post(s)
I already released the update earlier today, version 0.3.6.0.

But I also just released 0.3.6.1 which has a different set of tray icons which are used when the allowmultipleinstances argument is specified.

It kind of looks like a 2 (for second instance), but it's really just a backward S since I'm not a designer =)

It will always use that icon if allowmultipleinstances is used, so make sure you start your first instance of StrokesPlus.net without any parameters so it uses the normal icon.

Edit: I know you said you prefer the latter, but I felt the visual was more effective than waiting for a tip to show...plus it was quicker :)

Edited by user Tuesday, November 26, 2019 8:05:34 PM(UTC)  | Reason: Not specified

xqc  
#14 Posted : Tuesday, November 26, 2019 11:09:35 PM(UTC)
xqc

Rank: Newbie

Reputation:

Groups: Approved
Joined: 10/8/2019(UTC)
Posts: 9
China

Thanks: 1 times
Ok, I tried, and everything works well.

Now S+ is a perfect software for me!!
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.