Author:水如烟
Namespace
LzmTW.uSystem.uWindows.Win32API
Public Structure WindowInfo
Dim WindowText As String
Dim ClassName As String
Dim hWnd As Integer
Public Function ToArray() As Object ()
Return New Object () {WindowText, ClassName, hWnd}
End Function
End Structure
Public Structure ActiveWindowInfo
Dim WindowText As String
End Structure
Public Class KeyStatusWatcherEventArgs
Inherits System.EventArgs
Private gIsEnabled As Boolean
Private gMsgKey As KeyWatcher
Private gNow As Date
Sub New ( ByVal now As Date )
gNow = now
gMsgKey = KeyWatcher.Time
End Sub
Sub New ( ByVal msgkey As KeyWatcher, ByVal isenabled As Boolean )
gMsgKey = msgkey
gIsEnabled = isenabled
End Sub
Public ReadOnly Property MsgKey() As KeyWatcher
Get
Return gMsgKey
End Get
End Property
Public ReadOnly Property IsEnabled() As Boolean
Get
Return gIsEnabled
End Get
End Property
Public ReadOnly Property Now() As Date
Get
Return gNow
End Get
End Property
End Class
Public Enum KeyWatcher
NumLock
CapsLock
ScrollLock
Insert
Time
Other
End Enum
End Namespace
Public Structure WindowInfo
Dim WindowText As String
Dim ClassName As String
Dim hWnd As Integer
Public Function ToArray() As Object ()
Return New Object () {WindowText, ClassName, hWnd}
End Function
End Structure
Public Structure ActiveWindowInfo
Dim WindowText As String
End Structure
Public Class KeyStatusWatcherEventArgs
Inherits System.EventArgs
Private gIsEnabled As Boolean
Private gMsgKey As KeyWatcher
Private gNow As Date
Sub New ( ByVal now As Date )
gNow = now
gMsgKey = KeyWatcher.Time
End Sub
Sub New ( ByVal msgkey As KeyWatcher, ByVal isenabled As Boolean )
gMsgKey = msgkey
gIsEnabled = isenabled
End Sub
Public ReadOnly Property MsgKey() As KeyWatcher
Get
Return gMsgKey
End Get
End Property
Public ReadOnly Property IsEnabled() As Boolean
Get
Return gIsEnabled
End Get
End Property
Public ReadOnly Property Now() As Date
Get
Return gNow
End Get
End Property
End Class
Public Enum KeyWatcher
NumLock
CapsLock
ScrollLock
Insert
Time
Other
End Enum
End Namespace