(defunyuh/org-download-screenshot-wrapper()"Wrap org-download-screenshot for applying advices."(interactive)(require'org-download)(call-interactively#'org-download-screenshot))
(defunyuh/org-download-pre-screenshot()"Minimize window before capture the screen."(w32-send-sys-command#xf020))(defunyuh/org-download-after-screenshot()"Minimize window before capture the screen."(w32-send-sys-command#xf120))
(defunyuh/org-download-set-image-dir(&optionalbasename)"Set image dir with base-dir + buffername."(setqorg-download-image-dir(concat"C:/Users/niall/OneDrive/note/org/images/"(file-name-sans-extension(buffer-name)))))
(use-packageorg-download:ensuret:afterorg:bind("<f7>".org-download-clipboard)("<f8>".yuh/org-download-screenshot-wrapper):config(advice-add'org-download-image:before#'yuh/org-download-set-image-dir)(setqorg-download-screenshot-method"irfanview /capture=4 /convert=\"%s\"")(yuh/org-download-toggle-capture-self)(setqorg-download-screenshot-file"c:\\Users\\niall\\AppData\\Local\\Temp\\screenshot.png"));; irfanview do not accept / path