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_393828227 小时前
办公文档批量打印器 Word、PPT、Excel、PDF、图片和文本,它都支持批量打印。
windows·word·powerpoint·excel·软件需求
_oP_i10 天前
实现 “WebView2 获取word选中内容
开发语言·c#·word
LENG_Lingliang10 天前
word出现由WPS切换后公式异常无法删除的情况处理
word·wps·mathtype
贤和兄10 天前
使用docx4j 实现word转pdf(linux乱码处理)
linux·pdf·word
开开心心就好11 天前
高效批量转换Word到PDF的方法
javascript·安全·智能手机·pdf·word·objective-c·lisp
response_L11 天前
麒麟v10、uos系统在线批量生成pdf文件
java·pdf·word·pageoffice·在线编辑
清风细雨_林木木12 天前
私有 Word 文件预览转 PDF 实现方案
pdf·word
一只秋田犬12 天前
基于 Apache POI 实现的 Word 操作工具类
word
清风细雨_林木木13 天前
.docx 和 .doc 都是 Word 文档格式的区别
word
r i c k13 天前
邮件合并----批量从excel表中导出数据到word中
word·excel