转换代码以打开 Firefox 而不是 Internet Explorer

Convert code to open Firefox instead of Internet Explorer

如何将 Internet Explorer 更改为 Firefox?

#include <IE.au3>
    Func _CreateIE()
        If Not IsObj($oIE) Or Not ProcessExists("iexplore.exe") Then
            $oIE = _IECreate($sURL, 0)
        EndIf
    EndFunc   ;==>_CreateIE

只需打开 Firefox 浏览器,以下本机 AutoIt 代码就足够了:

local $url="www.google.com"
$off=Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe " & $url, "", @SW_MAXIMIZE)

要获得全面支持,您需要 user defined function FF.au3, which in turn requires the add-on mozrepl

别忘了启动 MozRepl。 FF 菜单:Extras/Menu 或查看 "Activate on startup".

那么你可以这样做:

#Include <FF.au3>
_FFStart([$sURL = "about:blank"[, $sProfile = "default"[, $iMode = 1[, $bHide = False[, $IP = "127.0.0.1"[, $iPort = 4242]]]]]])

参考文献:
http://english.documentation.ff-au3.thorsten-willert.de
https://www.autoitscript.com/wiki/User_Defined_Functions
https://www.autoitscript.com/forum/topic/95595-ffau3-v0601b-10/
https://github.com/bard/mozrepl/wiki