i'm trying to expand and collapse the paragraphs in onenote 2016. the key combo to expand in it is shift+alt+pluskey[+] [not numpad one] and to collapse , it is alt+shift+minuskey [-] [not numpad one]
I tried to bind left win key to expand and tilde key to collapse
I tried this
LWin::
Send, {shift}{alt}{+}
Sleep, 100
return
but it's not working. i am totally new to autohotkey. and also trying to combine both scripts [expand and collapse] in one script and to make this script only work when onenote window is active.
update : from the answers , it finally worked for me.
LWin::
SendInput, +!{+}
return
`::
SendInput, +!{-}
return
-since that character doesn't have a special meaning in send commands. The brackets are only used to escape characters that have special meanings in send commands. Full list is found on the documentation. - 0x464e