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

相关推荐
揭老师高效办公2 天前
在Word和WPS文字中添加的拼音放到文字右边
word·wps文字
_oP_i2 天前
c# openxml 打开加密 的word读取内容
开发语言·c#·word
zzc9213 天前
用python自动标注word试题选项注意事项
python·自动化·word·办公·试题·自动化标记
梦想画家4 天前
Java 动态导出 Word 登记表:多人员、分页、动态表格的最佳实践
java·word·报表模板
诸葛大钢铁4 天前
PDF转Word的简单方法
pdf·word
飛_5 天前
Word Press富文本控件的保存
html·word·word press
海哥编程5 天前
Python 进阶(六): Word 基本操作
python·word
CodeForCoffee6 天前
Word for mac使用宏
word
2301_787725656 天前
HTML 转 Word API 接口
html·word
宝库盒7 天前
免费PDF转换器推荐2025最新版|PDF转Word/Excel/PPT/图片无水印不限大小 亲测可用 附下载地址
pdf·word·excel·格式转换