使用 FF.au3 和 Mozrepl 进行 Autoit 如何使用 _FFClosetab() 关闭 Firefox 中的所有选项卡?

发布于 2024-09-25 15:43:13 字数 507 浏览 1 评论 0原文

我使用的是 Firefox 3.6,我认为使用 #include FF.au3 和 Mozrepl 关闭所有安装了插件 TMP-TabMixPlus 0.3.8.4 的 Firefox 打开选项卡的 Autoit 脚本可能存在兼容性问题。下面是我正在使用的脚本,我想添加类似的内容 _FFTabClos​​e("all", "index") 我无法让它工作!

#Include FF.au3
If _FFConnect() Then
    If _FFOpenURL("file:///C:/firefox.html") Then
        WinSetState("[CLASS:MozillaUIWindowClass]", "", @SW_RESTORE)
    EndIf
Else
    MsgBox(64,"Error","Can't connect to FireFox")
EndIf

我想在从系统托盘恢复 Firefox 之前关闭所有选项卡。其他一切都很好。我认为这可能是我的语法,但我找不到任何内容。

I'm using Firefox 3.6 and I think that there may be a compatibility issue with the Autoit script using #include FF.au3 and Mozrepl to close all of Firefox's open tabs with the addon TMP-TabMixPlus 0.3.8.4 installed. Below is the script I'm using and I would like to add something like this _FFTabClose("all", "index") I can't make it work!

#Include FF.au3
If _FFConnect() Then
    If _FFOpenURL("file:///C:/firefox.html") Then
        WinSetState("[CLASS:MozillaUIWindowClass]", "", @SW_RESTORE)
    EndIf
Else
    MsgBox(64,"Error","Can't connect to FireFox")
EndIf

I want to close all tabs before restoring firefox from system tray. Everything else works fine. I think that it might be my syntax but I can't find anything on it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

jJeQQOZ5 2024-10-02 15:43:13

为此有一个特殊的函数。

#Include <FF.au3>

_FFStart()
If _FFIsConnected() Then
    _FFTabCloseAll()
    Sleep(3000)
    _FFQuit()
EndIf

对于我来说,最小化的 FF 3.6.10 工作得很好。
此外,还有一个指向此内容的官方文档的链接功能。

There is a special function for this.

#Include <FF.au3>

_FFStart()
If _FFIsConnected() Then
    _FFTabCloseAll()
    Sleep(3000)
    _FFQuit()
EndIf

Works for me just fine with minimized FF 3.6.10.
Also, there is a link to official docs for this function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文