mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
move event
This commit is contained in:
parent
8eba397ddd
commit
9bdcfc4512
22
robotgo.go
22
robotgo.go
@ -14,8 +14,8 @@ package robotgo
|
||||
#include "mouse/goMouse.h"
|
||||
#include "key/goKey.h"
|
||||
#include "bitmap/goBitmap.h"
|
||||
//#include "window/goWindow.h"
|
||||
//#include "event/goEvent.h"
|
||||
//#include "window/goWindow.h"
|
||||
*/
|
||||
import "C"
|
||||
|
||||
@ -336,16 +336,6 @@ func GetPortion(bit C.MMBitmapRef, x, y, w, h C.size_t) C.MMBitmapRef {
|
||||
return pos
|
||||
}
|
||||
|
||||
/*
|
||||
____ __ ____ __ .__ __. _______ ______ ____ __ ____
|
||||
\ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /
|
||||
\ \/ \/ / | | | \| | | .--. | | | | \ \/ \/ /
|
||||
\ / | | | . ` | | | | | | | | \ /
|
||||
\ /\ / | | | |\ | | '--' | `--' | \ /\ /
|
||||
\__/ \__/ |__| |__| \__| |_______/ \______/ \__/ \__/
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
------------ --- --- ------------ ---- ---- ------------
|
||||
************ *** *** ************ ***** **** ************
|
||||
@ -357,3 +347,13 @@ ____ __ ____ __ .__ __. _______ ______ ____ __ ____
|
||||
************ **** ************ **** **** ****
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
____ __ ____ __ .__ __. _______ ______ ____ __ ____
|
||||
\ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /
|
||||
\ \/ \/ / | | | \| | | .--. | | | | \ \/ \/ /
|
||||
\ / | | | . ` | | | | | | | | \ /
|
||||
\ /\ / | | | |\ | | '--' | `--' | \ /\ /
|
||||
\__/ \__/ |__| |__| \__| |_______/ \______/ \__/ \__/
|
||||
|
||||
*/
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/go-vgo/robotgo"
|
||||
)
|
||||
|
||||
func arobotgo() {
|
||||
func aRobotgo() {
|
||||
x, y := robotgo.GetMousePos()
|
||||
Println("pos:", x, y)
|
||||
|
||||
@ -48,5 +48,5 @@ func arobotgo() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
arobotgo()
|
||||
aRobotgo()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user