Can someone tell mew how to send Shortcut keys in vb.net? The shortcut keys are {LEFTWIN} + {ADD} amd {LEFTWIN} + {SUBTRACT}. Tried SendKeys.Send it does not work.
Sending LWin is not possible through SendKeys.Send(). In order to do so you have to P/Invoke the WinAPI's SendInput() function.
Here's a wrapper class I've created for that purpose:
EDIT (2019-09-20)
InputHelperhas since long been moved to its own library. The answer has been updated to reflect this change.Download InputHelper from GitHub:
https://github.com/Visual-Vincent/InputHelper/releases
Here's how you'd use it:
InputHelper.Keyboard.SetKeyState(Keys.LWin, True) 'Hold LWin.
InputHelper.Keyboard.PressKey(Keys.Add) 'Press the ADD key.
InputHelper.Keyboard.SetKeyState(Keys.LWin, False) 'Release LWin.