如何让窗口最小化时隐藏任务栏
本帖最后由 zhaohecheng 于 2010-11-4 15:15 编辑#include<ie.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$oIE = _IECreateEmbedded ()
$oIE2 = _IECreateEmbedded ()
GUICreate(" 百度",860,632, -1,-1)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 880, 680)
GUISetState()
_IENavigate ($oIE, "http://www.baidu.com")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd 本帖最后由 xuanfeng1234567 于 2010-11-4 16:40 编辑
#include<ie.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode",1) ;增
$oIE = _IECreateEmbedded ()
$oIE2 = _IECreateEmbedded ()
GUICreate(" 百度",860,632, -1,-1)
GUISetOnEvent($GUI_EVENT_MINIMIZE,"_XIAO") ;增
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 880, 680)
GUISetState()
_IENavigate ($oIE, "http://www.baidu.com")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
Func _XIAO();增
GUISetState(@SW_HIDE)
EndFunc这样可以吗? 本帖最后由 lchl0588 于 2010-11-5 19:58 编辑
LZ的意思是最小化后隐藏 任务栏,还是在任务栏里看不到AU3窗口?
如果是在任务栏里看不到,那代码如下:#include<ie.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$oIE = _IECreateEmbedded ()
$oIE2 = _IECreateEmbedded ()
GUICreate(" 百度",860,632, -1,-1)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 880, 680)
GUISetState()
_IENavigate ($oIE, "http://www.baidu.com")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $GUI_EVENT_MINIMIZE
GUISetState(@SW_HIDE)
#NoTrayIcon
EndSelect
WEnd
{:face (288):}不错学习了{:face (332):} 有意思哈。。 俺来学习的~~~~~~ 俺也是来学习的,关键是能看到源代码的例子很少,都要金钱下载才能看,金钱又没有
页:
[1]