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

Notification

Icon
Error

Options
Go to last post Go to first unread
addow  
#1 Posted : Friday, July 3, 2020 2:13:21 PM(UTC)
addow

Rank: Newbie

Reputation:

Groups: Approved
Joined: 6/30/2020(UTC)
Posts: 1
Slovakia

Hi,

try to look on this forum but did not find any related topic.

Is there any option or script to define also "minimize the window to system tray"?

This option "feature" is in tool JustGesture which is not developed anymore.

Find on GitHub info about this :

https://github.com/mdzur...fAction/WindowOptions.cs

here is this function which works in JustGesture:
***************************************
case WND_MIN_TOTRAY:
StringBuilder title = new StringBuilder(256);
Win32.GetWindowText(activeWnd, title, 256);
Emptydel del = delegate()
{
Win32.GetWindowInfo(activeWnd, ref info);
if (m_wndTray.ContainsKey(activeWnd))
m_wndTray[activeWnd] = info;
else
{
m_wndTray.Add(activeWnd, info);
NotifyIcon tray = new NotifyIcon();
//tray = new NotifyIcon();
tray.Visible = true;
tray.Tag = activeWnd;
tray.Icon = GetWindowIcon(activeWnd);
tray.Text = title.Length >= 64 ? title.ToString().Substring(0, 60) + "..." : title.ToString();
tray.Click += new EventHandler(tray_Click);
Form_engine.TrayIcons.Add(tray);
}
Win32.ShowWindow(activeWnd, 0);//hide
};
Form_engine.Instance.Invoke(del);
//if (string.IsNullOrEmpty(title.ToString()))
// return;
break;
************************

Thanks in advance,
Adam
Faruk  
#2 Posted : Thursday, July 16, 2020 12:31:40 PM(UTC)
Faruk

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/16/2020(UTC)
Posts: 1
Turkey
Location: ─░zmir

Thanks: 1 times
It would be usefull to have such script
Kim Purcel  
#3 Posted : Sunday, April 4, 2021 12:50:38 AM(UTC)
Kim Purcel

Rank: Newbie

Reputation:

Groups: Approved
Joined: 3/24/2021(UTC)
Posts: 1
United States

Thanks: 2 times
I will find this very useful as well if it's implemented.
Rob  
#4 Posted : Sunday, April 4, 2021 4:41:45 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 21 times
Was thanked: 265 time(s) in 231 post(s)
As a gentle reminder, anyone can create their own plugin! :)

I just took various source code pieces from the linked Just Gestures repo and built a plugin.

https://forum.strokesplus.net/posts/m12100-Minimize-to-Tray

Note that you should also update to S+ 0.4.2.2 as I found a plugin related issue.

thanks 1 user thanked Rob for this useful post.
Kim Purcel on 4/4/2021(UTC)
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.