感謝Hsieh 大提供的資源,終於找到方向了,謝謝^^作者: Min 時間: 2010-8-9 20:56
本帖最後由 Min 於 2010-8-9 21:01 編輯
呵呵呵~ 讓您"目煞煞"真不好意思!
能力不及其他前輩 所以如有不妥之處 也請您多多指教^^"
以下是API模擬滑鼠事件 您試試看!
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Public Declare Function GetSystemMetrics Lib "user32.dll" (ByVal index As Long) As Long
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)