怎么新开IE打开网页?
例如:两个小按钮,点第一个打开baidu,点第二个新开IE打开google,这时有两个IE窗口,一个baidu,一个google。
现在不行啊~~
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 32, 88, 89, 33, 0)
$Button2 = GUICtrlCreateButton("Button2", 152, 88, 89, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("www.baidu.com")
Case $Button2
ShellExecute("www.google.com")
EndSwitch
WEnd 代码没问题,可以实现啊(IE7) Case $Button1
Run(@ProgramFilesDir & "\Internet Explorer\iexplore.exe ww.baidu.com")
Case $Button2
Run(@ProgramFilesDir & "\Internet Explorer\iexplore.exe ww.google.com")
晕死,自动加url的么...
[ 本帖最后由 范统.贾 于 2008-12-14 16:00 编辑 ] #include<IE.au3>
...
Case $Button1
_IECreate("www,baidu.com",0,1,1,0)
Case $Button2
_IECreate("www.google.com",0,1,1,0) 3喽ok啦 4楼~~~???????????
页:
[1]