Skip to content

Instantly share code, notes, and snippets.

@sugoidesune
Last active February 5, 2024 22:07
Show Gist options
  • Save sugoidesune/b532a88df94249f63f07e25bed310ecb to your computer and use it in GitHub Desktop.
Save sugoidesune/b532a88df94249f63f07e25bed310ecb to your computer and use it in GitHub Desktop.
LightroomPresetsJumper
#SingleInstance Force
SetMouseDelay, 0
;An Autohotkey script for changing quickly cycling through Lightroom Presets
;It moves the mouse by the amount of pixels set under pixels_to_move and clicks
; You can experimentally find out the best pixel distance for you and set it here.
pixels_to_move := 10
;Press Ctrl+Alt+Up to Pause the script. Press it again to restart it.
^!Up::Suspend
; Press Ctrl+UP ARROW / Ctrl+DOWN ARROW to activate the script
; Remove ^ to use without Ctrl key.
; Change the hotkey by changing Down/Up to the name of the key
; https://www.autohotkey.com/docs/v1/KeyList.htm
^Down::
; Get current mouse position
MouseGetPos, xpos, ypos
; Move the mouse cursor pixels_to_move amount down
MouseMove, xpos, ypos + pixels_to_move, 10
; Click the mouse
Click
return
^Up::
; Get current mouse position
MouseGetPos, xpos, ypos
; Move the mouse cursor pixels_to_move amount up
MouseMove, xpos, ypos - pixels_to_move, 10
; Click the mouse
Click
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment