本帖最后由 5065366 于 2012-4-24 00:33 编辑
代码:$oIE = ObjCreate("InternetExplorer.Application")
后面加什么参数能让它打开的时候最大化?
我要做的东西代码如下:#NoTrayIcon
#region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_Icon=ie.ico
#PRE_Outfile=ClearADIE.exe
#PRE_Compression=4
#PRE_Res_Comment=Www.Xp512.Com
#PRE_Res_Description=阳光之约工作室专用浏览器
#PRE_Res_Fileversion=1.0.0.0
#PRE_Res_LegalCopyright=Www.Xp512.Com
#PRE_Run_Tidy=y
#PRE_Run_Obfuscator=y
#Obfuscator_Parameters=/cv 0
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
;Global $g_eventerror = 0
;$oMyError = ObjEvent("AutoIt.Error","MyErrFunc")
$url = "http://www.baidu.com"
If $CmdLine[0] == 1 Then $url = $CmdLine[1]
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects\{2BA8AE89-A9D8-40AA-91DA-37B1A407DF07}")
_OPEN($url)
;======================打开主页================================
Func _OPEN($url)
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1601", "REG_DWORD", 0)
$oIE = ObjCreate("InternetExplorer.Application")
$oIE.visible = 1
$oIE.Navigate($url)
EndFunc ;==>_OPEN
;Func MyErrFunc()
; $HexNumber=hex($oMyError.number,8)
; $g_eventerror = 1 ; something to check for when this function returns
;Endfunc
|