以下是一个示例脚本,它按下Win + Alt + L键调整当前窗口的大小:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Win + Alt + L – Resize window to left half of the screen
WinGetPos, X, Y, Width, Height, A
NewWidth := A_ScreenWidth / 2
WinMove, A,, 0, 0, NewWidth, A_ScreenHeight
Return
有时候,与其他快捷键冲突可能会导致问题。 您可以尝试更改或删除该功能绑定的模块以解决此类问题。