add drop function hint print support

This commit is contained in:
vcaesar 2020-02-11 09:59:36 -04:00
parent c56a448b6e
commit 38e5dc7bf7
3 changed files with 9 additions and 3 deletions

2
go.mod
View File

@ -10,7 +10,7 @@ require (
github.com/robotn/xgbutil v0.0.0-20190912154524-c861d6f87770
github.com/vcaesar/gops v0.0.0-20200120141635-c9dda03b64e2
github.com/vcaesar/imgo v0.0.0-20191008162304-a83ea7753bc8
github.com/vcaesar/tt v0.0.0-20200124150044-d4f30cc912c1
github.com/vcaesar/tt v0.0.0-20200209134651-4578689741c0
golang.org/x/image v0.0.0-20200119044424-58c23975cae1
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 // indirect
golang.org/x/sys v0.0.0-20200120150407-c1edf535530b // indirect

4
go.sum
View File

@ -39,8 +39,8 @@ github.com/vcaesar/gops v0.0.0-20200120141635-c9dda03b64e2 h1:9CzTc16j5h8olRz5yw
github.com/vcaesar/gops v0.0.0-20200120141635-c9dda03b64e2/go.mod h1:HDKiKqHeRYwEhBUTjgBHWT/PkwvLusticopFNbGO/eY=
github.com/vcaesar/imgo v0.0.0-20191008162304-a83ea7753bc8 h1:9Y+hoKBYa+UtzGqkODfs8c0Q6gp2UfniVNsHQWghPi0=
github.com/vcaesar/imgo v0.0.0-20191008162304-a83ea7753bc8/go.mod h1:52+3yYrTNjWKh+CkQozNRCLWCE/X666yAWPGbYC3DZI=
github.com/vcaesar/tt v0.0.0-20200124150044-d4f30cc912c1 h1:PE/qEgWfcvG00gC5SXIzUv4AAsDPw8u4QSotok0jrU0=
github.com/vcaesar/tt v0.0.0-20200124150044-d4f30cc912c1/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg=
github.com/vcaesar/tt v0.0.0-20200209134651-4578689741c0 h1:663w12XAJXN8v5P3khh0CqrTtDXofJMxIeBbcyQ/2p0=
github.com/vcaesar/tt v0.0.0-20200209134651-4578689741c0/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a h1:gHevYm0pO4QUbwy8Dmdr01R5r1BuKtfYqRqF0h/Cbh0=
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=

View File

@ -65,6 +65,7 @@ import (
"github.com/go-vgo/robotgo/clipboard"
ps "github.com/vcaesar/gops"
"github.com/vcaesar/imgo"
"github.com/vcaesar/tt"
)
const (
@ -787,6 +788,7 @@ func UnicodeType(str uint32) {
// TypeString send a string, support unicode
// TypeStr(string: The string to send), Wno-deprecated
func TypeString(str string) {
tt.Drop("TypeString", "TypeStr")
cstr := C.CString(str)
C.type_string(cstr)
@ -811,6 +813,7 @@ func TypeStrDelay(str string, delay int) {
// TypeStringDelayed type string delayed, Wno-deprecated
func TypeStringDelayed(str string, delay int) {
tt.Drop("TypeStringDelayed", "TypeStrDelay")
TypeStrDelay(str, delay)
}
@ -822,6 +825,7 @@ func SetKeyDelay(delay int) {
// SetKeyboardDelay set keyboard delay, Wno-deprecated,
// this function will be removed in version v1.0.0
func SetKeyboardDelay(delay int) {
tt.Drop("SetKeyboardDelay", "SetKeyDelay")
SetKeyDelay(delay)
}
@ -1171,6 +1175,7 @@ func CopyBitPB(bitmap C.MMBitmapRef) bool {
// CopyBitpb copy bitmap to pasteboard, Wno-deprecated
func CopyBitpb(bitmap C.MMBitmapRef) bool {
tt.Drop("CopyBitpb", "CopyBitPB")
return CopyBitPB(bitmap)
}
@ -1444,6 +1449,7 @@ func GetHandle() int {
// GetBHandle get the window handle, Wno-deprecated
func GetBHandle() int {
tt.Drop("GetBHandle", "GetHandle")
hwnd := C.bget_handle()
ghwnd := int(hwnd)
//fmt.Println("gethwnd---", ghwnd)