Object 在AutoIt中使用Firefox创建对象

Object 在AutoIt中使用Firefox创建对象,object,firefox,autoit,Object,Firefox,Autoit,我通过创建IE对象打开了分辨率为360x640的IE。这是我的代码: $object = ObjCreate("InternetExplorer.Application.1") With $object .Visible = 1 .Height = 640 .Width = 360 .Navigate("https://www.google.com.bd/?gws_rd=cr,ssl&ei=jm11Vb7_Iofg8AX0_IGYBw#q=ripon+al+wasim") EndWith

我通过创建IE对象打开了分辨率为360x640的IE。这是我的代码:

$object = ObjCreate("InternetExplorer.Application.1")
With $object
.Visible = 1
.Height = 640
.Width = 360
.Navigate("https://www.google.com.bd/?gws_rd=cr,ssl&ei=jm11Vb7_Iofg8AX0_IGYBw#q=ripon+al+wasim")
EndWith

我想在AutoIt中以同样的方式创建Firefox对象。我怎么做呢?

首先你需要下载

使用代码示例:

#包括
$oFF=ObjCreate(“Mozilla.Browser.1”)
; 为我们的输出创建一个简单的GUI
GUI创建(“FF嵌入式Web控件测试”,640580,(@DesktopWidth-640)/2,(@DesktopHeight-580)/2,$WS\u OVERLAPPEDWINDOW+$WS\u VISIBLE+$WS\u CLIPSIBLINGS)
$GUIActiveX=GUICtrlCreateObj($oFF、10、40、600、360)
$GUI_Button_Back=GuiCtrlCreateButton(“Back”,10、420、100、30)
$GUI_Button_Forward=GuiCtrlCreateButton(“Forward”,12042010030)
$GUI_Button_Home=GuiCtrlCreateButton(“Home”,230、420、100、30)
$GUI_Button_Stop=GuiCtrlCreateButton(“Stop”,330、420、100、30)
GUISetState();显示图形用户界面
$oFF.导航(“http://www.autoitscript.com")
; 正在等待用户关闭窗口
而1
$msg=GUIGetMsg()
挑选
案例$msg=$GUI\u事件\u关闭
...

我已经安装了“Mozilla ActiveX Control 1.7.12”,并运行了上面您提供的代码。GUI窗口显示一段时间后消失。对不起,我错过了最后一部分代码。它起作用了。谢谢米洛斯谷歌浏览器怎么样?几乎没有。。。试试这个
#include <GUIConstants.au3>

$oFF = ObjCreate("Mozilla.Browser.1")

; Create a simple GUI for our output

GUICreate ( "FF Embedded Web control Test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$GUIActiveX = GUICtrlCreateObj ( $oFF, 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

$oFF.navigate("http://www.autoitscript.com")

; Waiting for user to close the window

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE
...