'APIの宣言 Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long Private Sub Command1_Click() SetCursorPos 0, 0 End Sub