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