|
|
|
Click here to copy the following block | Option Explicit
Private Type POINTAPI x As Integer y As Integer End Type
Private Declare Sub GetCursorPos Lib "user32.dll" (lpPoint As POINTAPI) Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
Private posOld As POINTAPI Private posNew As POINTAPI
Public Function InputCheck() As Boolean Dim i As Integer
Call GetCursorPos(posNew) If ((posNew.x <> posOld.x) Or (posNew.y <> posOld.y)) Then posOld = posNew InputCheck = True Exit Function End If For i = 0 To 255 If (GetAsyncKeyState(i) And &H8001) <> 0 Then InputCheck = True Exit Function End If Next i InputCheck = False End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|