这个AutoHotkey脚本可以做到这一点。检查第一行,有一些参数可以更改脚本的行为:
hover_task_buttons = 1 ; hover over taskbar button to activate window
hover_task_group = 1 ; hover to select (or exit) from a window-group menu
; (for Windows' "Group similar taskbar buttons" feature)
hover_task_min_info = 0 ; only show info for minimized windows, don't activate
hover_start_button = 1 ; hover over start button to open start menu
hover_min_max = 1 ; minimize or maximize by hovering over the min/max buttons
hover_any_window = 0 ; activate any window by hovering (except the taskbar)
hover_no_buttons = 1 ; ignore hover if a mouse button is in the down state
hover_delay = 500 ; hover delay, from when the mouse stops moving
; WORKS, BUT NOT PERFECTLY: (brings the window forward, then puts it back in place)
hover_keep_zorder = 0 ; don't bring windows forward, only activate them
您将对上面列出的最后一个hover_keep_zorder感兴趣,但需要注意的是它不能完美运行(尽管对我来说很好)。
别忘了也将hover_any_window设置为1。