Update clipboard

This commit is contained in:
vCaesar 2017-06-11 19:07:58 +08:00
parent 45c3d9ce1f
commit 74097de793
6 changed files with 17 additions and 6 deletions

View File

@ -7,7 +7,7 @@ package clipboard_test
import (
"testing"
. "github.com/atotto/clipboard"
. "github.com/go-vgo/robotgo/clipboard"
)
func TestCopyAndPaste(t *testing.T) {

View File

@ -4,7 +4,8 @@ import (
"io/ioutil"
"os"
"github.com/atotto/clipboard"
"github.com/go-vgo/robotgo/clipboard"
// "github.com/atotto/clipboard"
)
func main() {

View File

@ -3,7 +3,8 @@ package main
import (
"fmt"
"github.com/atotto/clipboard"
"github.com/go-vgo/robotgo/clipboard"
// "github.com/atotto/clipboard"
)
func main() {

View File

@ -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() {

View File

@ -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)
}
}

View File

@ -47,10 +47,10 @@ import (
"reflect"
"unsafe"
"github.com/go-vgo/robotgo/clipboard"
// "runtime"
// "syscall"
"github.com/go-vgo/robotgo/clipboard"
)
const (