Last active
January 2, 2021 18:12
-
-
Save jtanx/09c8f0e6f31ecb61c3d5d3faddbaf559 to your computer and use it in GitHub Desktop.
Acrobat DC Highlighter tool
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
; Set colour Acrobat DC | |
; Valid x positions: 20, 35, 55, 75, 90, 111, 128, 146 | |
; Valid y positions: 60, 80, 100, 120, 135 | |
SetColour(x, y) | |
{ | |
If WinExist("Highlighter Tool Properties ahk_class AVL_AVFloating") or WinExist("Highlight Properties ahk_class AVL_AVFloating") | |
{ | |
WinActivate | |
WinWaitActive | |
if !ErrorLevel | |
{ | |
CoordMode, Mouse, Screen | |
MouseGetPos, oldX, oldY | |
CoordMode, Mouse, Relative | |
MouseClick, Left, 30, 30 ; Activate the palette | |
MouseClick, Left, x, y ; Select the colour. | |
CoordMode, Mouse, Screen | |
MouseMove, oldX, oldY | |
CoordMode, Mouse, Relative | |
} | |
} | |
} | |
; AHK: ^ is Ctrl, ! is Alt, + is shift | |
; Ctrl+1 | |
^1:: | |
SetColour(20, 100) | |
return | |
; Ctrl+2 | |
^2:: | |
SetColour(35, 100) | |
return | |
; Ctrl+3 | |
^3:: | |
SetColour(55, 100) | |
return | |
; Ctrl+4 | |
^4:: | |
SetColour(75, 100) | |
return |
Do I copy and paste it in javascript within acrobat? I have adobe acrobat pro dc.
bro this is what I've been looking for all day. this simple script will definitely help me with my medical exam. Thank you so much
Thanks! This is REALLY a life-saver for me!
Could you guys share more details on how to use it?
helpful for beginner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you ! This is literally what I was looking for. You saved me a lot of time. I have an updated version where you basically give indexes of the colors (like row and column). I'll upload when I have a chance. Thanks for the great work.