VB实现简单的热键/快捷键功能

作者:小菜 更新时间:2025-01-18 点击数:
简介:代码如下:Private Declare Function GetAsyncKeyState Lib "User32" (ByVal Vkey As Long)

【菜科解读】

代码如下:

Private Declare Function GetAsyncKeyState Lib "User32" (ByVal Vkey As Long) As IntegerPrivate Function MyHotKey(vKeyCode) As BooleanMyHotKey = GetAsyncKeyState(vKeyCode)

加入收藏
  • 账号登录
社交账号登录