V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
skywalker
V2EX  ›  macOS

Keyboard Maestro 的窗口管理似乎有问题啊

  •  
  •   skywalker · 2014-03-08 15:29:14 +08:00 · 3344 次点击
    这是一个创建于 3702 天前的主题,其中的信息可能已经有所发展或是发生改变。
    原来我用ShiftIt来管理窗口大小;后来为了精简软件,就改用BetterTouchTool来设置快捷键;后来买了KM就把BetterTouchTool的设置搬过来,一开始觉得还挺好,可是最近用双屏(笔记本+外接)后发现有问题:如果用KM设置的最大话,即使原来窗口是在副屏上最大化后窗口还是会跑到主屏幕上。

    看了下KM的设置,是用一个SCREEN的函数来控制的,比如最大化就是:
    http://imgur.com/wawVgb5

    注意到其中SCREEN的第一个参数Main是写死的,也就是无论窗口开始在哪里,最大化后都会跑到主屏幕,搜了文档没看到有什么参数表示窗口所在的当前屏幕,有没有什么方法解决?

    P.S. 这样另一个功能也不知道怎么实现:将窗口移动到下一个屏幕……
    2 条回复    2021-09-24 14:00:15 +08:00
    skywalker
        1
    skywalker  
    OP
       2014-03-08 19:02:03 +08:00
    自问自答,给作者发信,问怎么做,回答如下:

    Yes, but it's not easy currently. You have to get the frame of the front window, and then compare it to SCREEN(Main,Right) to decide which screen its on, and then use either SCREEN(Main,...) or SCREEN(Second,...).

    The next version (in beta testing now) will have SCREEN(Front,...) (and SCREEN(Mouse,...) which refer to the screen with the front window (or Mouse) on it.

    Enjoy,
    Peter.
    jogging20
        2
    jogging20  
       2021-09-24 14:00:15 +08:00
    哈哈,还是官方文档说得更清楚。
    Keyboard Maestro 的窗口变化。如果有多个显示器,main 代表的是主显示器。
    所以要改成 Front,即当前显示器,即可。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1035 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:19 · PVG 03:19 · LAX 12:19 · JFK 15:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.