我非常喜欢自动化,所以每当我有机会的时候,我都喜欢尝试并自动完成我必须重复的任务。以下代码通常允许我在屏幕上的任何位置(以及在任何应用程序中)单击鼠标:
Public Declare Auto Function SetCursorPos Lib "User32.dll" (ByVal X As Integer, ByVal Y As Integer) As Long
Public Declare Auto Function GetCursorPos Lib "User32.dll" (ByRef lpPoint As Point) As Long
Publi