728x90
VB.NET - ImageSearchDLL.dll 이미지서치
<DllImport("ImageSearchDLL.dll")> _
Public Shared Function ImageSearch(ByVal x1 As Integer, ByVal y1 As Integer, ByVal right As Integer, ByVal bottom As Integer, ByVal findImage As String) As IntPtr
End Function
Dim img As String = ImageSearch(rc.left, rc.top, rc.right, rc.bottom, "*TransFF00FF *50 " & Application.StartupPath & "\" & img & ".png")
'투명값 : *TransFF00FF
'오차율 : *50
'Application.StartupPath : 응용 프로그램의 실행 경로
Dim imgData() As String = Split(Marshal.PtrToStringAnsi(img), "|")
'0 = 성공1, 실패0
'1, 2 = 좌표 x, y
'VB.NET' 카테고리의 다른 글
NateOn_TeamRoom_API_CURL_POST_HttpWebRequest (0) | 2022.07.22 |
---|---|
VB.net - 디시 댓글 클리너 (0) | 2021.05.11 |
VB.net - WebBrowser의 Button 클릭하기 (0) | 2021.05.10 |
VB.NET - WebBrowser 메세지 창 제어 (1) | 2021.05.08 |