按住Shift+Alt时连续发送两轮各5次E的实现方案求助
Hey there! Let me show you a straightforward way to get this done using AutoHotkey—it’s the go-to tool for custom keyboard macros like this.
Here’s how to implement it:
First, you’ll need AutoHotkey installed (just grab the latest version from its official site and run through the setup). Once that’s done, follow these steps:
- Right-click on your desktop, select New > Text Document, and paste in this script:
; Trigger: Hold Shift+Alt, press F1 to send 5 'E's +!F1:: Send, {E 5} return ; Optional alternative: If you want pressing 'E' (while holding Shift+Alt) to send 5 'E's ; Uncomment the lines below if you prefer this behavior ; +!E:: ; Send, {E 5} ; return
Rename the text file to something like
RepeatE.ahk(make sure you change the file extension from.txtto.ahk—you might need to enable "Show file extensions" in File Explorer first).Double-click the
.ahkfile to run it. You’ll see a small AutoHotkey icon in your system tray, which means the script is active.
How to use it:
- Hold down Shift + Alt (don’t let go)
- Press F1 once: it’ll send 5 'E's immediately
- Keep holding Shift + Alt, press F1 again: another 5 'E's will send—no need to release the modifier keys in between
If you want this script to run automatically every time you start your computer, right-click the .ahk file, create a shortcut, and drag that shortcut into the Windows Startup folder (open it by pressing Win+R and typing shell:startup).
内容的提问来源于stack exchange,提问作者cw41486

