Set oModule = obook.VBProject.VBComponents.Add(1) '添加模块
strCode ="'Author: Demon" & vbCrLf &_
"'Website: http://demon.tw" & vbCrLf &_
"'Date: 2011/5/10" & vbCrLf &_
"Private Type POINTAPI : X As Long : Y As Long : End Type" & vbCrLf &_
"Private Declare Function SetCursorPos Lib ""user32"" (ByVal x As Long, ByVal y As Long) As Long" & vbCrLf &_
"Private Declare Function GetCursorPos Lib ""user32"" (lpPoint As POINTAPI) As Long" & vbCrLf &_
"Private Declare Sub mouse_event Lib ""user32"" Alias ""mouse_event"" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)" & vbCrLf & _
"Public Function GetXCursorPos() As Long" & vbCrLf & _