Opt("WinTitleMatchMode", 4)
$sTrayWindow = WinGetHandle("[CLASS:Shell_TrayWnd]") ;窗口句柄
$sTrayClock = ControlGetHandle($sTrayWindow,"","TrayClockWClass1") ;时钟句柄
$sTrayNotify = ControlGetHandle($sTrayWindow,"","TrayNotifyWnd1") ;任务栏图标句柄
$sStartButton = ControlGetHandle($sTrayWindow,"","Button1") ;开始按钮句柄
;隐藏任务栏
WinSetState($sTrayWindow,"",@SW_HIDE)
;隐藏任务栏时钟
WinSetState($sTrayClock,"",@SW_SHOW)
;隐藏任务栏图标(会马上还原)
WinSetState($sTrayNotify,"",@SW_HIDE)
;隐藏开始按钮
WinSetState($sStartButton,"",@SW_HIDE) |