mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update README.md and remove unused code
This commit is contained in:
parent
84d85b1995
commit
be9b02c588
21
README.md
21
README.md
@ -74,15 +74,18 @@ Or the other GCC (But you should compile the "libpng" with yourself when use the
|
|||||||
```
|
```
|
||||||
GCC
|
GCC
|
||||||
|
|
||||||
|
X11 with the XTest extension (and the Xtst library)
|
||||||
|
|
||||||
|
|
||||||
|
"Bitmap":
|
||||||
|
|
||||||
libpng (Just used by bitmap)
|
libpng (Just used by bitmap)
|
||||||
|
|
||||||
X11 with the XTest extension (also known as the Xtst library)
|
"Event":
|
||||||
|
|
||||||
Event:
|
|
||||||
|
|
||||||
xcb, xkb, libxkbcommon
|
xcb, xkb, libxkbcommon
|
||||||
|
|
||||||
Clipboard:
|
"Clipboard":
|
||||||
|
|
||||||
xsel xclip
|
xsel xclip
|
||||||
```
|
```
|
||||||
@ -172,7 +175,7 @@ func main() {
|
|||||||
|
|
||||||
robotgo.Move(10, 20)
|
robotgo.Move(10, 20)
|
||||||
robotgo.MoveRelative(0, -10)
|
robotgo.MoveRelative(0, -10)
|
||||||
robotgo.Drag(10, 10)
|
robotgo.DragSmooth(10, 10)
|
||||||
|
|
||||||
robotgo.Click("wheelRight")
|
robotgo.Click("wheelRight")
|
||||||
robotgo.Click("left", true)
|
robotgo.Click("left", true)
|
||||||
@ -208,9 +211,9 @@ func main() {
|
|||||||
robotgo.KeySleep = 100
|
robotgo.KeySleep = 100
|
||||||
robotgo.KeyTap("enter")
|
robotgo.KeyTap("enter")
|
||||||
// robotgo.TypeStr("en")
|
// robotgo.TypeStr("en")
|
||||||
robotgo.KeyTap("i", "alt", "command")
|
robotgo.KeyTap("i", "alt", "cmd")
|
||||||
|
|
||||||
arr := []string{"alt", "command"}
|
arr := []string{"alt", "cmd"}
|
||||||
robotgo.KeyTap("i", arr)
|
robotgo.KeyTap("i", arr)
|
||||||
|
|
||||||
robotgo.MilliSleep(100)
|
robotgo.MilliSleep(100)
|
||||||
@ -507,7 +510,9 @@ Some discussions and questions, please see [issues/228](https://github.com/go-vg
|
|||||||
* [Contributors](https://github.com/go-vgo/robotgo/graphs/contributors)
|
* [Contributors](https://github.com/go-vgo/robotgo/graphs/contributors)
|
||||||
|
|
||||||
## Plans
|
## Plans
|
||||||
- Update Find an image on screen, read pixels from an image
|
- Refactor some C code to Go (such as x11, windows)
|
||||||
|
- Better multiscreen support
|
||||||
|
- Waylad supports
|
||||||
- Update Window Handle
|
- Update Window Handle
|
||||||
- Try support Android, maybe support IOS
|
- Try support Android, maybe support IOS
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ func move() {
|
|||||||
// move the mouse to 100, 200
|
// move the mouse to 100, 200
|
||||||
robotgo.Move(100, 200)
|
robotgo.Move(100, 200)
|
||||||
|
|
||||||
robotgo.Drag(10, 10)
|
// robotgo.Drag(10, 10)
|
||||||
robotgo.Drag(20, 20, "right")
|
// robotgo.Drag(20, 20, "right")
|
||||||
//
|
//
|
||||||
robotgo.DragSmooth(10, 10)
|
robotgo.DragSmooth(10, 10)
|
||||||
robotgo.DragSmooth(100, 200, 1.0, 100.0)
|
robotgo.DragSmooth(100, 200, 1.0, 100.0)
|
||||||
|
@ -58,13 +58,6 @@ MMRGBHex get_px_color(int32_t x, int32_t y, int32_t display_id) {
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* get_pixel_color(int32_t x, int32_t y, int32_t display_id) {
|
|
||||||
MMRGBHex color = get_px_color(x, y, display_id);
|
|
||||||
|
|
||||||
char* s = pad_hex(color);
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
|
|
||||||
char* set_XDisplay_name(char* name) {
|
char* set_XDisplay_name(char* name) {
|
||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
setXDisplay(name);
|
setXDisplay(name);
|
||||||
|
Loading…
Reference in New Issue
Block a user