PPT/WORD如何实现Shift键加鼠标滚轮实现左右滑动

方法:使用【AutoHotKey】软件

1. 什么是AutoHotKey?

AutoHotKey (AHK),是一款类似于按键精灵的软件,用于自动化控制键盘和鼠标,提高工作效率。

官网下载:https://www.autohotkey.com/

2. 需求背景

在编辑PPT或者其他的文档时,把画面放大了之后想要左右滑动画面,要用鼠标拖拽下面的滑块,很不方便。

所以希望按住Shift键时,使用鼠标滚轮,画面可以左右滑动。

而不按Shift时,使用鼠标滚轮,画面是正常的上下移动。

3. AHK脚本代码及使用

直接在桌面上,点击右键,新建AHK文件,用文本编辑器打开,将下面的代码复制进去。

bash 复制代码
#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.

;################################################################
; Shift + Wheel for horizontal scrolling
;################################################################
+WheelDown::
Send, {WheelRight}
Return

+WheelUp::
Send, {WheelLeft}
Return

要运行脚本,双击AHK文件就好。

相关推荐
一叶龙洲28 分钟前
Java中使用模板引擎(FreeMarker / Velocity) + Word XML导出复杂Word
xml·java·word
伟贤AI之路1 天前
为什么AI里的公式复制到Word格式会乱?
人工智能·word·latex
琪伦的工具库1 天前
批量DOCXPDFPPTX文档页拆分工具使用说明:每页拆分/每N页拆分/指定页码范围,支持导出日志
word
weixin_416660072 天前
从标记语言到 Word 文档:AI 生成的 Mermaid 与 LaTeX 自动化转换的技术方案解析
word·latex·数学公式·deepseek
昵称暂无13 天前
通过 C# 复制 Word 文档、指定段落、指定节
开发语言·c#·word
STRUGGLE_xlf4 天前
AI大模型生成表格粘贴到 Word 后出现双线边框的原因与解决方案
word
weixin_416660074 天前
2026 年 AI 对话转 Word 工具分析:Pandoc、Typora、aitoword 怎么选
人工智能·word
小真zzz5 天前
2026年免费AI PPT工具深度评测:多款实用工具推荐
人工智能·搜索引擎·ai·powerpoint·ppt
F_D_Z5 天前
Word Embedding :从分布式假设到神经网络语言模型
分布式·word·embedding
asdzx675 天前
C#:通过模板快速生成 Word 文档
开发语言·c#·word