VB.NET Detecting Keypress While Minimized

后端 未结 3 973
梦谈多话
梦谈多话 2020-12-12 06:38

I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have

3条回答
  •  北海茫月
    2020-12-12 07:11

    You can check that in the keypress event:

    if not e.control and e.keycode = keys.F10 then
        
    elseif   e.keycode = keys.F10 then
        
    end if
    

提交回复
热议问题