AutoHotKey:使用 Windows 键在第二台显示器上打开开始菜单

问题描述 投票:0回答:1

我想设置键盘上的 Windows 键(或 Linux 中的“超级键”)来打开当前活动显示器(第二个显示器)上的开始菜单,而不是默认的主显示器。

我制作了一个 AutoHotKey 脚本来执行此操作,它将左侧 Windows 键重新映射到一个函数。

我的问题是: 即使我使用某些 Windows 键热键组合(如 Win+EWin+R 等),此功能也会执行。

有办法防止这种情况发生吗?
我的意思是:只有当我单独按下(并释放)Windows 键时才执行此脚本,同时让我以正常方式使用其他 Win 键热键组合。

或者除了AutoHotKey之外还有其他方法可以达到这个目的吗?

我的脚本:

~LWin::{
    Send "{Blind}{vkE8}"
    CoordMode "Mouse", "Screen"
    MouseGetPos &orig_x, &orig_y
    Click 0, A_ScreenHeight
    MouseMove orig_x, orig_y
    }
return
autohotkey
1个回答
0
投票

试试这个:

#HotIf (A_PriorKey ="LWin")

    ~LWin Up::{
        ; Send "{Blind}{vkE8}"
        CoordMode "Mouse", "Screen"
        MouseGetPos &orig_x, &orig_y
        Click 0, A_ScreenHeight
        MouseMove orig_x, orig_y
    }

#HotIf
© www.soinside.com 2019 - 2024. All rights reserved.