Rank: Newbie
Groups: Approved
Joined: 5/18/2021(UTC) Posts: 5
|
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
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Approved Joined: 4/23/2020(UTC) Posts: 161 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);
}
}
|
1 user thanked soooulp for this useful post.
|
|
|
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