mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
commit
988cd3273d
@ -1,5 +1,5 @@
|
||||
# FROM golang:1.10.1
|
||||
FROM golang:1.15.7-stretch AS build
|
||||
FROM golang:1.15.8-stretch AS build
|
||||
# FROM govgo/go:1.11.1
|
||||
|
||||
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%
|
||||
# - COMPILER: MINGW_W64
|
||||
# ARCHITECTURE: x64
|
||||
GOVERSION: 1.15.7
|
||||
GOVERSION: 1.15.8
|
||||
# GOPATH: c:\gopath
|
||||
|
||||
# scripts that run after cloning repository
|
||||
|
@ -60,6 +60,9 @@ func findColor(bmp robotgo.CBitmap) {
|
||||
|
||||
arr := robotgo.FindEveryColor(0xAADCDC)
|
||||
fmt.Println("find all color: ", arr)
|
||||
for i := 0; i < len(arr); i++ {
|
||||
fmt.Println("pos is: ", arr[i].X, arr[i].Y)
|
||||
}
|
||||
}
|
||||
|
||||
func bitmapString(bmp robotgo.CBitmap) {
|
||||
@ -152,6 +155,9 @@ func findBitmap(bmp robotgo.CBitmap) {
|
||||
|
||||
arr := robotgo.FindEveryBitmap(openbit)
|
||||
fmt.Println("find all bitmap: ", arr)
|
||||
for i := 0; i < len(arr); i++ {
|
||||
fmt.Println("pos is: ", arr[i].X, arr[i].Y)
|
||||
}
|
||||
}
|
||||
|
||||
func bitmap() {
|
||||
|
Loading…
Reference in New Issue
Block a user