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

Notification

Icon
Error

Options
Go to last post Go to first unread
Rob  
#1 Posted : Sunday, April 4, 2021 4:38:36 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 22 times
Was thanked: 284 time(s) in 247 post(s)
This plug-in will enable minimizing a window to the tray. Clicking the tray icon will restore the window.

https://www.strokesplus.net/files/plugins/MinToTrayPlugin_1.2.zip

That is the entire source of the plug-in, so feel free to change it as you like!

See the /bin/Release folder for the MinToTrayPlugin.dll file, which is the plug-in.

Code:
//From an action
MinToTray.SendToTray(action.Window.HWnd);

//From a hotkey, etc. just uses the active window
MinToTray.SendToTray(sp.ForegroundWindow().HWnd);


P.S. You might need to right-click the DLL and mark it as safe/unblock if you used Windows to extract the zip file.

Edited by user Monday, April 5, 2021 4:19:15 AM(UTC)  | Reason: Updated plugin to show all tray windows on exit & set fg window

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.