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文件就好。

相关推荐
骆驼爱记录4 天前
WPS页码设置:第X页共Y-1页
自动化·word·excel·wps·新人首发
2301_816997884 天前
Word 清除格式的方法
word
微光feng5 天前
毕业论文word引用操作汇总
word·目录·公式·毕业论文·交叉引用·题注
2301_816997885 天前
Word 功能区与快速访问工具栏
word
halen3335 天前
Hellowordl: The Masters Tool for Word Puzzle Enthusiasts
word
lpfasd1235 天前
Markdown 导出 Word 文档技术方案
开发语言·c#·word
Cxiaomu5 天前
Python 文件解析: Excel / Word / PDF 的解析、处理、预览与下载
python·word·excel
bu_shuo5 天前
Word中插入文本内容控件并交叉引用
word·内容控件
缺点内向5 天前
C#中如何创建目录(TOC):使用Spire.Doc for .NET实现Word TOC自动化
c#·自动化·word·.net
2301_816997885 天前
Word 创建打开与保存文档
c#·word·xhtml