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

Notification

Icon
Error

Options
Go to last post Go to first unread
该昵称已被注册  
#1 Posted : Saturday, January 15, 2022 8:27:35 AM(UTC)
该昵称已被注册

Rank: Newbie

Reputation:

Groups: Approved
Joined: 5/18/2021(UTC)
Posts: 5
China

When I press the hotkey, the browser is displayed, and when I press the hotkey again, the browser is hidden.
How to realize it? Help, boss, thank you
soooulp  
#2 Posted : Sunday, January 16, 2022 5:56:54 PM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 161
China

Thanks: 46 times
Was thanked: 23 time(s) in 17 post(s)
参照Rob这个回复A-script-to-bring-up-an-app

下载安装这个插件到Plug-In Minimize-to-Tray

唯一的问题是托盘图标只能在S+net右侧,重新激活后,图标会保留

要是需要添加其他程序窗口,直接参照wndx继续添加名称(可以是容易识别的部分)

Code:
//var wndx = sp.WindowsFromTitlePartial("- Google Chrome");
var wndx = sp.WindowsFromTitlePartial("- Microsoft​ Edge");

if(wndx.Count() === 0) {
} else {
    if(!sp.GetStoredBool("WindowInTray")) {
        MinToTray.SendToTray(wndx.First().HWnd);
        sp.StoreBool('WindowInTray', true);
    } else {
        wndx.First().Activate();
        sp.StoreBool('WindowInTray', false);
    }
}





thanks 1 user thanked soooulp for this useful post.
zld126126 on 2/10/2022(UTC)
Users browsing this topic
Guest
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.