use of org.sikuli.script.Location in project sakuli by ConSol.
the class RegionImpl method rightClickMe.
/**
* {@link Region#rightClick()} ()}
*/
public RegionImpl rightClickMe() {
int ret;
try {
Location center = this.getCenter();
ret = this.rightClick(center);
} catch (FindFailed findFailed) {
ret = 0;
}
loader.loadSettingDefaults();
if (ret != 1) {
loader.getExceptionHandler().handleException("Couldn't right click on region " + this, this, resumeOnException);
return null;
}
return this;
}
use of org.sikuli.script.Location in project sakuli by ConSol.
the class RegionImpl method doubleClickMe.
/**
* {@link Region#doubleClick()} ()}
*/
public RegionImpl doubleClickMe() {
int ret;
try {
Location center = this.getCenter();
ret = this.doubleClick(center);
} catch (FindFailed findFailed) {
ret = 0;
}
loader.loadSettingDefaults();
if (ret != 1) {
loader.getExceptionHandler().handleException("Couldn't double click on region " + this, this, resumeOnException);
return null;
}
return this;
}
use of org.sikuli.script.Location in project sakuli by ConSol.
the class RegionImpl method clickMe.
/**
* {@link org.sakuli.actions.screenbased.Region#click()}
*/
public RegionImpl clickMe() {
int ret;
try {
Location center = this.getCenter();
ret = this.click(center);
} catch (FindFailed findFailed) {
ret = 0;
}
loader.loadSettingDefaults();
if (ret != 1) {
loader.getExceptionHandler().handleException("Couldn't click on region " + this, this, resumeOnException);
return null;
}
return this;
}
use of org.sikuli.script.Location in project sakuli by ConSol.
the class RegionImpl method mouseMoveMe.
/**
* wrapper implementation for {@link #mouseMove(Object)} ()}
*/
public RegionImpl mouseMoveMe() {
int ret;
try {
Location center = this.getCenter();
ret = this.mouseMove(center);
} catch (FindFailed findFailed) {
ret = 0;
}
loader.loadSettingDefaults();
if (ret != 1) {
loader.getExceptionHandler().handleException("Could not move the mouse on region " + this, this, resumeOnException);
return null;
}
return this;
}
Aggregations