Skip to content

Instantly share code, notes, and snippets.

@daniellowtw
Created May 25, 2015 11:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniellowtw/d27e2b8c2c57f992227c to your computer and use it in GitHub Desktop.
Save daniellowtw/d27e2b8c2c57f992227c to your computer and use it in GitHub Desktop.
Macro to resize images in zim wiki after pasting them
SetTitleMatchMode, 2
#IfWinActive Zim ahk_class gdkWindowToplevel
!1::
SendInput, {AppsKey}e{Tab}{Tab}{Tab}{Tab}100{Enter}{Enter}
return
!2::
SendInput, {AppsKey}e{Tab}{Tab}{Tab}{Tab}200{Enter}{Enter}
return
!3::
SendInput, {AppsKey}e{Tab}{Tab}{Tab}{Tab}300{Enter}{Enter}
return
!4::
SendInput, {AppsKey}e{Tab}{Tab}{Tab}{Tab}400{Enter}{Enter}
return
!5::
SendInput, {AppsKey}e{Tab}{Tab}{Tab}{Tab}500{Enter}{Enter}
return
!`::
SendInput, {AppsKey}e{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}{Tab}{Tab}{Enter}
return
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment