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

相关推荐
qq_5469372721 小时前
Excel批量转PDF_Word_图片,支持自动合并报表,效率翻倍。
pdf·word·excel
(Charon)2 天前
【C++ 面试高频:内存管理、RAII 和智能指针详解】
java·开发语言·word
江畔柳前堤2 天前
github实战指南03-Pull Request 全流程实战
开发语言·人工智能·python·深度学习·github·word
2603_954138392 天前
PDF 转 Word 工具深度评测:从参数解析到实战避坑
pdf·word
知南x3 天前
【DPDK例程学习】(4) l2fwd
学习·word
江畔柳前堤3 天前
github实战指南00-命令在哪里执行?
人工智能·线性代数·oracle·数据挖掘·github·word
江畔柳前堤3 天前
github实战指南05-Fork与开源协作
人工智能·线性代数·oracle·开源·github·word
yivifu3 天前
怎样将Word文档中脚注引用后面的空格轻松删除
word·vba
绎奇PPT4 天前
绎奇PPT深耕教学创新大赛,国赛 PPT 专属设计
信息可视化·powerpoint·ppt
Sour4 天前
Word 文档翻译后保留格式的检查清单:标题、表格、图片、目录和批注
pdf·word·办公软件·office·文档翻译