mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 07:33:55 +00:00
Merge pull request #372 from go-vgo/bitmap-pr
Update godoc and dockerfile
This commit is contained in:
commit
4331bf368a
@ -1,5 +1,5 @@
|
|||||||
# FROM golang:1.10.1
|
# FROM golang:1.10.1
|
||||||
FROM golang:1.7.1-stretch AS build
|
FROM golang:1.7.2-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.17.1
|
GOVERSION: 1.17.2
|
||||||
# GOPATH: c:\gopath
|
# GOPATH: c:\gopath
|
||||||
|
|
||||||
# scripts that run after cloning repository
|
# scripts that run after cloning repository
|
||||||
|
10
robotgo.go
10
robotgo.go
@ -827,7 +827,7 @@ func PasteStr(str string) string {
|
|||||||
return KeyTap("v", "control")
|
return KeyTap("v", "control")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeString send a string, support unicode
|
// Deprecated: TypeString send a string, support unicode
|
||||||
// TypeStr(string: The string to send), Wno-deprecated
|
// TypeStr(string: The string to send), Wno-deprecated
|
||||||
func TypeString(str string, delay ...int) {
|
func TypeString(str string, delay ...int) {
|
||||||
tt.Drop("TypeString", "TypeStr")
|
tt.Drop("TypeString", "TypeStr")
|
||||||
@ -848,7 +848,7 @@ func TypeStrDelay(str string, delay int) {
|
|||||||
Sleep(delay)
|
Sleep(delay)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeStringDelayed type string delayed, Wno-deprecated
|
// Deprecated: TypeStringDelayed type string delayed, Wno-deprecated
|
||||||
func TypeStringDelayed(str string, delay int) {
|
func TypeStringDelayed(str string, delay int) {
|
||||||
tt.Drop("TypeStringDelayed", "TypeStrDelay")
|
tt.Drop("TypeStringDelayed", "TypeStrDelay")
|
||||||
TypeStrDelay(str, delay)
|
TypeStrDelay(str, delay)
|
||||||
@ -859,7 +859,7 @@ func SetKeyDelay(delay int) {
|
|||||||
C.set_keyboard_delay(C.size_t(delay))
|
C.set_keyboard_delay(C.size_t(delay))
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetKeyboardDelay set keyboard delay, Wno-deprecated,
|
// Deprecated: SetKeyboardDelay set keyboard delay, Wno-deprecated,
|
||||||
// this function will be removed in version v1.0.0
|
// this function will be removed in version v1.0.0
|
||||||
func SetKeyboardDelay(delay int) {
|
func SetKeyboardDelay(delay int) {
|
||||||
tt.Drop("SetKeyboardDelay", "SetKeyDelay")
|
tt.Drop("SetKeyboardDelay", "SetKeyDelay")
|
||||||
@ -1236,7 +1236,7 @@ func CopyBitPB(bitmap C.MMBitmapRef) bool {
|
|||||||
return gbool
|
return gbool
|
||||||
}
|
}
|
||||||
|
|
||||||
// CopyBitpb copy bitmap to pasteboard, Wno-deprecated
|
// Deprecated: CopyBitpb copy bitmap to pasteboard, Wno-deprecated
|
||||||
func CopyBitpb(bitmap C.MMBitmapRef) bool {
|
func CopyBitpb(bitmap C.MMBitmapRef) bool {
|
||||||
tt.Drop("CopyBitpb", "CopyBitPB")
|
tt.Drop("CopyBitpb", "CopyBitPB")
|
||||||
return CopyBitPB(bitmap)
|
return CopyBitPB(bitmap)
|
||||||
@ -1564,7 +1564,7 @@ func GetHandle() int {
|
|||||||
return ghwnd
|
return ghwnd
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBHandle get the window handle, Wno-deprecated
|
// Deprecated: GetBHandle get the window handle, Wno-deprecated
|
||||||
func GetBHandle() int {
|
func GetBHandle() int {
|
||||||
tt.Drop("GetBHandle", "GetHandle")
|
tt.Drop("GetBHandle", "GetHandle")
|
||||||
hwnd := C.bget_handle()
|
hwnd := C.bget_handle()
|
||||||
|
Loading…
Reference in New Issue
Block a user