FAKK2 писал(а):v-adix
По идее тот же mousemove только на форме.
FAKK2 писал(а):v-adix
По идее тот же mousemove только на форме.
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Type POINTAPI ' general use. Typically used for cursor location
X As Long
Y As Long
End Type
Private Sub Timer1_Timer()
Dim mousePt As POINTAPI
GetCursorPos mousePt
If WindowFromPoint(mousePt.X, mousePt.Y) = Picture1.hWnd Then
Beep
End If
End Sub
Сейчас этот форум просматривают: Yandex-бот и гости: 130