mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Update clipboard
This commit is contained in:
parent
45c3d9ce1f
commit
74097de793
@ -7,7 +7,7 @@ package clipboard_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
. "github.com/atotto/clipboard"
|
||||
. "github.com/go-vgo/robotgo/clipboard"
|
||||
)
|
||||
|
||||
func TestCopyAndPaste(t *testing.T) {
|
||||
|
@ -4,7 +4,8 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/atotto/clipboard"
|
||||
"github.com/go-vgo/robotgo/clipboard"
|
||||
// "github.com/atotto/clipboard"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,7 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/atotto/clipboard"
|
||||
"github.com/go-vgo/robotgo/clipboard"
|
||||
// "github.com/atotto/clipboard"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,7 +3,8 @@ package clipboard_test
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/atotto/clipboard"
|
||||
"github.com/go-vgo/robotgo/clipboard"
|
||||
// "github.com/atotto/clipboard"
|
||||
)
|
||||
|
||||
func Example() {
|
||||
|
@ -11,6 +11,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/go-vgo/robotgo"
|
||||
// "go-vgo/robotgo"
|
||||
)
|
||||
@ -41,4 +43,10 @@ func main() {
|
||||
robotgo.KeyToggle("enter", "down")
|
||||
|
||||
robotgo.TypeString("en")
|
||||
|
||||
robotgo.WriteAll("测试")
|
||||
text, err := robotgo.ReadAll()
|
||||
if err == nil {
|
||||
fmt.Println(text)
|
||||
}
|
||||
}
|
||||
|
@ -47,10 +47,10 @@ import (
|
||||
|
||||
"reflect"
|
||||
"unsafe"
|
||||
|
||||
"github.com/go-vgo/robotgo/clipboard"
|
||||
// "runtime"
|
||||
// "syscall"
|
||||
|
||||
"github.com/go-vgo/robotgo/clipboard"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user