找回密码
 加入
搜索
查看: 3592|回复: 9

[交流] 怎么不在任务栏上显示

  [复制链接]
发表于 2012-5-14 15:02:51 | 显示全部楼层 |阅读模式
一个gui窗口 想一直显示在桌面上,但不想在任务栏上显示,求高手解答
发表于 2012-5-14 16:11:30 | 显示全部楼层
#NoTrayIcon
发表于 2012-5-15 01:58:30 | 显示全部楼层
$FloatWin = GUICreate("Float", 240, 120, -1, -1, $WS_POPUP, $WS_EX_LAYERED, WinGetHandle("[CLASS:Progman]"))
 楼主| 发表于 2012-5-16 09:40:13 | 显示全部楼层
不显示图标我知道,我指的是在任务栏上不显示长条。不过还是谢谢你
 楼主| 发表于 2012-5-16 09:44:50 | 显示全部楼层
看来我没表达清楚,运行一个gui窗口后 在下面的任务栏上还有个长条,我想把这个长条隐藏了,怎么弄
发表于 2012-5-16 11:28:36 | 显示全部楼层
GUICreate("不显示状态栏", 240, 120, -1, -1, $WS_POPUP, 0, WinGetHandle("[CLASS:Progman]"))
发表于 2012-5-16 13:46:54 | 显示全部楼层
回复 1# chenchaokang
论坛有代码,我转过来(开始没有看清楚,抱歉)
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>

_example1()
_example2()

Func _example1()
        GUICreate("我不会在任务栏显示", 400, 300, -1, -1, -1, -1, WinGetHandle(AutoItWinGetTitle()))
        GUISetState()
         
        Do
        Until GUIGetMsg() = -3
EndFunc

Func _example2()
        GUICreate("无任务栏图标",400,300,-1,-1,-1,$WS_EX_TOOLWINDOW)
        GUISetState()
        While 1
                $nMsg = GUIGetMsg()
                Switch $nMsg
                        Case $GUI_EVENT_CLOSE
                                        Exit
                EndSwitch
        WEnd
EndFunc
 楼主| 发表于 2012-5-18 10:07:36 | 显示全部楼层
非常感谢!!!!!
发表于 2012-6-6 16:25:44 | 显示全部楼层
谢谢高手讲解!
发表于 2012-6-16 18:47:09 | 显示全部楼层
谢谢高手讲解!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-17 01:30 , Processed in 0.075967 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表