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

相关推荐
gsls20080814 分钟前
使用xdocreport导出word
前端·python·word
空中湖1 天前
免费批量PDF转Word工具
pdf·word
开开心心就好1 天前
免费PDF转图片软件
javascript·智能手机·pdf·flask·word·excel·scikit-learn
空中湖2 天前
免费批量Markdown转Word工具
word·markdown
呆萌的代Ma2 天前
Cursor实现用excel数据填充word模版的方法
word·excel
空中湖3 天前
文档极速转换器 - 免费批量Word转PDF工具
pdf·word
东方佑3 天前
使用 Python 自动化 Word 文档样式复制与内容生成
python·自动化·word
wqqqianqian5 天前
国产linux系统(银河麒麟,统信uos)使用 PageOffice在线编辑word文件保存数据同时保存文件
linux·word·信创·国产·保存·pageoffice·在线编辑
余子桃5 天前
Python实现markdown文件转word
python·word·markdown
一只特立独行的兔先森5 天前
WordZero:让Markdown与Word文档自由转换的Golang利器
golang·word·word自动化