⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module1.bas

📁 一款漂亮的控件。 快
💻 BAS
字号:
Attribute VB_Name = "Module1"
'1、隐藏/显示鼠标。

Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long

'2、定位鼠标。

Type rect
    sbleft As Long
    sbtop As Long
    sbright As Long
    sbbottom As Long
End Type

Public Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long

'3、移动鼠标。

Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long

'4、鼠标坐标。

Type POINTAPI
    x As Long
    y As Long
End Type

Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long

'鼠标键数。

Public Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -