728x90
Declare Function apimouse_event Lib "user32.dll" Alias "mouse_event" (ByVal dwFlags As Int32, ByVal dX As Int32, ByVal dY As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As Int32) As Boolean
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10
Call apimouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) '마우스 왼쪽버튼을 누릅니다.
Call apimouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0) '마우스 왼쪽버튼을 떕니다.
dim point as new point
point.x = "1"
point.y = "1"
Cursor.Position = point
728x90
'자료' 카테고리의 다른 글
[C#/VB.net] set windowpos (0) | 2020.08.03 |
---|---|
[C#/VB.net] EMGUCV를 사용해 OCR하는법 (0) | 2020.08.03 |
C# VB.NET에서 현재 화면 스크린 캡쳐 (0) | 2020.08.03 |
[C# / VB.net] InputHelper.PressKey /하드웨어 키입력 (0) | 2020.08.03 |
[VB.net / C#] 크로스 쓰레드 사용법(Invoke) (0) | 2020.08.03 |