delphi判断ctrl alt键是否按下

 if   (GetKeyState(VK_CONTROL)<0) then
  begin
    //判断是否按下ctrl键
  end
  else if (GetKeyState(VK_MENU)<0) then

//判断是否按下alt键
  begin
    
  end
  

猜你喜欢

转载自blog.csdn.net/ozhy111/article/details/84857168