【问题标题】:Exit Google Chrome’s full screen with applescript使用 applescript 退出谷歌浏览器的全屏
【发布时间】:2023-03-29 13:05:01
【问题描述】:

我想在 Chrome 窗口上制作一个“退出全屏”的 applescript,但没有任何效果。我对涉及applescript单击正确菜单项的解决方案没有任何问题(没有按照我尝试的方式工作),唯一的必要条件是它不使用键盘快捷键。

【问题讨论】:

  • 你的意思是 Javascript 吗?
  • 不。 Applescript.

标签: google-chrome applescript


【解决方案1】:

单击菜单项在全屏桌面上不起作用,但exit presentation mode 命令退出全屏。

tell application "Google Chrome"
    tell window 1 to exit presentation mode
end tell

tell application "Google Chrome"
    repeat with w in windows
        try
            tell w to exit presentation mode
        end try
    end repeat
end tell

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-28
    • 1970-01-01
    • 1970-01-01
    • 2019-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多