- Clip the selection to onenote as sidenote
- to selected existing note
Last active
October 6, 2024 10:29
-
-
Save bsmagic/063dd22f683c14a1cd00eabe7d31706d to your computer and use it in GitHub Desktop.
Support using hotkey to clip the selected content to local onenote
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
;An autohotkey script | |
EnvGet, ProgramFiles32, ProgramFiles(x86) | |
onenote := "\Microsoft Office\root\Office16\ONENOTE.EXE" | |
onenote32 := ProgramFiles32 . onenote | |
onenote64 := A_ProgramFiles . onenote | |
;msgbox, % onenote32 | |
ONENOTE_PATH:="C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE" | |
if FileExist(onenote64) { | |
ONENOTE_PATH:=onenote64 | |
} | |
else if FileExist(onenote32) { | |
ONENOTE_PATH:=onenote32 | |
;msgbox, % ONENOTE_PATH | |
} | |
;;; the below is hotkeys ;;; | |
#a:: | |
Send, ^c | |
sleep,100 | |
;msgbox, %ONENOTE_PATH% /sidenote /paste | |
;"C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE" | |
run %ONENOTE_PATH% /sidenote /paste | |
;run C:\Program Files (x86)\Microsoft Office\root\Office16\ONENOTE.EXE /sidenote /paste | |
Return | |
; |
Author
bsmagic
commented
Dec 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment