How send Lwin shortcut key in vb.net

前端 未结 3 1747
北荒
北荒 2020-12-07 06:15

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.

3条回答
  •  时光取名叫无心
    2020-12-07 06:58

    You said you tried

     SendKeys.Sned("KEY")
    

    The correct is

     SendKeys.Send("KEY")
    

    Besides that, what key you are referring with "Leftwin" ?

    Edited:

    Sorry for that, I never used Sendkeys, and I knew "LWIN" by Winkey...

    Btw, Try using

    SendKeys.Send(Keys.LWin)
    

    SendKeys send string, so this SendKeys.Send(Keys.LWin) actually should send the code of Keys.LWin

提交回复
热议问题