组保留的标签 余下为需要删除的标签
unset($oldtag[$key]);
}
}
}
if (!empty($oldtag)) {
$tagids = array();
foreach ($oldtag as $tagid => $tagname) {
$tagids[] = $tagid;
}
well_oldtag_delete($tagids, $tid);
}
$r = well_tag_process($tid, $fid, $create_tag, $tagarr);
return $r;
}
// 删除标签和绑定的主题
function well_oldtag_delete($tagids, $tid)
{
$pagesize = count($tagids);
$arrlist = well_tag_find_by_tagids($tagids, 1, $pagesize);
$delete_tagids = array(); // 删除
$tagids = array();
$n = 0;
foreach ($arrlist as $val) {
++$n;
if (1 == $val['count']) {
// 只有一个主题
$delete_tagids[] = $val['tagid'];
} else {
$tagids[] = $val['tagid'];
}
}
!empty($delete_tagids) and well_tag_delete($delete_tagids);
$arlist = well_tag_thread_find_by_tid($tid, 1, $n);
if ($arlist) {
$ids = array();
foreach ($arlist as $val) $ids[] = $val['id'];
well_tag_thread_delete($ids);
}
!empty($tagids) and well_tag_update($tagids, array('count-' => 1));
}
// 标签数据处理 $arr=新提交的数组 $tagarr=保留的旧标签
function well_tag_process($tid, $fid, $new_tags = array(), $tagarr = array())
{
if (empty($tid)) return '';
// 新标签处理入库
if ($new_tags) {
$threadarr = array();
$tagids = array();
$i = 0;
$size = 5;
$n = count($tagarr);
$n = $n > $size ? $size : $size - $n;
foreach ($new_tags as $name) {
++$i;
$name = trim($name);
$name = stripslashes($name);
$name = strip_tags($name);
$name = str_replace(array(' ', '#', "@", "$", "%", "^", '&', '·', '<', '>', ';', '`', '~', '!', '¥', '……', ';', '?', '?', '-', '—', '_', '=', '+', '.', '{', '}', '|', ':', ':', '、', '/', '。', '[', ']', '【', '】', '‘', ' ', ' ', ' ', ' ', ' '), '', $name);
$name = htmlspecialchars($name, ENT_QUOTES);
if ($name && $i <= $n) {
// 查询标签
$read = well_tag_read_name($name);
if ($read) {
// 存在 count+1
$tagids[] = $read['tagid'];
} else {
// 入库
$arr = array('name' => $name, 'count' => 1);
$tagid = well_tag_create($arr);
FALSE === $tagid and message(-1, lang('create_failed'));
$read = array('tagid' => $tagid, 'name' => $name);
}
$tag_thread = array('tagid' => $read['tagid'], 'tid' => $tid);
$threadarr[] = $tag_thread;
$tagarr[$read['tagid']] = $read['name'];
}
}
!empty($threadarr) and tag_thread_big_insert($threadarr);
!empty($tagids) and well_tag_update($tagids, array('count+' => 1));
}
$json = empty($tagarr) ? '' : xn_json_encode($tagarr);
return $json;
}
?> $v = implode(",", $v);
$temp[] = $v;
}
// 去掉重复的字符串,也就是重复的一维数组
$temp = array_unique($temp);
// 再将拆开的数组重新组装
$output = array();
foreach ($temp as $k => $v) {
if ($stkeep) $k = $starr[$k];
if ($ndformat) {
$temparr = explode(",", $v);
foreach ($temparr as $ndkey => $ndval) $output[$k][$ndarr[$ndkey]] = $ndval;
} else $output[$k] = explode(",", $v);
}
return $output;
}
// 合并二维数组 如重复 值以第一个数组值为准
function array2_merge($array1, $array2, $key = '')
{
if (empty($array1) || empty($array2)) return NULL;
$arr = array();
foreach ($array1 as $k => $v) {
isset($v[$key]) ? $arr[$v[$key]] = array_merge($v, $array2[$k]) : $arr[] = array_merge($v, $array2[$k]);
}
return $arr;
}
/*
* 对二维数组排序 两个数组必须有一个相同的键值
* $array1 需要排序数组
* $array2 按照该数组key排序
* */
function array2_sort_key($array1, $array2, $key = '')
{
if (empty($array1) || empty($array2)) return NULL;
$arr = array();
foreach ($array2 as $k => $v) {
if (isset($v[$key]) && $v[$key] == $array1[$v[$key]][$key]) {
$arr[$v[$key]] = $array1[$v[$key]];
} else {
$arr[] = $v;
}
}
return $arr;
}
?>
PS Tray Factory win7 系统托盘 软件用法编程频道|福州电脑网
PS Tray Factory win7 系统托盘 软件用法 编程之家 81 0
更新时间:2026-04-03 20:27:28
PS Tray Factory
软件网址: http://www.pssoftlab/hide_system_tray_icons.phtml
这个软件是作用是可以 通过 Ctrl +ALT +M 快捷键,将正在运行的一个最小化到任务栏的窗口,隐藏到系统托盘,如果想恢复 使用 Ctrl +ALT +R 快捷键
比如 你启动了一个 word 文档,然后 最小化到 任务栏.
可以通过 Ctrl + ALT +M 快捷键 将这个word 文档 在任务栏的 图标,移动到 系统托盘的地方,
系统托盘 — System Tray
options 选项设置
http://www.pssoftlab/hide_system_tray_icons.phtml
Hide tray icons
说明
这是网上的介绍:
PS Tray Factory 是一个系统状态栏图标管理软件,可以将任何状态栏的图标隐藏起来。很多软件都会往状态栏添加图标,这样使得状态栏变得拥挤凌乱,这个小工具可以使状态栏重新成为简单而有效。你可以定义任意一个图标自动显示或隐藏,也可以像 windows xp 那样自动隐藏不常用的图标。不过这是专业的图标管理软件,比 windows 自带的功能可要强多了。如果配合另外一个快速程序运行软件 PS Hot Launch(和这个PS Tray Factory 是同一个公司的软件,而且是免费软件,它也是我汉化的),还可以将桌面也整理得干净有效,不再是堆满了各种各样的文件和快捷方式。 新版本的 PS Tray Factory 还增加了一些其它的功能,如找回丢失的图标,当 windows 的 Explorer.exe 进程崩溃时,会使状态栏的图标全部消失,PS Tray Factory 可以找回这些丢失了的图标。还增加了状态栏图标排序功能、任何程序缩小到状态栏的功能。还有一个重要改变就是以前如果不是从 windows 启动时运行的 PS Tray Factory,那么不能隐藏在此之前的图标,现在已经没有这个问题了,无需重新启动 windows就能立即生效了
事实上,PS TYAR FACTORY不是免费软件,而是20天免费使用,网上流传的2.0汉化版本都是有20天限制的版本,我找了N个破解网站,包括国外的KEY站都没找到有效的破解,病毒倒是染了一身,汗
后来偶尔的机会在网上找到这个完美破解版本,赶紧收藏了
描述一下我认为比较关键的功能:
1。可以随时隐藏任意图标,打上钩就同步隐藏了任务栏的图标
2。可以给每个图标定制隐藏或者显示的热键
3。自身可以隐藏图标,可以设置成随WINDOWS启动,可以设置热键
没有启动画面,很隐蔽的说,呵呵,可以用来隐藏某些软件。。。
trayconizera 用法
windows下任何应用程序实现最小化托盘工具;
x-shell连接虚拟机,然后把虚拟机最小化,有没有此时感觉在任务栏的那个长条很烦人,如果能最小化到系统托盘该多好,如果有本文就提供了一种方法:
把Trayconizer.exe放到C:\windows目录下,然后右击虚拟机的快捷方式,打开属性,在目标位置前面加入"C:\WINDOWS\Trayconizer.exe"
如"C:\WINDOWS\Trayconizer.exe" "c:\program files\…\vmplayer.exe"就可以了,记住中间要加空格。
此方法也可以运用到其他软件
PS Hot Launch VVL
PS Hot Launch VVL is meant to quickly run different applications, open documents, go to the right folders and web pages, send mail to a specified address, etc. The above operations are carried out through the menu that can be called by clicking the program icon in the taskbar system tray, and also by pressing user assigned hot keys (support for the key significantly extends the number of possible combinations). PS Hot Launch VVL is a perfect alternative to the Start menu and the Quick Launch panel.
本文发布于:2025-08-07,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签: 系统托盘 软件 Tray PS factory
发布评论