如何用 $oIE = ObjCreate创建百度浏览器?
本帖最后由 hlzxcjx 于 2013-4-25 20:15 编辑如下是官网的创建火狐浏览器的代码:#include <GUIConstants.au3>
$oIE = ObjCreate("Mozilla.Browser.1")
; Create a simple GUI for our output
GUICreate ( "Embedded Web control Test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj ( $oIE, 10, 40 , 600 , 360 )
$GUI_Button_Back = GuiCtrlCreateButton ("Back", 10, 420, 100,30)
$GUI_Button_Forward = GuiCtrlCreateButton ("Forward", 120, 420, 100,30)
$GUI_Button_Home = GuiCtrlCreateButton ("Home", 230, 420, 100,30)
$GUI_Button_Stop = GuiCtrlCreateButton ("Stop", 330, 420, 100,30)
GUISetState () ;Show GUI
$oIE.navigate("http://www.autoitscript.com")
; Waiting for user to close the window
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
$oIE = 0
ExitLoop
Case $msg = $GUI_Button_Home
$oIE.navigate("http://www.autoitscript.com")
Case $msg = $GUI_Button_Back
$oIE.GoBack
Case $msg = $GUI_Button_Forward
$oIE.GoForward
Case $msg = $GUI_Button_Stop
$oIE.Stop
EndSelect
Wend
GUIDelete ()
Exit怎么把它改成百度浏览器的,也就是要找出$oIE = ObjCreate(" 类名称")中的"类名称",怎么找呢? 本帖最后由 komaau3 于 2013-4-26 02:09 编辑
没用过百度浏览器,也是所谓的双核?如果默认是Trident的话可以修改这里 :HKEY_CLASSES_ROOT\CLSID\{0002DF01-0000-0000-C000-000000000046}\LocalServer32 修改完就可以用au3的IE库来操作了
页:
[1]