mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
commit
6f34d75bbc
@ -1,5 +1,5 @@
|
|||||||
# FROM golang:1.10.1
|
# FROM golang:1.10.1
|
||||||
FROM golang:1.16.5-stretch AS build
|
FROM golang:1.16.6-stretch AS build
|
||||||
# FROM govgo/go:1.11.1
|
# FROM govgo/go:1.11.1
|
||||||
|
|
||||||
RUN apt update && apt install -y --no-install-recommends \
|
RUN apt update && apt install -y --no-install-recommends \
|
||||||
|
@ -34,7 +34,7 @@ environment:
|
|||||||
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
||||||
# - COMPILER: MINGW_W64
|
# - COMPILER: MINGW_W64
|
||||||
# ARCHITECTURE: x64
|
# ARCHITECTURE: x64
|
||||||
GOVERSION: 1.16.5
|
GOVERSION: 1.16.6
|
||||||
# GOPATH: c:\gopath
|
# GOPATH: c:\gopath
|
||||||
|
|
||||||
# scripts that run after cloning repository
|
# scripts that run after cloning repository
|
||||||
|
@ -132,6 +132,12 @@ func bitmapTest(bmp robotgo.CBitmap) {
|
|||||||
|
|
||||||
fx, fy = robotgo.FindBitmap(bit)
|
fx, fy = robotgo.FindBitmap(bit)
|
||||||
fmt.Println("FindBitmap------", fx, fy)
|
fmt.Println("FindBitmap------", fx, fy)
|
||||||
|
|
||||||
|
fx, fy = robotgo.FindBitmap(bit, nil, 0.2)
|
||||||
|
fmt.Println("find bitmap: ", fx, fy)
|
||||||
|
|
||||||
|
fx, fy = robotgo.FindBitmap(bit, bitmap, 0.3)
|
||||||
|
fmt.Println("find bitmap: ", fx, fy)
|
||||||
}
|
}
|
||||||
|
|
||||||
func findBitmap(bmp robotgo.CBitmap) {
|
func findBitmap(bmp robotgo.CBitmap) {
|
||||||
|
Loading…
Reference in New Issue
Block a user