win+enter_窗体顶置.ahk 199 B

1234567
  1. #space::
  2. ;将当前激活窗口存入变量w
  3. WinGetActiveTitle, w
  4. ;对w窗口置顶,Toggle表示在on 与 off 中切换
  5. Winset, AlwaysOnTop, Toggle, %w%
  6. ;返回执行
  7. return