caps lock 键的使用--紧急!!!!!!!!!!

xujunliang 2003-04-10 01:26:43
我想在VB程序中设置 CAPS LOCK键的状态
但使用 =CAPSLOCK(.T.) 时不能通过
请问我怎么办
...全文
19 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
minajo21 2003-04-10
  • 打赏
  • 举报
回复
Const VK_CAPITAL = &H14
minajo21 2003-04-10
  • 打赏
  • 举报
回复
Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Private Declare Function SetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer

Const VK_NUMLOCK = &H90

Private Declare Sub GetKeyboardStateByString Lib "user32" Alias "GetKeyboardState" (ByVal pbKeyState As String)
Private Declare Sub SetKeyboardStateByString Lib "user32" Alias "SetKeyboardState" (ByVal lppbKeyState As String)

1,451

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧