Update README.md and remove unused code

This commit is contained in:
vcaesar 2022-02-06 00:46:41 -08:00
parent 84d85b1995
commit be9b02c588
3 changed files with 15 additions and 17 deletions

View File

@ -74,15 +74,18 @@ Or the other GCC (But you should compile the "libpng" with yourself when use the
```
GCC
X11 with the XTest extension (and the Xtst library)
"Bitmap":
libpng (Just used by bitmap)
X11 with the XTest extension (also known as the Xtst library)
Event:
"Event":
xcb, xkb, libxkbcommon
Clipboard:
"Clipboard":
xsel xclip
```
@ -172,7 +175,7 @@ func main() {
robotgo.Move(10, 20)
robotgo.MoveRelative(0, -10)
robotgo.Drag(10, 10)
robotgo.DragSmooth(10, 10)
robotgo.Click("wheelRight")
robotgo.Click("left", true)
@ -208,9 +211,9 @@ func main() {
robotgo.KeySleep = 100
robotgo.KeyTap("enter")
// 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.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)
## 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
- Try support Android, maybe support IOS

View File

@ -25,8 +25,8 @@ func move() {
// move the mouse to 100, 200
robotgo.Move(100, 200)
robotgo.Drag(10, 10)
robotgo.Drag(20, 20, "right")
// robotgo.Drag(10, 10)
// robotgo.Drag(20, 20, "right")
//
robotgo.DragSmooth(10, 10)
robotgo.DragSmooth(100, 200, 1.0, 100.0)

View File

@ -58,13 +58,6 @@ MMRGBHex get_px_color(int32_t x, int32_t y, int32_t display_id) {
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) {
#if defined(USE_X11)
setXDisplay(name);