Created
March 26, 2020 19:54
-
-
Save constructor-s/d8675df5e4d483117e04a95d2a660c4f to your computer and use it in GitHub Desktop.
AutoHotKey to print current page to PDF in browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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. | |
^j:: | |
Click | |
Sleep, 500 | |
Send, ^p | |
Sleep, 1000 | |
Send, {Enter} | |
WinWait, Save As | |
WinActivate, Save As | |
Send, Lab_%A_Now% | |
Send, {Enter} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment