|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.robot.desktop.DesktopMouse
public class DesktopMouse
| Constructor Summary | |
|---|---|
DesktopMouse()
|
|
| Method Summary | |
|---|---|
void |
click(ScreenLocation screenLoc)
Left-click on a given screen location |
void |
doubleClick(ScreenLocation screenLoc)
Double-click on a given screen location |
void |
drag(ScreenLocation screenLoc)
Drag at a given screen location |
void |
drop(ScreenLocation screenLoc)
Drop at a given screen location |
ScreenLocation |
getLocation()
Get the screen location the mouse cursor is currently at |
void |
hover(ScreenLocation dest)
Hover the mouse cursor to a screen location. |
void |
mouseDown(int buttons)
|
void |
mouseUp()
|
void |
mouseUp(int buttons)
|
void |
move(ScreenLocation dest)
Move the mouse cursor to a destination screen location immediately. |
void |
press()
Press the left button |
void |
release()
Release the left button |
void |
rightClick(ScreenLocation screenLoc)
Right-click on a given screen location |
void |
rightPress()
Press the right button |
void |
rightRelease()
Release the right button |
void |
wheel(int direction,
int steps)
Move the wheel at the current position |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DesktopMouse()
| Method Detail |
|---|
public void hover(ScreenLocation dest)
Mouse
hover in interface Mousedest - the screen location for the mouse cursor to hover topublic void move(ScreenLocation dest)
Mouse
move in interface Mousedest - the screen location for the mouse cursor to move topublic void drag(ScreenLocation screenLoc)
Mouse
drag in interface MousescreenLoc - the screen location to dragpublic void drop(ScreenLocation screenLoc)
Mouse
drop in interface MousescreenLoc - the screen location to droppublic void rightClick(ScreenLocation screenLoc)
Mouse
rightClick in interface MousescreenLoc - the screen location to click onpublic void doubleClick(ScreenLocation screenLoc)
Mouse
doubleClick in interface MousescreenLoc - the screen location to click onpublic void click(ScreenLocation screenLoc)
Mouse
click in interface MousescreenLoc - the screen location to click onpublic void press()
Mouse
press in interface Mousepublic void rightPress()
Mouse
rightPress in interface Mousepublic void release()
Mouse
release in interface Mousepublic void rightRelease()
Mouse
rightRelease in interface Mouse
public void wheel(int direction,
int steps)
Mouse
wheel in interface Mousedirection - the direction appliedsteps - the number of steppublic void mouseDown(int buttons)
mouseDown in interface Mousepublic void mouseUp()
mouseUp in interface Mousepublic void mouseUp(int buttons)
mouseUp in interface Mousepublic ScreenLocation getLocation()
Mouse
getLocation in interface Mouse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||