Surface Pen button -> toggle Shift
Posted: 12 Aug 2018, 17:54
I'm trying to piece together a script that toggles Shift on and off (up and down) when the button at the end of a Surface Pen is pressed.
My current script is as follows:
#F20::
Sleep, 100
Send, {Shift down}
KeyWait, #F20
Send, {Shift up}
return
It throws an invalid parameter error at the fourth line. Removing the space did nothing.
If it's relevant, the first line threw the same error with a space in, or seemed to.
Please contribute any insight into a solution or the nature of these Pen keys that you may have. It will be greatly appreciated. Thanks!
My current script is as follows:
#F20::
Sleep, 100
Send, {Shift down}
KeyWait, #F20
Send, {Shift up}
return
It throws an invalid parameter error at the fourth line. Removing the space did nothing.
If it's relevant, the first line threw the same error with a space in, or seemed to.
Please contribute any insight into a solution or the nature of these Pen keys that you may have. It will be greatly appreciated. Thanks!