Rank: Advanced Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 37  Location: Milano Thanks: 2 times
|
First... it would be very nice if there is a setting to hide the tray icon. This is not a software we need to recall very often. Once setted, it does what we want
Second... As it is at the moment, i'm using a gesture to hide the tray icon but this icon is restoring every time i change monitor configuration (1 monitor ---> 2 monitors or switching between 2 monitors with extended or cloned view)
i tried to chain the commands i use to set monitors with the command to hide icon but it doesn't work
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,332  Location: Tampa, FL Thanks: 28 times Was thanked: 413 time(s) in 353 post(s)
|
The simplest way to do this is to add this line to these tabs: Global Actions > Load/Unload > Load script Global Actions > Hardware Events > Devices ChangedCode:sp.CreateTimer("HideTray", 1000, -1, "StrokesPlus.Program.TrayIcon.Visible = false;");
So the icon will be hidden when S+ loads/reloads or when hardware (e.g. monitors) have changed. It waits 1000 milliseconds before hiding, to make sure everything has settled. The reason I didn't add this as a setting is that in the last version, people would hide the icon, then months later forget what they did or how to show the icon again. This way, someone has to very explicitly put things in place to hide the icon. Also, S+ has a lot of capabilities to capture keyboard input, etc. So I didn't want to make it easy to install and hide the icon - but it's not really that hard to overcome...just makes it a little more complicated for the average person.
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 37  Location: Milano Thanks: 2 times
|
i dont' understand your explanation. this is not for average users. this is for who knows what to write i use graphic interface for all my gestures
and about forgetting...this is a problem only if you don't allow to open or reopen wht windows by clicking on the exe Every software i have, even if already open, just brings the window in front if i click on the exe (or the shortcut) again, but strokesplus gives the error message "is already running"
the script you gave me doesn't work or you forgot to say something
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,332  Location: Tampa, FL Thanks: 28 times Was thanked: 413 time(s) in 353 post(s)
|
What is the error message?
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 37  Location: Milano Thanks: 2 times
|
Originally Posted by: Rob  What is the error message?
strokesplus.net is already running or obtaining the mutex "Strokesplus.net" failed. Exiting. But this is not the main problem. i want to unterstand how to stop the icon to show every time i change monitor configuration  
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,332  Location: Tampa, FL Thanks: 28 times Was thanked: 413 time(s) in 353 post(s)
|
Sorry, I have been very busy and didn't fully read - I thought you were getting an error message with the script I added.
It seems to be working fine for me. If you open the Console and just run that line in the Script tab does it hide the icon?
Does the 1000 ms delay need to be higher when S+ is loading on your PC?
I will also add an option in the near future to just hide the icon instead of jumping through these hoops.
--
S+ supports multiple instances, but only by a command line argument, so you're right that it should just open the Settings window if it's already running. That's just some reallyold code copied over from the original. Will add that as well in the next release.
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 37  Location: Milano Thanks: 2 times
|
edit Edited by user Monday, November 28, 2022 11:27:14 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 37  Location: Milano Thanks: 2 times
|
so it was the internal console, ok... if the icon is visible, it hides the icon if the icon is hidden, nothing happens i don't know if it's the standard behaviour but when i change monitor configurationthe icon disappears and reappears after less than a second. Edited by user Monday, November 28, 2022 11:35:30 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,332  Location: Tampa, FL Thanks: 28 times Was thanked: 413 time(s) in 353 post(s)
|
Yes, there's are several things that happens when the screen configuration changes. S+ has to resize its drawing surface and some other things.
Part of that process is to set the S+ icon to disabled while the screens are reconfiguring, then when done it sets the icon back to its current state.
The Devices Changed script I provided is what's handling that situation, by hiding the icon again.
I'll make it an option so you won't have to worry about it in the future.
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 3/24/2020(UTC) Posts: 37  Location: Milano Thanks: 2 times
|
Originally Posted by: Rob  I will also add an option in the near future to just hide the icon instead of jumping through these hoops.
news?
|
|
|
|
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