2016-09-18 50 views

回答

1

要刚刚打开Firefox浏览器下面的原生代码的AutoIt足够:

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

为了全力支持你需要的user defined functionFF.au3,而这又需要附加mozrepl

不要忘了启动MozRepl。 FF菜单:附加功能/菜单或在那里检查“启动时启动”。

然后,你可以这样做:

#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

相关问题