From ed593d2ffe35d5541867fbb6c3b2108522bb2b7f Mon Sep 17 00:00:00 2001 From: NakaokaRei Date: Sat, 28 Jan 2023 22:26:28 +0900 Subject: [PATCH] update readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0777760..ceda9e0 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,13 @@ SwiftAutoGUI.keyUp(.soundUp) // Move mouse by dx, dy from the current location SwiftAutoGUI.moveMouse(dx: 10, dy: 10) +// Move the mouse to a specific position +// This parameter is the `CGWindow` coordinate. +SwiftAutoGUI.move(to: CGPointMake(0, 0)) + // Click where the mouse is located -SwiftAutoGUI.leftClick() +SwiftAutoGUI.leftClick() // left +SwiftAutoGUI.rightClick() // right // Scroll SwiftAutoGUI.vscroll(clicks: 10) // up