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

Notification

Icon
Error

Options
Go to last post Go to first unread
Theinvoker  
#1 Posted : Thursday, November 24, 2022 1:51:38 PM(UTC)
Theinvoker

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/24/2020(UTC)
Posts: 37
Italy
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
Rob  
#2 Posted : Sunday, November 27, 2022 5:32:18 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 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 Changed


Code:
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.
Theinvoker  
#3 Posted : Sunday, November 27, 2022 6:50:57 PM(UTC)
Theinvoker

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/24/2020(UTC)
Posts: 37
Italy
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
Rob  
#4 Posted : Sunday, November 27, 2022 8:31:42 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
What is the error message?

Theinvoker  
#5 Posted : Sunday, November 27, 2022 10:23:26 PM(UTC)
Theinvoker

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/24/2020(UTC)
Posts: 37
Italy
Location: Milano

Thanks: 2 times
Originally Posted by: Rob Go to Quoted Post
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


UserPostedImage


UserPostedImage



Rob  
#6 Posted : Monday, November 28, 2022 4:45:50 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 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.

Theinvoker  
#7 Posted : Monday, November 28, 2022 11:25:53 PM(UTC)
Theinvoker

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/24/2020(UTC)
Posts: 37
Italy
Location: Milano

Thanks: 2 times
edit

Edited by user Monday, November 28, 2022 11:27:14 PM(UTC)  | Reason: Not specified

Theinvoker  
#8 Posted : Monday, November 28, 2022 11:32:14 PM(UTC)
Theinvoker

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/24/2020(UTC)
Posts: 37
Italy
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

Rob  
#9 Posted : Tuesday, November 29, 2022 4:53:08 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 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.
Theinvoker  
#10 Posted : Sunday, May 28, 2023 9:39:39 PM(UTC)
Theinvoker

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/24/2020(UTC)
Posts: 37
Italy
Location: Milano

Thanks: 2 times
Originally Posted by: Rob Go to Quoted Post

I will also add an option in the near future to just hide the icon instead of jumping through these hoops.



news?
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.