|
楼主 |
发表于 2013-8-23 09:04:56
|
显示全部楼层
本帖最后由 scorpio1102 于 2013-8-23 09:09 编辑
代码不搞好点没人帮我吗,我把代码补其了.我想刷新第0个选项卡上的网页,怎么弄.
#include <IE.au3>
#include <GUIConstantsEx.au3>
guicreate("form",800,600,10,10)
$Button=guictrlcreatebutton("refresh",20,500,60,20)
GUISetState()
local $oe
GUICtrlCreateTab(10,10,750,400)
for $i=0 to 2
$tabitem_value=guictrlcreatetabitem($i)
$oIE = _IECreateEmbedded ( )
$GUIActiveX = GUICtrlCreateObj ($oIE, 15, 30,750, 380)
$oIE.navigate("http://www.autoitx.com/index.php")
GUICtrlCreateTabItem("")
next
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
;GUISetState(@SW_ENABLE,$form)
;GUIDelete($form)
ExitLoop
case $button
_IEAction($oie,"refresh")
EndSwitch
WEnd |
|